Wednesday, April 10, 2013

Hyper-v management

http://blogs.msdn.com/b/virtual_pc_guy/archive/2008/01/17/allowing-non-administrators-to-control-hyper-v.aspx

Runnning a program as a priviledged user

  1. Using impersonation code:
  2. Uisng App manifest in a .net project :
    • create a new App.Manifest item in project and add
  3. 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