Advertisement
Guest User

Untitled

a guest
Feb 10th, 2013
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $shell = New-Object -COM WScript.Shell
  2. $shortcut = $shell.CreateShortcut('C:\Users\<myname>\Desktop\Mozilla Firefox.lnk')  ## Open the lnk
  3. $shortcut.TargetPath = "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"  ## Make changes
  4. $shortcut.Description = "Our new link"  ## This is the "Comment" field
  5. $shortcut.Save()  ## Save
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement