-1
votes
1answer
94 views

regedit command results in “access denied” in cmd

Edit: The issue at this point is that a regular user is granted access to the registry and there is no prompt for administrative credentials whatsoever. Prior to changing permissions (See Scott's ...
0
votes
1answer
25 views

Running hstart from MSYS

I'm trying to automate some things on my computer. And here's what I ran into. I'm running this command from MSYS prompt: hstart /elevate "cmd /k netstat -anb" First a message box with title ...
1
vote
1answer
36 views

Launching MS Word from elevated process leads to “run-time error 429”

Weird problem. I'm trying to open a word doc from a command prompt. C:\> \somefolder\SomeWordDoc.docx If I do this from a normal prompt, it works fine. However, if I have launched the prompt ...
1
vote
1answer
718 views

Cannot map network drives using 'net use' while elevated as an administrator

So, this problem stems from not being able to save anything on my network drives. I tried using takeown on everything in the network drive as the user Joey (which is an administrator on my computer ...
0
votes
0answers
41 views

Runas program as administrator [duplicate]

There is context menu entry on cmd, "Run as Administrator", that opens UAC window and launches cmd as Administrator. How can I open a program as Administrator in command line? I've read about runas ...
1
vote
1answer
1k views

Least privileges - run cmd as 'standard' user, from a privileged account, no password

This question is how to run with least privileges. This is not (really) about running with elevated privileges. First let me clarify a couple things about the general understanding of Windows 7 ...
0
votes
0answers
150 views

what is user that executes windows batch file

I have .bat file which works with network path using directory stack and therefore needs network privileges. My PC is member of domain. And here is strange thing: when I run batch file using double ...
1
vote
2answers
2k views

Windows 7 compatibility mode set for Windows XP SP3 for an executable from the command line and bypass User Account Control Prompt

I'm trying to package an application called Boss and is intended to be deployed through SCCM 2012 and seems that is an old Windows 2K application so it doesn't has all the properties I wish it could ...
7
votes
3answers
2k 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 ...
-1
votes
2answers
261 views

What is a command you can run from CMD.exe that requires UAC elevation? [closed]

I googled this, and I couldn't find an answer. What's a command that you have to UAC elevation in cmd.exe to run?
2
votes
0answers
466 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 ...
1
vote
2answers
2k views

How to elevate a program without the UAC prompt? [duplicate]

Possible Duplicate: How to run program from command line with elevated rights I have a computer with these settings for UAC: Attempting to run a safe program results in a UAC prompt: ...
2
votes
1answer
4k views

Is there any way to elevate a command prompt in Windows 7? [duplicate]

Possible Duplicate: Elevate a running program to administrator (Windows 7) Situation: I start a command prompt normally, without Administrator permissions, either accidentally by habit or ...
4
votes
2answers
6k views

Start elevated command prompt in %UserProfile% directory by default?

When I start an elevated Command Prompt in Windows 7 or Windows Vista, the initial directory is the %SystemRoot%\system32 directory. This is the default Windows behavior, and is not a problem ...
2
votes
1answer
357 views

Easy quick notifications on Windows 7 with UAC

On Windows XP I was used to create simple notifications for myself using combination of at and msg commands. The whole thing was very easy hit Ctrl+R type eg. at 21:00 msg * Do something hit ...
0
votes
1answer
736 views

How do I use RUNAS with the Administrator account disabled in Windows 7

My user account is an administrator account (well in the Administrator group technically). As I understand this I am always running in the standard user context except when elevation is required, ...
3
votes
4answers
14k views

How to toggling UAC on/off quickly, eg. using command line, in Windows-7?

I'm writing codes which relates to UAC and need to turn it on/off very often. So that I'm looking for a way to turning it on/off quickly, prefer to use command line. Please share if you know how ...
3
votes
1answer
4k views

UAC Status from Command Line

Is there any command which will tell me the state of UAC? Eg it's switched on, off of which level it's on.