Advertisement
metalx1000

Add icon to taskbar

Nov 10th, 2014
363
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <#
  2. Creates new icon for Windows Taskbar - pins program to taskbar
  3. PowerShell -ExecutionPolicy Bypass .\note_icon.ps1
  4. #>
  5.  
  6. $shell = new-object -com "Shell.Application"  
  7. $folder = $shell.Namespace('C:\Windows')    
  8. $item = $folder.Parsename('notepad.exe')
  9. $item.invokeverb('taskbarpin')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement