Avatar of ivan rosa
ivan rosa
Flag for United States of America

asked on 

Pin to TaskBar

Hello Guys,
Back then the way there was a way to add shortcuts to the task bar
$shell = new-object -com "Shell.Application"  
$folder = $shell.Namespace('C:\Windows')    
$item = $folder.Parsename('Calc.exe')
$verb = $item.Verbs() | ? {$_.Name -eq 'Pin to Tas&kbar'}
if ($verb) {$verb.DoIt()}

Open in new window

but it seems that has changed, in the structure for Windows 10, does anybody know the new methods? 
PowershellWindows 10Windows Batch

Avatar of undefined
Last Comment
ivan rosa

8/22/2022 - Mon