Questions tagged [admin-rights]
102 questions
32
votes
1 answer
What does '__COMPAT_LAYER' actually do?
Recently, i was trying to give my application administrator rights without system asking for "Do you want to give administrator rights?" and i found a way which is working perfectly.
Solution I Found
I created a bat file named nonadmin.bat and wrote…

Agent_Spock
- 1,107
- 2
- 16
- 44
27
votes
5 answers
Cross-platform way to check admin rights in a Python script under Windows?
Is there any cross-platform way to check that my Python script is executed with admin rights? Unfortunately, os.getuid() is UNIX-only and is not available under Windows.

grigoryvp
- 40,413
- 64
- 174
- 277
20
votes
5 answers
Test admin rights within PowerShell script?
Whats the best/easiest way to test for administrative rights in a PowerShell script?
I need to write a script that requires administrative rights and want to know the best way to achieve it.

resolver101
- 2,155
- 11
- 41
- 53
9
votes
3 answers
Create outlook addin without need for admin rights
I wrote an outlook addin with some basic functionality to access a webservice and execute methods on it. Everything works like a charm, except that I can't seem to get rid of the fact that users need admin rights to install this add-in. Google…

bas
- 13,550
- 20
- 69
- 146
8
votes
3 answers
.NET Start Process with higher rights
I am trying to execute a program with admin rights through a C# application, which gets invoked with user rights only.
Code
ProcessStartInfo psi;
try
{
psi = new ProcessStartInfo(@"WINZIP32.EXE");
…

KenavR
- 3,769
- 9
- 37
- 47
7
votes
2 answers
Anaconda install package without administrator rights
I have a python installation in a directory where I don't have admin rights or write permission. I am using Python 3.6.5 and conda 4.5.4 on windows 7.
When run conda install -c conda-forge python-fmask I get the following error message:
Preparing…

yPennylane
- 760
- 1
- 9
- 27
7
votes
1 answer
Running Visual Studio without admin rights
We work on XP Pro workstations and use Visual Studio 2008 & 2010 to develop winforms, web and web services against local IIS and SQL Express instances.
We currently have local admin rights on our main machine account. The proposal is to move to a…

Sean Kearon
- 10,987
- 13
- 77
- 93
7
votes
2 answers
How elevate and get admin rights on-demand in a .NET application?
I have an .NET application which is run with default rights as the current user, then at some point I need to perform an action which requires admin rights.
How can I get admin rights on-demand in a .NET application?
Requiring that the application…

sashaeve
- 9,387
- 10
- 48
- 61
7
votes
3 answers
Netbeans Deploy JavaFX App Admin Rights
How can I deploy a JavaFX application for Windows so that the exe containing my jar launches with admin rights? I had this working with my old method of deployment, but the Netbeans way seems much easier and more efficient so I would really like to…

Alen
- 145
- 1
- 1
- 10
6
votes
3 answers
Install python modules on windows without admin rights
I do not have admin rights on my work laptop. Have got python and pip installed on my machine, version numbers as below:
C:\Users\banand\AppData\Local\Programs\Python\Python36\Scripts>python --version
Python…

Bharat Anand
- 464
- 1
- 6
- 14
5
votes
2 answers
Run elevated process
I am trying to run a cmd command with the following code:
ProcessStartInfo cmd = new ProcessStartInfo("cmd.exe");
cmd.RedirectStandardInput = true;
cmd.RedirectStandardOutput = true;
cmd.RedirectStandardError = true;
cmd.UseShellExecute =…

Bali C
- 30,582
- 35
- 123
- 152
5
votes
1 answer
Writing to files on system drive C: without admin rights in Delphi
I am trying to write Memo text to a .txt file in Delphi XE3, in Windows 8, but for some reason when I run the program in the IDE it works (the temp .exe is on my D: drive) but when I copy my program to C:\Myprogram.exe it gives error "Access denied"…

Kobus Vdwalt
- 347
- 1
- 7
- 20
4
votes
2 answers
How do I install a windows service that runs as an administrator?
I've written an installer that installs a windows service (A) that needs to start/stop another service (B). However, when A tries to start/stop B, I get this exception:
System.InvalidOperationException: Cannot open MyService service on computer '.'.…

Mike Pateras
- 14,715
- 30
- 97
- 137
4
votes
1 answer
Is there a way to communicate with a minifilter without requiring admin rights?
I am using a custom minifilter driver similar in nature to Microsoft's MiniSpy sample and I have written a user-mode application in C# to communicate with it.
I need admin rights to install the filter - that seems reasonable. But without admin…

Olivier Fortin
- 81
- 6
3
votes
1 answer
How I can create installer which can run ONLY with administrative rights? (Visual Studio 2010)
I have project written in C#. I create install project for this project, and I really want that this setup can run only if user has administrative rights. How I can do this?
I tried to add "Launch Condition" with condition = AdminUser, then I build…

Alexander Efremov
- 161
- 2
- 13