title: Powershell Copying file from a mapped drive "Z:" to users local "C:"
body: <p>Hello I want my powershell script to be able to copy a file from a mapped drive (Z:) and copy it to the user in the domains "C:/temp/" folder. Currently, my script looks like this.</p>
  
  <pre><code>$Computer = Read-Host -Prompt 'Enter the Computer Name you are accessing'
  
  
  ########## Install Software On PC ##########
  
  New-Item -ItemType directory -Path "\\$Computer\c$\temp\openVPN"
  
      Copy-Item "Z:\(15) IT\VPN\openvpn-install-2.4.8-I602-Win7.exe" "\\$Computer\c$\temp\" -Recurse
      Copy-Item "Z:\(15) IT\VPN\office.opvn" "\\$Computer\c$\temp\" -Recurse
  
  
      Write-Host "Installing openVPN on $Computer"
  
      Invoke-Command -ComputerName $Computer -ScriptBlock {Start-Process "c:\temp\openVPN\openvpn-install-2.4.8-I602-Win7.exe" -ArgumentList "/q" -Wait} 
      Invoke-Command -ComputerName $Computer -ScriptBlock {Start-Process "c:\temp\openVPN\openvpn-install-2.4.8-I602-Win7.exe" -ArgumentList "/q" -Wait} 
  
  </code></pre>
  
  <p>However, I receive the error</p>
  
  <p><strong>Copy-Item : Cannot find drive. A drive with the name 'Z' does not exist.</strong></p>
  
  <p>Would appreciate any help!</p>