VMware Cloud Community
chicojr
Enthusiast
Enthusiast
Jump to solution

VM Customization Specifications

I'm trying to change the built-in Administrator account in Windows 2016 and 2019 by editing 'Commands to run once'. I use the following but it does nothing:  wmic useraccount where name='Administrator' call rename name='LocalAdmin'

 

Anyone have any logic they can pass along please?

 

Were on Vsphere 6.7

Labels (1)
  • VM

0 Kudos
1 Solution

Accepted Solutions
chicojr
Enthusiast
Enthusiast
Jump to solution

this is answer:

 

cmd /c wmic useraccount where name='Administrator' rename LocalAdmin

View solution in original post

0 Kudos
1 Reply
chicojr
Enthusiast
Enthusiast
Jump to solution

this is answer:

 

cmd /c wmic useraccount where name='Administrator' rename LocalAdmin

0 Kudos