Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Pin items to task bar for all users

$
0
0

I'm trying to come up with a script to pin select shortcuts to the task bar for all users.  I am using the following script but it only does it for the person who is logged on.

Any help would be greatly appreciated.

$shell = new-object -com "Shell.Application"  

$folder = $shell.Namespace('C:\Program Files (x86)\Microsoft Office\Office14')    

$item = $folder.Parsename('outlook.exe')

$verb = $item.Verbs() | ? {$_.Name -eq 'Pin to Tas&kbar'}

if ($verb) {$verb.DoIt()}


Viewing all articles
Browse latest Browse all 6937

Latest Images

Trending Articles



Latest Images