title: Pin shortcut (.lnk) to start menu
body: <p>I'm currently making an installation script by using a .cmd file.
  Here is my code:</p>
  
  <pre><code>IF EXIST "%USERPROFILE%\Desktop\Opslag\Opslag.hta" (
  
  START "" "%USERPROFILE%\Desktop\Opslag\Opslag.lnk" /secondary /minimized
  MSG "%USERNAME%" The program is already installed.
  EXIT
  
  ) ELSE (
  
  XCOPY %SOURCE% %DESTINATION% /D /E /C /R /I /K /Y
  START "" "%USERPROFILE%\Desktop\Opslag\Opslag.lnk" /secondary /minimized
  MSG "%USERNAME%" Setup is complete!
  EXIT
  )
  </code></pre>
  
  <p>The <code>%SOURCE%</code> and <code>%DESTINATION%</code> are set earlier in the script.</p>
  
  <p><strong>When the folder has been copied I want the file <code>%USERPROFILE%\Desktop\Opslag\Opslag.lnk</code> to be added to the Start Menu.</strong></p>
  
  <p>I have seen earlier posts like:
  <a href="https://stackoverflow.com/questions/9903847/how-to-pin-to-start-menu-using-powershell">How to pin to start menu using PowerShell</a>, but I cannot make it work.</p>
  
  <p>I'm currently testing it on my home laptop which runs Windows 7 with danish language. The machine where I need to do this runs Windows 7 with english language. Therefore I think the <code>$verb</code> is different from the scripts I've found, but I haven't tested on my work station.</p>
  
  <p>Furthermore my work station has a very limited UAC, 
  and therefore I do not have Administrator rights. And please do not comment on how this should not be done by users, but only Administrators/IT, as I know what I'm doing.</p>
  
  <p>I hope someone can help me pin the <code>Opslag.lnk</code> to the Start Menu, preferably on both languages (danish and english). </p>