All Questions

668
votes
10answers
335481 views

How do I force my .NET application to run as administrator?

Once my program is installed on a client machine, how do I force my program to run as an administrator on Windows 7?
151
votes
22answers
510863 views

PowerShell: Running a command as Administrator

You know how if you're the administrative user of a system and you can just right click say, a batch script and run it as Administrator without entering the administrator password? I'm wondering how ...
96
votes
7answers
186350 views

Start / Stop a Windows Service from a non-Administrator user account

I have a WindowsService named, say, BST. And I need to give a non-Administrator user, UserA, the permissions to Start/Stop this particular service. My service runs on a variety of Windows OS, starting...
60
votes
2answers
54243 views

Admin rights for a single method

Is it possible to require administrator rights for one single method? Something like this: [RequireAdminRightsForThisMethod()] private void TheMethod(){ // Do something }
19
votes
3answers
40112 views

Run Java file as Administrator with full privileges

I have made a Java Application and I tested it in my pc and my coined pc, so far so good... But this application is for another friend of mine that have a disco, when I "installed" my application on h...
16
votes
1answers
12055 views

Detect if program is running with full administrator rights

I need to determine if my program is running with full administrator rights. By that I mean if uac is turned on (for win vista/7) that I need to determine if the program actually has admin rights (lik...
52
votes
8answers
71354 views

What precisely does 'Run as administrator' do?

On Windows 7, I have a command-line program that fails due to file write permission errors, and popping up annoying UAC dialogs every time I run command-line programs that are from an 'unknown pu...
26
votes
9answers
8123 views

How to start a new process without administrator privileges from a process with administrator privileges?

I am creating an automatic updater for an application. The application is started by the user, and runs without administrator privileges. The autoupdater is started with administrator privileges, and ...
22
votes
4answers
8946 views

Visual Studio output file permissions?

I'am using Visual Studio 2010, how to set or automatically change owner of the output file from Visual Studio (such as executable file) to user other than administrator? all output files currently is...
11
votes
1answers
16179 views

How do you request administrator permissions using NSIS?

I am quite new with NSIS. I am trying to request administrator permissions in order to run the installer, as it messes around a bit with registries. My problem with "RequestExecutionLevel" and "MULTIU...

Previous Next