Software Deployment Question
Access denied running net localgroup administrators myadmin /add command under domain admin user - SCCM 2012 OSD Task sequence
02/06/2015 3510 views
I am having an issue with setting a local user account as an administrator via command line in an OSD task sequence. For some reason the user does not appear in the administrator group. I am using the command;
net localgroup administrators myadmin /add
myadmin being the name of my local administrator account. In smsts.log there is no sign of the command failing, or even running (strange?). But if I run the command on the machine under a command prompt as my domain admin account I get an access denied, I can only presume this also happens when SCCM tries the same thing using the same account.
Any ideas would be welcome!
Be the first to answer this question