Standard user requires admin PW when using elevated command


  1. Posts : 605
    W7 Ultimate
       #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?
      My Computer


  2. Posts : 6,285
    Windows 10 Pro X64
       #2

    What if you change the properties of the file in system32 to run as admin, rather than the link in each profile?
      My Computer


  3. Posts : 72,046
    64-bit Windows 11 Pro for Workstations
       #3

    Hello William,

    Since what you are wanting to do is to have a standard user be able to run an elevated file, you could use the method in the tutorial to create an elevated shortcut to let the standard user be able to. You would need to repeat this for each user account. :)

    Elevated Program Shortcut - Create for Standard User
      My Computer


  4. Posts : 605
    W7 Ultimate
    Thread Starter
       #4

    I could not find a place in the batch file where I can run as administrater. However, I did create another user, "everyone", and gave that new user full priveledges.
    The standard user still has to input the PW
    Thanks for your interest anyway
      My Computer


  5. Posts : 72,046
    64-bit Windows 11 Pro for Workstations
       #5

    William,

    You could create a shortcut of the .bat file, and use OPTION SIX below to set the shortcut to run the .bat file elevated (run as administrator).
    Afterwards, use the tutorial I posted above to create an elevated shortcut for each user to run the shortcut of the .bat. :)
      My Computer


  6. Posts : 605
    W7 Ultimate
    Thread Starter
       #6

    I am, also, creating a elevated short cut according to your tutorial. When logged in to the "built-in admin account" the following happens: About every two or three minutes a msg popps up telling me that, because of inactivity, I will be logged off in 1 minute unless I click cancel I do click cancel and go on setting up this shortcut when the msg, again, pops up I go through the same procedure "click cancel" and this happens again and again. There is activity, I know because I am doing it Anyway, I have stopped creating this short cut until this troublesome problem is alleviated.

    Bill
      My Computer


  7. Posts : 72,046
    64-bit Windows 11 Pro for Workstations
       #7

    Bill,

    It sounds like you have some sort of policy or something set to log out users when inactive instead. You would need to disable whatever you had set for that first to stop the pop-up.

    The shortcut wouldn't cause this, but would be affected by it since it uses the built-in Administrator's password.
      My Computer


  8. Posts : 605
    W7 Ultimate
    Thread Starter
       #8

    I found the reason for the inactive msg. About a year ago, I created an inactive Screen saver to log a user out of his account if he just got up and left. During testing I set the time of inactivity to 1 minute instead of 15 that I finally wound up with. I have no idea how it was the SS for the built-in admin account but I just disabled it That problem solved.
      My Computer


  9. Posts : 72,046
    64-bit Windows 11 Pro for Workstations
       #9

    Interesting. I wouldn't have thought that would be a cause either.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 23:13.
Find Us