Tagged Questions
0
votes
1answer
167 views
Possible to continue runas /u:domain\admin cmd with followup commands in the new CMD window?
Possible to continue runas /u:domain\admin cmd with followup commands in the new CMD window?
I tried this: (didn't work) Runas different user to launch CMD and run command
What I want is to run msra ...
2
votes
1answer
393 views
Run as administrator from command line on Windows 8
I am trying to run Notepad as admin so I can edit my hosts file from the command line.
I have tried runas /user:(myusername)\administrator "notepad c:\windows\system32\drivers\etc\hosts" I then input ...
5
votes
2answers
915 views
How to make a cmd 'runnable as administrator' under windows 7?
I have written as small .cmd file to be executed as an administrator. I am trying to set its options as 'Run as Administrator' but the check box is not accessible.
Why? How to solve this issue? I ...
1
vote
1answer
1k views
windows runas command with elevated privileges, user in admin group
I have a windows 7 user who belongs to admin group.
I want to execute sc command that requires admin privileges. I DON'T want to open an elevated cmd, want to be able to simply Win+R->Enter command, ...
3
votes
2answers
678 views
Command Prompt: Run as other user?
If I use the command runas and run a program as a different user on the domain will this actually return information regarding their computer or will it give me my comptuers information?
for example ...
0
votes
1answer
2k views
Running 2 explorer.exe instances with the “RunAs” Command
I've created 2 batch files. The first called admin.bat with the lines:
@echo off
cls
runas /env /user:ADOMAIN\Administrator "\\path\dir\explorer.bat"
and the other called explorer.bat with the ...
2
votes
2answers
13k views
Command line argument for running as another user on Windows?
Under windows .msi installer, if you specify a custom action to be run at an application's installation time, it will get run under the "SYSTEM" user. Can I trick it by passing a command line ...
8
votes
5answers
21k views
Windows 7 Administrator Command Prompt “Start in” Path
So, I know you can create a shortcut to an administrator-level command prompt (as described in this question), but what I'm seeing is that whenever I use such a shortcut, it always drops me into ...