Skip to content

Instantly share code, notes, and snippets.

@shirothin
Created January 4, 2017 08:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shirothin/f893996ebb98c894d07987af3c91921e to your computer and use it in GitHub Desktop.
Save shirothin/f893996ebb98c894d07987af3c91921e to your computer and use it in GitHub Desktop.
#StartReliabilityMonitor
$AppLocation = "C:\Windows\System32\perfmon.exe"
$WshShell = New-Object -ComObject WScript.Shell
$Shortcut = $WshShell.CreateShortcut("$Home\Desktop\StartReliabilityMonitor.lnk")
$Shortcut.TargetPath = $AppLocation
$Shortcut.Arguments ="/rel"
$Shortcut.IconLocation = "C:\Windows\System32\perfmon.exe"
$Shortcut.Description ="StartReliabilityMonitor"
$Shortcut.WorkingDirectory ="C:\Windows\System32"
$Shortcut.Save()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment