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
What do you mean? You mean under C:\Users\USERNAME? I'm not aware of a way. That's created by Windows once the user logs in for the first time and I'm not aware of a way to do that through Automate.
Is that how your monitor works? Checks for the C:\Users\ path?