Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 251313

Re: Required vSphere Permissions to Run Some Specific PowerCLI Cmdlets

$
0
0

Thanks a lot LucD.  You gave me a very good pointer on where to look for possible solutions.

 

I did some experiments.  Here are what I have found:

 

o For "Set-OSCustomizationNicMapping", permission VirtualMachine.Provisioning.ModifyCustSpecs

is required.

 

o For setting timezone on a Red Hat VM with "Set-OSCustomizationSpec" cmdlet, it always complains

about the timezone parameter is for 'Windows' not for 'Linux' regardless VC account privileges:

---

   Set-OSCustomizationSpec : 12/31/2012 3:13:26 PM    Set-OSCustomizationSpec
   Cannot update the OS customization spec with OsType 'Linux' with parameters
from the 'Windows' parameter set.

   ---

 

I use the following commands:

$osCust = Get-OSCustomizationSpec -Name OSspec

Set-OSCustomizationSpec -OSCustomizationSpec $osCust -TimeZone "Pacific"

 

Maybe I should post this issue in a separate discussion.

 

o For "Get-Datastore", we added "Datastore.Browse" and "Host.Config.Storage" permissions.

Still no luck in PowerCLI 5.  It is just a simple cmdlet.  Why it returns null for non-admin

VC accounts?  We have no problem with get-datacenter, get-cluster, get-vm, get-folder,... etc.


Viewing all articles
Browse latest Browse all 251313

Trending Articles