04/04/2019 315 views

I'm using Specops os/deploy and during the deploy I wan't to create a local account with admin rights.

Many thanks in advance

Kind regards



0 Comments   [ + ] Show comments


All Answers


Save the following as a .bat file.

net user username Password /add /active:yes
net localgroup administrators username /add

And run during deployment.

Edit parts in Bold.

Answered 04/04/2019 by: Ziggi
Blue Belt


Powershell option (v5.1+)

$AccountNameParams = @{
Name = "AccountName"
Password = ('l337p@ssw0rd' | ConvertTo-SecureString -AsPlainText -Force)
FullName = "Account Name"
AccountNeverExpires = $true
PasswordNeverExpires = $true
Confirm = $false

New-LocalUser @AccountNameParams
Answered 04/04/2019 by: isudothings
Senior Purple Belt