Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Standard user requires admin PW when using elevated command

04 Mar 2014   #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 System SpecsSystem Spec
.

04 Mar 2014   #2

Windows 8 Core X64
 
 

What if you change the properties of the file in system32 to run as admin, rather than the link in each profile?
My System SpecsSystem Spec
04 Mar 2014   #3
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

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 System SpecsSystem Spec
.


04 Mar 2014   #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 System SpecsSystem Spec
04 Mar 2014   #5
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

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).
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 System SpecsSystem Spec
06 Mar 2014   #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 System SpecsSystem Spec
06 Mar 2014   #7
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

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 System SpecsSystem Spec
06 Mar 2014   #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 System SpecsSystem Spec
06 Mar 2014   #9
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Interesting. I wouldn't have thought that would be a cause either.
My System SpecsSystem Spec
Reply

 Standard user requires admin PW when using elevated command




Thread Tools



Similar help and support threads for2: Standard user requires admin PW when using elevated command
Thread Forum
Elevated Program Shortcut - Create for Standard User Tutorials
Installing rights to standard user or prevent an admin user something General Discussion
Solved Shared printer requires credentials for standard user Network & Sharing
New admin user acting differently than standard user changed to admin General Discussion
elevated task scheduler shortcut for standard user General Discussion

Our Sites

Site Links

About Us

Find 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 09:17 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33