DiagVice

1.6.0

Reads registry, event logs, IME logs, TPM, join state and network reachability
and turns them into a list of findings with resolved error codes.
Works in OOBE (Shift+F10) and in the full OS. No modules and no Graph access needed.
App names are resolved offline from the IME logs.

Gives a verdict in plain language with the steps to take, and writes an HTML report, a
JS
Reads registry, event logs, IME logs, TPM, join state and network reachability
and turns them into a list of findings with resolved error codes.
Works in OOBE (Shift+F10) and in the full OS. No modules and no Graph access needed.
App names are resolved offline from the IME logs.

Gives a verdict in plain language with the steps to take, and writes an HTML report, a
JSON report and a plain-text summary for tickets to the output folder.
Run elevated.

Show more

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name DiagVice -RequiredVersion 1.6.0

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) Daniel L. Baldissera. All rights reserved.

Package Details

Author(s)

  • Daniel L. Baldissera

Tags

Intune Autopilot Diagnostics ESP Enrollment Windows

Functions

Add-Finding Set-WorkerProgress Get-StepState Get-UiText Resolve-DiagLanguage Get-FindingText Get-FindingRows ConvertTo-FindingTable Format-NumberedSteps Get-StateWord Get-ErrorMeaning New-VerdictObject Get-DeploymentValue Get-Verdict Get-ProgressEntries Get-DeviceValue Get-TicketText Write-ConsoleFindings ConvertTo-HtmlSummary Write-Section Get-ShortText Get-RegValue Get-RegistryValues Resolve-ErrorCode Get-DeviceInfo Get-TpmInfo Get-JoinState Get-AutopilotProfile ConvertTo-SetupState Get-SetupDetail Get-SetupProgress Add-FactRow Get-ProfileValue Get-IntuneEnrollment Test-AccountSkipped Get-FirstSyncNumber Get-EspSettingsText Get-DeploymentFacts Get-EspCategoryStatus Get-EnrollmentAttempts Get-MdmEnrollment Read-SharedText Get-ImeAppNames Get-EspTracking Get-EspExpectedItems Get-MsiAppState Get-StateMessage Get-Win32AppState Get-ScriptState Get-ImeStatus Get-ImeLogErrors Get-DiagEvents Get-EventErrorCodes Test-TlsEndpoints Get-NetworkState Test-Endpoints Get-HybridJoinState Get-MiscState Invoke-LogCollection ConvertTo-HtmlSection Select-DiagFontName Initialize-DiagFonts Set-DiagPalette Set-DiagTitleBar Enable-DiagDoubleBuffer Show-DiagPaintError Set-DiagScrollTheme Set-DiagScrollThemes Update-DiagScroll Set-DiagBoxText Set-DiagFacts Get-DiagTextHeight Get-SetupStyle Get-FindingColors New-DiagPanel New-DiagLabel New-DiagTextBox New-DiagButton Show-ReportWindow Get-VerdictKey New-DiagWindow Set-DiagButtonLayout Set-DiagDetails Update-DiagSubtitle Update-DiagDevice Get-DiagRowHeight Set-DiagSetupRow Update-DiagSetup Update-DiagProgress Update-DiagStatus Update-DiagRunView Update-DiagFindings Update-DiagView Reset-DiagRun Start-DiagRunspace Stop-DiagRunspace Start-DiagWorker Update-DiagWorker Show-DiagResults Start-DiagRerun Complete-DiagRerun Set-DiagStep Add-DiagLog Copy-DiagTicket Test-UploadUrl Hide-UploadSecret Send-DiagUpload Copy-DiagToUsb New-DiagZip Invoke-DiagJob Start-DiagJob Update-DiagJob Complete-DiagJob

Dependencies

This script has no dependencies.

Release Notes

1.6.0 The left column follows the Enrollment Status Page (Device preparation, Device setup, Account setup)
instead of listing the checks, and the verdict says when setup is simply running. The phase row is
gone. New Deployment list in the details (profile, mode, join type, tenant, ESP settings). The
findings list and the text boxes use the window colours.
1.5.1 A device that waits at the sign-in screen is no longer reported as a failed enrollment.
1.5.0 The window has the layout of 1.3 again (checks on the left, verdict, phases and steps on the
right, details folding out below) with the Vice colours. No tabs. Log collection, USB copy and
upload run in a second runspace, so the window no longer freezes while they work.
1.4.0 New window in the style of the other Vice tools: stat cards, tabs (Overview, Findings, Checks, Log),
English only: the other four languages were removed to keep the script small.
three themes (Vice, Light, Dark; -Theme) and language and theme menus in the header.
The checks run in a second runspace so the window stays responsive, and the endpoint test
connects to all targets at the same time.
1.3.1 Finds a failed Enrollment Status Page from the category state, lists earlier failed MDM
enrollment attempts, flags a stale ESP failure on a device that has since enrolled, and
reads IME logs that are in use so app names are resolved.
1.3.0 Save the log package to a USB drive, or send it to Azure Blob Storage with a write-only SAS
(-UploadUrl or DiagVice.config.json).
1.2.0 The window is now the default; -Console gives console output only. Plain-language verdict
with numbered steps, five phases, copy to ticket, a simple and a detailed window view,
and five languages (da, en, de, fr, it).
1.1.0 Version and author shown in the window. Less event log noise, unmanaged devices
reported as information, TCP-only test for the delivery endpoint, safe window close.
1.0.0 Initial release.

FileList

Version History

Version Downloads Last updated
1.7.2 18 12/1/2026
1.7.1 14 11/30/2026
1.7.0 10 11/30/2026
1.6.1 11 11/30/2026
1.6.0 (current version) 12 11/30/2026
1.5.1 10 11/30/2026
1.5.0 8 11/30/2026
1.4.0 11 11/30/2026
1.3.0 13 11/29/2026
1.2.0 12 11/29/2026
Show more