Skip to content

Instantly share code, notes, and snippets.

@shirothin
Created January 4, 2017 08:27
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/0906ef45470c16cd0c787f71cdbd30e9 to your computer and use it in GitHub Desktop.
Save shirothin/0906ef45470c16cd0c787f71cdbd30e9 to your computer and use it in GitHub Desktop.
#ManageNetPasss
$AppLocation = "C:\Windows\System32\rundll32.exe"
$WshShell = New-Object -ComObject WScript.Shell
$Shortcut = $WshShell.CreateShortcut("$Home\Desktop\ManageNetPasss.lnk")
$Shortcut.TargetPath = $AppLocation
$Shortcut.Arguments ="keymgr.dll, KRShowKeyMgr"
$Shortcut.IconLocation = "shell32.dll,14"
$Shortcut.Description ="ManageNetPasss"
$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