Skip to main content

All Questions

1 vote
1 answer
375 views

Batch file with elevated permissions is not working?

After seeing this solution: How to run batch file command with elevated permissions? I put this in a batch file: powershell -command "Start-Process cmd -ArgumentList '/c %CD% && elevated.bat'...
bat_cmd's user avatar
  • 551
0 votes
2 answers
2k views

run as administrator doesn't elevate process

I am trying to run netsh wlan set hosted network mode=allow as administrator but when I run it from an elevated cmd, or powershell, netsh still replies that: You must run this command from a command ...
Andrei's user avatar
  • 293
0 votes
1 answer
7k views

UAC problems with msiexec silent mode

I have a msi package which I want to install to some computers, which aren't necessary on the same domain neither network. The way I spread the msi package it doesn't matter. We can expect that file ...
arturn's user avatar
  • 101
1 vote
1 answer
246 views

force log off after UAC has been disabled

I'm having to install Windows updates on multiple stand alone systems. I have my update_script.bat script to run, but as it loops through installing each update I am prompted by UAC controls for my ...
CrashFive's user avatar
-1 votes
1 answer
3k 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 ...
Shrout1's user avatar
  • 1,104
4 votes
1 answer
6k 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 ...
Joey Miller's user avatar
2 votes
1 answer
5k 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 ...
smaudet's user avatar
  • 201
0 votes
0 answers
239 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 ...
seeker's user avatar
  • 135
2 votes
3 answers
3k views

Windows 7's compatibility mode set to 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 it's intended to be deployed through SCCM 2012 and seems that it's an old Windows 2K application so it doesn't has all the properties I wish it ...
derspinne's user avatar
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 ...
Ian C.'s user avatar
  • 6,149
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 ...
Ksice's user avatar
  • 123
5 votes
1 answer
8k 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 ...
Iszi's user avatar
  • 13.9k
2 votes
1 answer
1k 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 ...
Lukas's user avatar
  • 1,187
1 vote
1 answer
2k 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, ...
mindless.panda's user avatar
11 votes
3 answers
85k 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 to....
Nam G VU's user avatar
  • 12.4k