Wednesday, April 10, 2013
Runnning a program as a priviledged user
- Using impersonation code:
- Uisng App manifest in a .net project :
- create a new App.Manifest item in project and add
- using powershell command to spawn a new process:
- $password = ConvertTo_SecurityString "password"
- $cred = New-Object System.Management.Automation.PSCredential("username", $password)
- start-process process-name -verb RunAs $cred
Labels:
Programming Techniques
Subscribe to:
Posts (Atom)