Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (20 sloc) 570 Bytes

Sudo for PowerShell

Installation

  1. From PowerShell, create a $profile if you don't have one:

    if (!(test-path $profile)) { new-item -path $profile -itemtype file -force }
    
  2. Open the profile in notepad:

    notepad.exe $profile
    
  3. Add the following line and save the file:

    . /path/to/sudo.ps1
    
  4. sudo will be available in all new PowerShell windows

Usage

sudo application [arguments ...]

Contact