title: Pin program to taskbar using PS in Windows 10
body: <p>I am trying to pin a program to the taskbar in Windows 10 (RTM) using this code:</p>
  
  <pre class="lang-bsh prettyprint-override"><code>$shell = new-object -com "Shell.Application"  
  $folder = $shell.Namespace((Join-Path $env:SystemRoot System32\WindowsPowerShell\v1.0))
  $item = $folder.Parsename('powershell_ise.exe')
  $item.invokeverb('taskbarpin');
  </code></pre>
  
  <p>This worked on Windows 8.1, but no longer works on Windows 10.</p>
  
  <p>If I execute <code>$item.Verbs()</code>, I get these:</p>
  
  <pre><code>Application Parent Name
  ----------- ------ ----
                     &amp;Open
                     Run as &amp;administrator
                     &amp;Pin to Start
  
                     Restore previous &amp;versions
  
                     Cu&amp;t
                     &amp;Copy
                     Create &amp;shortcut
                     &amp;Delete
                     Rena&amp;me
                     P&amp;roperties
  </code></pre>
  
  <p>As you can see, there is no verb for pinning it to the taskbar. If I right click that specific file, however, the option is there:<br>
  <a href="https://i.stack.imgur.com/gHWz9.png" rel="noreferrer"><img src="https://i.stack.imgur.com/gHWz9.png" alt="Available verbs in UI"></a></p>
  
  <p><strong>Questions:</strong><br>
  Am I missing something?<br>
  Is there a new way in Windows 10 to pin a program to the taskbar?</p>