powershell - Copy-Item fails even when running as administrator -


i've got powershell script copy bunch of files directory in program files (x86). script loops through list of files , calls

copy-item -path $src -destination $dst -verbose -confirm:$false -force 

for each one, when comes overwriting file, access denied error on path. powershell script run batch file i'm running administrator, i'm not sure why failing. i've checked paths in question , they're correct.

the script running on windows server 2012, , ran when last ran few months ago. no user permissions have changed since then.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -