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()}