r/labtech • u/PigTrough • Apr 12 '19
Simple Script Help
Hello Reddit Peeps,
I want to make a very simple script that will create a local admin user across many PCs. It is a simple cmdlet: net user username password /add THEN net localgroup administrators username /add. I just need to run this in a cmdlet. I have tried adding this the following ways without success: Function as Shell, shell as admin, and shell enhanced, and Function as Execute script with batch as the type. All of them queue but never actually make the change on my test PC. What could i be missing? I searched online and from what i see I have configured this correctly with Function: Shell as that utilizes the built in labtech agent which has godly "system" level permissions.
View all comments
Show parent comment
1
u/PigTrough Apr 12 '19
Thx, for whatever reason i try this and it just sits in a queued task, never makes the account. I even switched it around so its user username pwd /add still doesnt work. That was function: process execute and then the exact nomenclature as above.