VMware Cloud Community
robinstolpe
Enthusiast
Enthusiast

what premission do I need to power off VM?

Hi,

I'm trying to poweroff a VM trough PowerCLI but I get a error message, the user has the premission under VM to power off and it's limited to that resource folder in vSphere.

PS C:\windows\system32> Stop-VM -VM "xvm28599" -Kill -Confirm:$false
Stop-VM : 2021-04-09 09:59:49 Stop-VM Permission to perform this operation was denied. Required privilege 'Global.Sett
ings' on managed object with id 'ReflectManagedMethodExecuter-ManagedMethodExecuter-46'.
At line:1 char:1
+ Stop-VM -VM "xvm28599" -Kill -Confirm:$false
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Stop-VM], NoPermission
+ FullyQualifiedErrorId : Client20_DynamicTypeManagerServiceImpl_InvokeOperation_VC_ViError,VMware.VimAutomation.V
iCore.Cmdlets.Commands.StopVM

IT engineer that works with the hole VMWare portfolio and also loves to develop and automate in C# and PowerShell
0 Kudos
0 Replies