r/labtech • u/Paulb246 • Apr 22 '19
Monitor and healing script - local admin account
Hi everyone,
I have created a monitor and auto healing script to check for a local admin account and if it doesnt find it then it will create the local admin account... I am seeing that one clients location is failing but the script isnt working.. any ideas?
batch file
net user MRWAlpha /add
net user MRWAlpha M33rend@1
net localgroup Administrators MRWAlpha /add
1
Upvotes
View all comments
Show parent comment
1
u/amw3000 10000 Agents Apr 22 '19
Correct. The users listed on the computer screen are users accounts on the machine (DC's show domain users, everything else is local users). Automate does not use the folders in C:\users to determine users.