New
#1
Standard user requires admin PW when using elevated command
I have a file to clear the print spooler when it has an error. I based this file on Brinks tutorial. Thanks Brink. I placed this file in C:\windows\system32 folder so all users would have access. The file must be run in a elevated cmd window. I then created a shortcut to the file and put the shortcut in each users Maintenance folder so they could clear the print Q when needed. In each shortcut I put a check in ADVANCED.......RUN AS ADMIN so the elevated command would be uised when clearing the print Q.
When the shortcut is used to clear the print Q it works fine in the ADMIN user account, all the ADMIN has to do is answer "YES" to the UAC. But the standard users must input the ADMIN PW at the UAC. Obviously, I don't want them to have the PW.
Is there a way for me hard code the PW into either of the files, the batch file or the shortcut, so that the standard user doesn't have to insert the ADMIN PW?