Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
#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