mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
Enable debug and verbose output for Get-WindowsAutopilotInfo
Adds $DebugPreference and $VerbosePreference to the Autopilot registration steps to help diagnose issues during OOBE enrollment, per review feedback.
This commit is contained in:
parent
1df3191f57
commit
816b03f63f
1 changed files with 4 additions and 0 deletions
|
|
@ -127,12 +127,16 @@ At the OOBE screen, press **Shift+F10** to open a command prompt:
|
|||
2. Register directly with Intune (preferred):
|
||||
```powershell
|
||||
powershell
|
||||
$DebugPreference = "Continue"
|
||||
$VerbosePreference = "Continue"
|
||||
Set-ExecutionPolicy Bypass -Scope Process -Force
|
||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
||||
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
|
||||
Install-Script -Name Get-WindowsAutopilotInfo -Force
|
||||
Get-WindowsAutopilotInfo -Online
|
||||
```
|
||||
The `$DebugPreference` and `$VerbosePreference` settings enable diagnostic output that helps troubleshoot issues with `Get-WindowsAutopilotInfo -Online`.
|
||||
|
||||
Sign in with your Entra account when prompted.
|
||||
|
||||
3. If `-Online` fails (auth errors, script errors), fall back to CSV:
|
||||
|
|
|
|||
Loading…
Reference in a new issue