It seems like this should be simple, but I’m having trouble figuring out the remediation code to simply copy a file I’ve uploaded to the worklet to a local directory on remote PC’s. I can see the file hitting in the amagent folder of the remote device, but once it’s transferred over, it just deletes and doesn’t copy to the directory.
I’ve used all kinds of variations for the script, but no luck. Here’s the remediation code I’m using , which at least gets the file to the remote PC.
copy-item -FilePath ‘.\StopUPH_EWL.bat’ -Destination c:\temp
Any suggestions?
Jeff