Hello,
Thank you for posting in Q&A forum.
Please kindly try below steps to troubleshoot the issue:
- Please run CMD or PowerShell with elevated permission to map the network drive:
net use Z: \server\folder /persistent:yes
New-PSDrive -Name "Z" -PSProvider FileSystem -Root "\server\folder" -Persist
2.Create a Script file with command inside and execute it with elevated permission.
I hope the information above is helpful.
If you have any questions or concerns, please feel free to let us know.
Best regards,
Jill Zhou
If the Answer is helpful, please click "Accept Answer" and upvote it.