Hey there,
So I have a script here, but what I want to do is add this user to the local administrators group... Also if it could check to see if the a "admin" has already been made then stop.. Any help would be great
'--------------------------------------------------
'Add local account addmin with administrator rights
'--------------------------------------------------
'
strComputer = "."
Set colAccounts = GetObject("WinNT://" & strComputer & "")
Set objUser = colAccounts.Create("user", "admin")
objUser.SetPassword "csdlocal!"
objUser.SetInfo
I tried to change the "user" in objUser to "Administrator" No go...
So I have a script here, but what I want to do is add this user to the local administrators group... Also if it could check to see if the a "admin" has already been made then stop.. Any help would be great
'--------------------------------------------------
'Add local account addmin with administrator rights
'--------------------------------------------------
'
strComputer = "."
Set colAccounts = GetObject("WinNT://" & strComputer & "")
Set objUser = colAccounts.Create("user", "admin")
objUser.SetPassword "csdlocal!"
objUser.SetInfo
I tried to change the "user" in objUser to "Administrator" No go...