0
votes
1answer
13 views

Reload VIAccounts list with PowerCli to select a newly created group

I'm using a script that creates groups in Active Directory, and links them to my vCenter server using New-VIPermission. The trick is that it doesn't find the groups created unless I restart the script ...
0
votes
1answer
37 views

finding guestid in offline documentation?

I have a little question thats been bugging me lately. I am using PowerCLI to create a new VM and I want to use the -guestId parameter to specify the Guest OS. Is there any built in documentation ...
1
vote
1answer
977 views

VMWare 5.1 Datastore in use when trying to unmount?

When trying to unmount a datastore from one of my 4 ESXi hosts, I receive a message that it's in use. The full error stack I see is: Call "HostDatastoreSystem.RemoveDatastore" for object ...
1
vote
0answers
83 views

PowerCLI: cancel all taks for current user

I would like to create a PowerCLI script that cancels all tasks initiated by the current user. I haven't been able to use Get-Task or a filter to get only my tasks, as I haven't found that property on ...
3
votes
2answers
482 views

Encrypt powershell Credentials (creds) files

I have started to play around with PowerCLI and therefore created a credentials file to use when I connect to vCenter. The purpose for this will be to run scheduled tasks, such as running the vCheck ...