We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I tried to update Datastore setting using Desktop_Update. What's wrong with my version?
Exception on call "Desktop_Update" with "2" arguments: "Failed to load type "VMware.Hv.String" from assembly "VMware.Hvi, Version=8.4.0.709, Culture=neutral, PublicKeyToken=null"." string:1 symbol:2 + $ViewAPI.Desktop.Desktop_Update($DesktopId,$MapEntryDesktopVirtualCenterStorageSettings) + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : TypeLoadException
PS C:\Windows\system32> $DesktopVirtualCenterDatastoreSettings = @() >> ForEach ($DatastoreName in $DatastoreNames) >> { >> $DatastoreId1 = ($ViewAPI.Datastore.Datastore_ListDatastoresByHostOrCluster($HostOrClusterId) | Where-Object {$_.DatastoreData.Name -eq $DatastoreName}).Id >> $DesktopVirtualCenterDatastoreSettingsTemp = New-Object VMware.Hv.DesktopVirtualCenterDatastoreSettings -Property @{datastore=$DatastoreId1;sdrsCluster=$SdrsCluster;storageOvercommit=$StorageOvercommit} >> $DesktopVirtualCenterDatastoreSettings += $DesktopVirtualCenterDatastoreSettingsTemp >> } >> >> $MapEntryDesktopVirtualCenterStorageSettings1 = New-Object VMware.Hv.MapEntry -Property @{ >> Key='automatedDesktopData.virtualCenterProvisioningSettings.virtualCenterStorageSettings.datastores';Value=$DesktopVirtualCenterDatastoreSettings >> } >> $MapEntryDesktopVirtualCenterStorageSettings = @($MapEntryDesktopVirtualCenterStorageSettings1) PS C:\Windows\system32> $MapEntryDesktopVirtualCenterStorageSettings Key Value --- ----- automatedDesktopData.virtualCenterProvisioningSettings.virtualCenterStorageSettings.datastores {VMware.Hv.DesktopVirtualCenterDatastoreSettings} PS C:\Windows\system32> $MapEntryDesktopVirtualCenterStorageSettings.Value Datastore SdrsCluster StorageOvercommit --------- ----------- ----------------- VMware.Hv.DatastoreId False UNBOUNDED PS C:\Windows\system32> $MapEntryDesktopVirtualCenterStorageSettings | gm TypeName: VMware.Hv.MapEntry Name MemberType Definition ---- ---------- ---------- Equals Method bool Equals(System.Object obj) GetHashCode Method int GetHashCode() GetType Method type GetType() ToString Method string ToString() Key Property string Key {get;set;} Value Property System.Object Value {get;set;} PS C:\Windows\system32> $DesktopId Id -- Desktop/ZTE3ZTVjMjctZDg4Yy00NmNiLWIyN2UtNWRhYjFlYTI5NGE0/aDgyLXRzdA PS C:\Windows\system32> $ViewAPI.Desktop.Desktop_Update($DesktopId,$MapEntryDesktopVirtualCenterStorageSettings) Exception on call "Desktop_Update" with "2" arguments: "Failed to load type "VMware.Hv.String" from assembly "VMware.Hvi, Version=8.4.0.709, Culture=neutral, PublicKeyToken=null"." string:1 symbol:2 + $ViewAPI.Desktop.Desktop_Update($DesktopId,$MapEntryDesktopVirtualCenterStorageSettings) + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : TypeLoadException
Metod succesfully update Datastore settings
Horizon Connection Server 8.6.0 build - 20099816 PowerCLI 12.7
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
I tried to update Datastore setting using Desktop_Update.
What's wrong with my version?
Reproduction steps
Expected behavior
Metod succesfully update Datastore settings
Additional context
Horizon Connection Server 8.6.0 build - 20099816
PowerCLI 12.7
The text was updated successfully, but these errors were encountered: