Skip to content

Instantly share code, notes, and snippets.

@XPlantefeve
Created February 18, 2015 15:53
Show Gist options
  • Save XPlantefeve/f0671cbad8ffd069dee4 to your computer and use it in GitHub Desktop.
Save XPlantefeve/f0671cbad8ffd069dee4 to your computer and use it in GitHub Desktop.
Launch Management console easily from the command line.
function Start-ManagementConsole {
Param( [string]$ComputerName = '.' )
Start-Process -FilePath "${env:windir}\System32\mmc.exe" `
-ArgumentList "compmgmt.msc /computer:\\${ComputerName}"
}
New-Alias -Name manage -Value "Start-ManagementConsole" -Scope Global
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment