PowerCLI-Example-Scripts
PowerCLI-Example-Scripts copied to clipboard
I copy just the "Function Set-NSXTIPPool {}" portion of the code within in mine, as it seems pretty straight forward. When I try to execute the following, Set-NSXTIPPool -display_name "Test...
Horizon connection server 7.13 Powershell 5.1.18362.1171 VMware.HV.Helper 1.3.1 VMware.Vim 7.0.1.17531376 VMware.VimAutomation.Cis.Core 12.2.0.17531611 VMware.VimAutomation.Common 12.2.0.17531244 VMware.VimAutomation.Core 12.2.0.17531987 VMware.VimAutomation.HorizonView 12.2.0.17463427 VMware.VimAutomation.Sdk 12.2.0.17531155 I found that when you use Get-HvPoolSpec, the returned 'Datacenter'...
I'm having some trouble making a full clone pool. New-HVPool : Failed to create Pool with error: Cannot find an overload for "VmTemplate_ListByDatacenter" and the argument count: "1". Horizon connection...
Trying to separately get lists of users or groups entitled to certain applications. Running the following command lists Active Directory groups entitled to MyAppID: `(Get-HVEntitlement -ResourceName "MyAppID" -ResourceType Application -Type...
Was using this to automatically refresh pools nightly. It stopped working when we update to 7.11 on our horizon platform. When running the PowerCLI/PowerShell script manually, it errors out about...
get-hvevent -hvdbserver $eventdb -timeperiod month There are 0 records found when specifying "month", but specifying timeperiod as day, week, or all works fine and produces thousands of results. I'm guessing...
If new-hvmanualapplication encounters an error, it will crash a PowerShell loop. Ex: $MultipleApps foreach ($app in $MutipleApps) { new-hvmanualapplication @params } If $app[5] can't be created for whatever reason (already...
New-HVManualApplication does not appear to support any ErrorAction other than Continue. It also does not seem to honor even that action.
New-HVPool -MANUAL -PoolName 'TEST_20' -PoolDisplayName 'TEST-20' -Description 'TEST - Desktop Computer 10' -UserAssignment FLOATING -Source UNMANAGED -VM 'TEST-10.local' causes Exception calling "Desktop_Create" with "2" argument(s): "There is an error in...
Hi, I am writing a script to automate some pools creation since we are migrating from linked clones to instant clones and I have been facing an issue when it...