I have couple of scripts which I need to run as local user call "scriptexec" from Administrator account. So when I tried to run with runas it prompts password for user scriptexec. Is there anyway to run those scripts as local user without prompting password on automation?
-
1Are you avoiding this because you don't know the password, or because you have to run the same script many times?– LPChipCommented Nov 17, 2016 at 10:56
-
I need to run the same script many times on automation and also I dont know the password. Its verify difficult to get password more then 1000+ servers– Karthi1234Commented Nov 17, 2016 at 12:23
-
Its going to be really hard to do this without knowing the password. The only thing you can do is to make the script run at user logon, but then the user still needs to login and that means someone who knows the password needs to enter it.– LPChipCommented Nov 17, 2016 at 12:27
-
@Berend why do you think this will work if he can't run the script as the admin user itself?– LPChipCommented Nov 17, 2016 at 12:58
Add a comment
|