VMware Cloud Community
georgep
Contributor
Contributor

Help with adding a group to the local administrator group when deploying a vm from template using New-OSCustomizationSpec

I need to add an AD group to the local administrators group when deploying a new VM from template. Using New-OSCustomization with -GuiRunOnce option this is what i was looking to use this:

net localgroup administrators "my.domain.com\the - grouop- name" /add

But not sure if or how i can...any ideas?

Reply
0 Kudos
0 Replies