VMware Cloud Community
gamename
Enthusiast
Enthusiast

When To Set Local Administrator In Windows



Hi,


At some point in the cloning process, I need to set a localgroup administators value:


"net localgroup administrators /add domainA\IdA" 


Do most people set that in the configuration specification, or leave it to later in the process?  I think it would be easier to put in the config spec as a "runonce" command.  Any guidelines?


TIA,

-T

0 Kudos
1 Reply
LucD
Leadership
Leadership

That would depend on a number of other elements.

For example, some environments have a dedicated VLAN for deploying new machines, and sometimes you can't even reach the AD domain from there.

I would place that in the OSCustomizationSpec in the RunOnce section, provided your VM already joined the domain at that point.


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

0 Kudos