Greetings, I’m on about my 20th deployment with PSADT, but this is vexing me. I need to copy the java exceptions.sites file from a network shared location to the logged in users appdata\locallow\sun\java\deployment\security folder.
My snippet here:
Copy-File -Path "\\networkshare\installs\Java\exception.sites" -Destination "$envUserProfile\AppData\LocalLow\Sun\Java\Deployment\security\exception.sites"
Copy-File -Path "$dirFiles\java_8u291_fixed.txt" -Destination "C:\logs\java_8u291_fixed.txt"
The second copy-file works fine, the first one is attempting to copy the file to the SYSTEM user appdata folder per the log:
[Post-Installation] :: Failed to copy file(s) in path [\\networkshare\installs\Java\exception.sites] to destination [C:\windows\system32\config\systemprofile\AppData\LocalLow\Sun\Java\Deployment\security\exception.sites].
The SOURCE path has been tried locally from $dirFiles too with the same result, it’s not an access-to-the-folder issue.
Any ideas?