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