May 21 2024 05:13 AM
We switched settings in Windows Autopilot to make the user a standard user instead of an admin. Now, during OOBE I am asked multiple times to execute a PowerShell script as an admin.
What causes this behavior and how to prevent?
May 21 2024 06:16 AM
Not 100 percent sure how you deploy your script but do you have the option "Run this script using the logged on credentials" set to 'yes'? This might cause this behaviour:
May 21 2024 08:24 AM
May 21 2024 11:43 AM
May 22 2024 12:24 AM
May 22 2024 12:50 AM
When in ESP go to Powershell (using sift f10 to open cmd en open powershell by typing 'Powershell'). Set excution policy to bypass ('set-executionpolicy bypass') You can download/install the Autopilotdiagnostic script (see here). I mostly use the community version because it has more features.
Install the script with the following line: 'Install-Script -Name Get-AutopilotDiagnosticsCommunity'
I forgot if the community version includes the online option by default but to get the translation from GUID to Name you need the online option. So try run the script with the following line: 'Get-AutopilotDiagnosticsCommunity -online'
May 22 2024 04:57 AM
May 22 2024 06:22 AM
May 22 2024 06:25 AM
SolutionMay 22 2024 08:15 AM
May 22 2024 09:37 AM
May 22 2024 06:25 AM
Solution