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: Run as Different User

12 Mar 2013   #30
Brink

64-bit Windows 10 Pro
 
 

"Run as" requires a password credential to work.


My System SpecsSystem Spec
01 Jun 2013   #31
Billd59

windows 7
 
 

I am trying to write a batch file. I want to run the batch file as Administrator. I know I can put "runas /userUserNameHere) CMD.exe" In the batch file but It ask me to put the Administrator password In. Is there anyway I can put the password In the batch file too? I am writing the batch file for someone else and don't want to give them the batch file.
My System SpecsSystem Spec
01 Jun 2013   #32
Brink

64-bit Windows 10 Pro
 
 

Hello Bill,

If you like, users could just right click on the .bat file, and click on "Run as administrator" to do so.

Hope this helps some,
Shawn
My System SpecsSystem Spec
03 Jun 2013   #33
Billd59

windows 7
 
 
run as Administrator

I can't put this In a batch file? I would like to make It as easy as I can since I am making this for someone else. I know I can do "runas" but that ask for password and I don't know how to add the password to the batch file.
My System SpecsSystem Spec
.

03 Jun 2013   #34
Brink

64-bit Windows 10 Pro
 
 

How is the batch file going to be used?

Would you be able to do what you are wanting to do in the .bat file with a .vbs script file instead? I have a method that will have the .vbs prompt with UAC to elevate using a script.

If you have a password included in the batch, then it will only work on the computer that has the account and password you used for the batch.
My System SpecsSystem Spec
04 Jun 2013   #35
Billd59

windows 7
 
 

Quote   Quote: Originally Posted by Brink View Post
How is the batch file going to be used?

Would you be able to do what you are wanting to do in the .bat file with a .vbs script file instead? I have a method that will have the .vbs prompt with UAC to elevate using a script.

If you have a password included in the batch, then it will only work on the computer that has the account and password you used for the batch.
'I am helping my Sister-In-Law with her computer. She can't change her password from her user account. I don't want to give her the Administrator password. I was thinking of writing a batch file for her to change her account With the runas Administrator and password than make It a executable so she can just click and run It. I have the batch file writing already. She does just learning computers. This Is her first computer. I am just learning batch file and vbscipt. It should just be run on her computer not on on any other computer.
My System SpecsSystem Spec
04 Jun 2013   #36
Brink

64-bit Windows 10 Pro
 
 

Bill,

This may be able to work for what you are wanting.

Elevated Program Shortcut - Create for Standard User
My System SpecsSystem Spec
21 Oct 2014   #37
Zloduh

Windows 7 7000 x32
 
 

Hi Brink
is it possible to create a context menu option example "run with elevated permissions" where it would automatically insert my administrator user and pass.
We all switched to standard user in my company but we in IT have domain admin accounts that we use when prompted and it would make it easier if i could automate it with a script than make a batch file for every app i need.
My System SpecsSystem Spec
21 Oct 2014   #38
Brink

64-bit Windows 10 Pro
 
 

Hello Zloduh,

It's a good idea, but the only problem I see with using a context menu like that is it would be available for all users to use to "Run as administrator" with your account.
My System SpecsSystem Spec
22 Oct 2014   #39
Zloduh

Windows 7 7000 x32
 
 

Yes but in my case no one uses my pc but me.
I will have to look if it is even possible to script around this security measure.
Thx for reply Brink its ancient topic.
My System SpecsSystem Spec
Comment

 Run as Different User




Tutorial Tools




Similar help and support threads
Windows 7 Tutorial Category
C:\User\User -User\AppData\Local\Temp\032150Log.iniis lost
I run windows 7 premium 64 and all of the sudden I stated to get this popup after windows loads that says "C:\User\Lori-Bee\AppData\Local\Temp\032150Log.iniis lost" How can I fix this?...I tried check disk running CCleaner ....No difference
General Discussion
Switch User then logoff, back to ctrl-alt-del login not previous user
On windows 7 professional 64-bit sp1, if a current user is screen locked, the lock screen indicates the current user name and account is logged on and the computer is locked. I am using Classic Logon in group policy, and under local policy-security options-interactive logon i have it set to...
General Discussion
User Profile Corruption/RegIssues? How to monitor windows (user login)
When I login to windows (7, Ultimate x64) on most profiles (created a new one, affected, logged into my admin account, 1 of 2 user accounts, a clean one for lightweight surfing with no load time for all 3rd party s/w) and my monitor goes from extended (blank) (1920x1080) to ... looking like it has...
General Discussion
Windows 7 takes forever to load the select user/switch user screen
Earlier today I turned on my Toshiba laptop (Satellite P855-S5200) and got some sort of error screen, and then it brought me to a screen asking if I wanted to do a system repair or start windows normally. I chose system repair, but then it seemed to get stuck in that process (It was taking forever...
General Discussion
The User Profile Service Failed the Login/User Prof. cannot be loaded
Hi, Am in a bit of a quandary, here. I am experimenting on a new Windows 7 build, and using a domain account, I copied it to make a "new" default user folder. Now when I try and login using a domain users account, I get the following message: The User Profile Service Failed the Login User...
General Discussion
Strange Defult Login User Prompt - Local Admin, Not Domain User
So a new box recently built, when booted, defaults to the local administrator account. This is a Windows 7 machine for a Linux guru that doesn't want to be bothered pressing more buttons than is necessary, if you get my drift. So my question is, after pressing Ctrl+Alt+Del...how do I...
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 00:10.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App