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
blockie

 
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
Ztruker

Windows 10 Pro 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
Brink
Microsoft MVP

64-bit Windows 10 Pro
 
 

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
blockie

 

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
Brink
Microsoft MVP

64-bit Windows 10 Pro
 
 

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
blockie

 

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
Brink
Microsoft MVP

64-bit Windows 10 Pro
 
 

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
blockie

 

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
Brink
Microsoft MVP

64-bit Windows 10 Pro
 
 

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
Thread Forum
Elevated Program Shortcut - Create for Standard User
How to Create an Elevated Program Shortcut Any User is able to Run in Vista, Windows 7, and Windows 8 This will show you how to create an elevated program shortcut that allows any user (ex: Standard user) to be able to run a program that runs as administrator without being prompted to enter the...
Tutorials
Installing rights to standard user or prevent an admin user something
I tried to google this and it seems neither is possible but I wanted to hear the truths from the horses mouth. I have a Win 7 Pro x64 computer with 2 users who boths needs to be able (this really is a must) install software on the computer but they can't have access to each other's private...
General Discussion
Shared printer requires credentials for standard user
Network is setup as a Workgroup...Homegroup is disabled. Administrators can print but standard users cannot! Shared printer is visible in Control Panel->Hardware and Sound->Devices and Printers for Administrators but not standard users. Shared printer is visible...
Network & Sharing
New admin user acting differently than standard user changed to admin
I have created two new user accounts. The first I set up as a standard account, logged on, did a few things, then logged off, logged on as my administrator account and editted the account to be an administrator. When I log back on as this account, it appears that the user still does not have...
General Discussion
Standard User to Admin
Ok. My dad put a password on my main administrator and I accidently hit "Run as administrator" for one of my games. I made a standard account before he put as password on dunno why I did standard. Anyway now it requires a password for me to play the game. Is there a way I can change the standard...
General Discussion
Can only use update thru Admin not thru Standard user.
error code 80072efd. Any help would be appreciated. Thanks This all I get. Windows Update error 80072efd
Windows Updates & Activation


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 01:54.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App