All Questions
19
questions
39
votes
10
answers
147k
views
On Windows 7, is there a command prompt line that can start cmd as an administrator? [duplicate]
On Linux, we can use
sudo bash
to run a shell as the superuser.
On Windows 7, we can use
Start menu -> (in search box, type) cmd -> Right click on search result and choose Run as Administrator
...
12
votes
3
answers
7k
views
If a Windows cmd.exe is running with elevated privileges does anything I execute from its prompt also run with elevated privileges?
If my cmd.exe Window says "Administrator" in the title bar, indicating it was started with elevated privileges, does this mean anything I execute from this command window is also run with elevated ...
12
votes
2
answers
39k
views
DllRegisterServer fails with 0x80070005 even on cmd opened as Administrator
This error code is supposed to mean 'Access Denied', and the solution given everywhere on the net (eg. https://stackoverflow.com/questions/3808954/dllunregisterserver-failed-with-error-code-0x80070005)...
6
votes
5
answers
21k
views
Run cmd.exe in Administrator mode without explorer.exe
I've recently had trouble with explorer.exe not working. I found a possible solution here, using sfc.exe. The problem is that I cannot "right-click Command Prompt, and then click Run as ...
5
votes
2
answers
2k
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 am ...
3
votes
4
answers
69k
views
How to edit the hosts in Windows 7?
I would like to add an address to the hosts file. I am running Windows 7 (Hebrew edition), and I am the system administrator.
I have tried the command notepad C:\Windows\System32\drivers\etc\hosts to ...
3
votes
2
answers
3k
views
Is it possible run CMD.exe as Admin -AND- Start In a different partition?
There are many questions on running CMD.exe as admin on Windows 7, however none of them appear to include a different "Start In" directory / partition.
I can start a command prompt in a different ...
3
votes
3
answers
4k
views
Batch file won't run as administrator unless via cmd prompt
I'm trying to write a batch file that will turn Apache off and copy some files. This is all I have in the script at the moment:
"C:\Apache24\bin\httpd.exe" -k stop
If I either run the batch file ...
2
votes
0
answers
2k
views
Start/stop services from command prompt under non Administrator user, but belonging to administrators group
I have a WIN7 computer with user which is in Administrator group. Let's call it MyUser.
UAC turned ON.
I have several services launched under local system.
When I'm trying to start or stop these ...
2
votes
1
answer
1k
views
When I start command prompt w/ administrative rights, the "Start in" location is igored. Any way to avoid this? [duplicate]
Possible Duplicate:
Windows 7 Administrator Command Prompt “Start in” Path
I have it set to c:\myfolder. If i click Start->Command Prompt it opens a console window started at c:\...
1
vote
3
answers
28k
views
Get administrative right in windows command line [duplicate]
I am not trying to do cheeky things, but my need is just to have two scripts for adding or removing IP routes using the following command in batch scripts:
Add route:
@echo off
route add -p 20.20....
1
vote
1
answer
468
views
Can't take ownership of files
On my data drive I have roughly 800 files for which I have only read and execute permissions, but no others.
When trying to change the permissions via Windows Explorer, all fields relating to ...
1
vote
1
answer
538
views
Single Shortcut runs both as UAC Admin and UAC Non-Admin
I would like a way to initiate a single command file - but that runs both with the full admin rights and the non-Admin token -
Either running as non-admin - and converting to admin - or running as ...
0
votes
1
answer
6k
views
Enable compatibility mode for command prompt in windows 7
I wanted to do something as simple as creating a link to run command promt as an administrator. So I created the link, but when I right-click>Properties>Compatibility all options are grayed out, and I ...
0
votes
1
answer
10k
views
How to know if someone else is logged to a remote shared PC?
In the company I work for, there are some shared PCs where people can log to remotely. It's boring to ask first who is logged in before login to it yourself, just not to disrupt others work.
With ...