Questions tagged [elevated-privileges]

Elevated privileges are higher privileges, offered by an operating system, usually higher than normal user's privileges.

Elevated privileges are higher privileges, offered by an operating system. They are usually higher than normal user's privileges (for example, administrator privileges are regarded as elevated privileges).

398 questions
0
votes
0 answers

Elevated credentials HARDCODED into script

EDITED FOR CLARITY: We are using 3rd party software that is supposed to invoke a Python script (that I must create). This script sends values such as sender-ip=10.10.10.10 and the script is supposed to return the userId This 3rd party software…
Glowie
  • 2,271
  • 21
  • 60
  • 104
0
votes
2 answers

psexec remote computer name

I am mostly new to this kind of stuff and running into a problem I don't know how to solve. Basically, it's looking at test.txt and using the list of computer names inside it, and running the batch file on each of them. If I could figure out a way…
user3229528
  • 29
  • 1
  • 4
  • 8
0
votes
2 answers

How do I temporarily lower elevation

The scenario is that I am running a service as admin. We have a callout that runs custom code ( think scripting ). It uses codedom compiling to create an assembly and create a type and invoke a method (based on code). I want to temporarily drop…
Derek
  • 7,615
  • 5
  • 33
  • 58
0
votes
1 answer

Execute several elevated commands in shell (or similar)

I have a requirement to execute several commands with elevated rights, something like: call program that modifies a .config file of a service (needs admin rights) net stop myservice (needs admin rights) net start myservice (needs admin rights) All…
Andreas Reiff
  • 7,961
  • 10
  • 50
  • 104
0
votes
0 answers

NetBeans import exe for Java program

I'm using the http://jpassing.com/2007/12/08/launch-elevated-processes-from-the-command-line/ elevate program to give me administrator access to certain commands in my java program. I've imported the elevate.zip into my NetBeans library, but still…
Arc
  • 441
  • 1
  • 9
  • 26
0
votes
1 answer

May installing/using .NET 4.0 full profile require elevated admin privileges?

If we develop a traditional desktop WinForms app with the target framework set to '.NET 4.0 Client Profile' and would like to switch to the full .NET Framework profile, can it cause any issues which can be solved only by elevating the app rights?…
0
votes
1 answer

Getting error - Access is denied in OpenProcess() after enabling privileges

I want to get executable path of csrss process. I enabled privileges, but GetLastError() function returns error 5 in OpenProcess. I'm running Visual Studio as administrator and compiling program in 64bit mode, also I'm using Windows 8. Thanks to…
0
votes
2 answers

How to make a batch file tell if it is elevated or not

I need a code in the space below to tell if the batch file is elevated or not. I am making a program so that if it is elevated it does something one way and if it is not it does it the other way. Does anyone know a code I could use. @echo…
09stephenb
  • 9,358
  • 15
  • 53
  • 91
0
votes
1 answer

Batch file to windows uninstall menu

How could I make a batch file add a EXE file to the uninstall menu on a windows 7 pc. I have windows 7 32 bit laptop
09stephenb
  • 9,358
  • 15
  • 53
  • 91
0
votes
1 answer

qudpsocket multicast root privileges

I've written a simple udp multicast server using QUdpSocket but the writedatagram function only works if I run the app with root privileges. Is this normal? It's a pain. Plus iperf (for example) seems to work without root privileges. What am I doing…
kingrolo
  • 2,857
  • 2
  • 16
  • 11
0
votes
1 answer

How to spawn new process in same script

I understand that you cannot elevate an existing process, but you can create a new process with elevated privileges. Currently I have two scripts, where one script creates elevated privileges and calls another. # script1.ps1 $abc = $args $startInfo…
Glowie
  • 2,271
  • 21
  • 60
  • 104
0
votes
2 answers

Using "sudo" to elevate privilege (temporarily) when writing to /usr/shared/

I am developing an OSX application for school where multiple users of the same mac will able to launch the program based on shared configuration (i.e. database connection info). By design, the normal user without administrative privilege should not…
YeenFei
  • 3,180
  • 18
  • 26
0
votes
1 answer

ASP.NET Roles and Membership

I am quite new to ASP.NET technologies I have the above web.config for…
jadeoti
  • 58
  • 1
  • 4
0
votes
1 answer

How to troubleshoot "Get-WmiObject : Access is denied."?

I have two working powershell scripts. You would invoke script1.ps1 with: .\script1.ps1 "sender-ip=10.10.10.10" And the script is supposed to return userId=DOMAIN/UserId. The first script: #script1.ps1 $abc = $args $startInfo = $NULL $process =…
Glowie
  • 2,271
  • 21
  • 60
  • 104
0
votes
1 answer

Powershell - script is invoked by 3rd party, how to hard-code elevated credentials

Ok, I understand the concept of creating encrypted credentials and storing it in the powershell script Powershell how to encrypt connectionstring to database But how do I make the powershell script run with elevated credentials when it is being…
Glowie
  • 2,271
  • 21
  • 60
  • 104