Forum Discussion
Joseph Demmelmaier
Sep 06, 2018Copper Contributor
Access denied when running Upgrade Readiness Deployment Script on Windows 10 devices
Hi, I have implemented an Azure Log Analytics demo environment including Windows 7 SP1, Windows 8.1 and Windows 10 client machines. Microsoft Monitoring Agent is installed on all three machin...
DavidJordan
Jan 10, 2019Copper Contributor
For me, it turned out to be permissions on the powershell.exe.config file. The Pilot script backs the original up, copies in a new one, runs the PowerShell script with an -ExecutionPolicy Bypass flag on it (which should allow for unsigned scripts as I understand it), and then copies the backup config back to the original. It was failing when it attempted to make a backup and again when trying to restore the backup.
Now, should I have needed to adjust the permissions? Probably not. But at least the 'access denied' errors went away.
YMMV.