title: Error thrown when trying to create shortcuts with PowerShell
body: <p>I am not at all versed in PowerShell, but I am trying to use it nonetheless. I am working to automate an OS build for my IT department and I have almost everything done except for the creation of shortcuts. I found this topic: <a href="https://stackoverflow.com/questions/19335004/how-to-run-a-powershell-script-from-a-batch-file">How to run a PowerShell script from a batch file</a> that told me how I could use PowerShell to do this. </p>
  
  <p>When I run this command (saving to the default user profile's desktop) It throws an error.</p>
  
  <hr>
  
  <p>POWERSHELL: </p>
  
  <pre><code>$WshShell = New-Object -comObject WScript.Shell
  
  $Shortcut = $WshShell.CreateShortcut("C:\Users\Default\Desktop\ReadMe.lnk")
  
  $Shortcut.TargetPath = "C:\Program Files (x86)\Adobe\Acrobat 10.0\ReadMe.htm"
  
  $Shortcut.Save()
  </code></pre>
  
  <hr>
  
  <p>COMMAND: </p>
  
  <pre><code>Powershell.exe -executionpolicy remotesigned -File "C:\Users\trw68319\Desktop\Powershell Shortcuts.ps1"
  </code></pre>
  
  <hr>
  
  <p><a href="https://i.stack.imgur.com/ACHRF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ACHRF.png" alt="enter image description here"></a></p>
  
  <hr>
  
  <p>I suspect this is due to the fact that the default user is a hidden directory (I tried this with a different directory and it worked). Could anyone please tell me if it is possible to complete this task while saving to the default (hidden) user directory?</p>
  
  <p>Thanks</p>