VMware Cloud Community
maishsk
Expert
Expert

new-vipermission Cmdlet

Is there something in this commandlet that will not allow you to assign permissions to a domain account only a a local account?

When running

New-VIPermission -Role "Admin" -Principal "MAISHSK\User1" -Entity (Get-folder folder1)

I get:

New-VIPermission : 12/6/2009 4:35:17 AM New-VIPermission Could not find VIAccount with name 'MAISHSK\User1'. At line:1 char:33 + $myPermission = New-VIPermission <<<< -Role "Admin" -Principal "MAISHSK\User1" -Entity (Get-folder Level1) + CategoryInfo : ObjectNotFound: (MAISHSK\User1:String) , VimException + FullyQualifiedErrorId : Core_ObnSelector_SelectObjectByNameCore_ObjectNotFound,VMware.VimAutomation.Commands.PermissionManagement.NewVIPermission

Maish

Virtualization Architect & Systems Administrator

http://technodrone.blogspot.com

Maish Saidel-Keesing • @maishsk • http://technodrone.blogspot.com • VMTN Moderator • vExpert • Co-author of VMware vSphere Design
0 Kudos
2 Replies
LucD
Leadership
Leadership

I can confirm.

I see the same error message with the Get- and Set-ViPermission cmdlets when using a domain account on the Principal parameter.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos