Running a script as administrator
I want a script that'll force another script to run with account credentials i specify but i want it to be secure so no one can see the password from it while it's running
basically what im aiming to do is give teachers the ability to restart the print spooler service which they can't do under their accounts, i've got my net stop spooler net start spooler bit in a batch file, but i need something that'll run that script as an administrator.
I know that in a batch file i can do runas /user:domain\user but this asks me for the password and it's not secure even if it did let me put the password in.
Thanks for any help on this :)