Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Powershell cmdlet copyHere zipping issue on first three execution after a system reboot - File not found or no read permission

$
0
0

Hi,

Once I execute powershell script on Windows Server 2008 R2 or Windows 2012 R2 which try to zip files using copyHere cmdlet after a reboot, for first 3 execution, it pops up window with error msg - File not found or no read permission. After first three runs compression occurs successfully.

Instead if I use CreateFromDirectory, compression is successful each execution after reboot.

If I execute the two scripts (one with copyHere and another with CreateFromDirectory) one after another after a reboot, then again copyHere throws same error as above till the first three attempts while CreateFromDirectory runs successfully in each of the attempt.

What is the reason behind copyHere failure for only first three attempts and how can I overcome this?


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>