New
#981
"SetupDiag"
with
OS_details.TXT
setupapi.dev.log
Setup Diagnostics [2021-10-10_at_19-17-04].zip
Code:Directory: C:\Users\Administrator\AppData\Local\Temp Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 10/10/2021 7:16 PM LOGS Transcript started, output file is C:\Users\Administrator\AppData\Local\Temp\\LOGS\Event-Search.TXT Log Collection... (V1.6.3) Downloading "SetupDiag.exe" from http://go.microsoft.com/... Successfully downloaded! Invoking SetupDiag.exe ... HasMoreData : True StatusMessage : Location : localhost Command : CMD.EXE /C "%temp%\setupdiag.exe /Verbose /Output:%temp%\SetupDiag-Log.txt" JobStateInfo : Running Finished : System.Threading.ManualResetEvent InstanceId : 48697970-d67e-45d2-9c47-0ac1c98e73e1 Id : 1 Name : SetupDiagJob ChildJobs : {Job2} PSBeginTime : 10/10/2021 7:16:38 PM PSEndTime : PSJobTypeName : BackgroundJob Output : {} Error : {} Progress : {} Verbose : {} Debug : {} Warning : {} Information : {} State : Running Waiting for SetupDiagJob to complete... Time Stamp: 07:16 PM This can take up to 10 minutes .... SetupDiag v1.6.2107.27002 Copyright (c) Microsoft Corporation. All rights reserved. Searching for setup logs... SetupDiag was unable to find a relevant log file. Exiting! SetupDiag Completed! You may press a key to close this window. -------------------------------------------
I downloaded "Tuneup.bat" onto my desktop:
D:\Pie & tea\Relocated desktop\Tuneup.bat
I double-clicked on it to run it. I clicked on "Yes" on the UAC prompt. The script crashed, i.e. stopped running.
The culprit was the ampersand&
in the file path. The workaround is to use the PowerShell operator-replace
, an idea conceived by einstein1969, in the following code:
Code:(Fsutil Dirty Query %SystemDrive%>Nul)||( PowerShell "Start CMD /C, ("^""%~f0"^"" -replace '[(=&, ;^)]','^$0')" -Verb RunAs & Exit /B)
Computer: a 21H1 (OS Build 19043.1237)
Code:Directory: C:\Users\a\AppData\Local\Temp Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 10/10/2021 1:18 PM LOGS Transcript started, output file is C:\Users\a\AppData\Local\Temp\\LOGS\Event-Search.TXT Log Collection... (V1.6.3) Downloading "SetupDiag.exe" from http://go.microsoft.com/... Successfully downloaded! Invoking SetupDiag.exe ... HasMoreData : True StatusMessage : Location : localhost Command : CMD.EXE /C "%temp%\setupdiag.exe /Verbose /Output:%temp%\SetupDiag-Log.txt" JobStateInfo : Running Finished : System.Threading.ManualResetEvent InstanceId : 2668c43f-e43e-4ed0-80b5-c01a191a3e76 Id : 1 Name : SetupDiagJob ChildJobs : {Job2} PSBeginTime : 10/10/2021 1:19:02 PM PSEndTime : PSJobTypeName : BackgroundJob Output : {} Error : {} Progress : {} Verbose : {} Debug : {} Warning : {} Information : {} State : Running Waiting for SetupDiagJob to complete... Time Stamp: 01:19 PM This can take up to 10 minutes ....... SetupDiag v1.6.2107.27002 Copyright (c) Microsoft Corporation. All rights reserved. Searching for setup logs... Found C:\Windows\Panther\setupact.log with update date 09/20/2021 22:17:22 to be the correct setup log. Gathering baseline information from setup logs... SetupDiag: processing rule: CompatScanOnly. ...No match. SetupDiag: processing rule: PlugInComplianceBlock. ...No match. SetupDiag: processing rule: BitLockerHardblock. ...No match. SetupDiag: processing rule: VHDHardblock. ...No match. SetupDiag: processing rule: PortableWorkspaceHardblock. ...No match. SetupDiag: processing rule: AuditModeHardblock. ...No match. SetupDiag: processing rule: SafeModeHardblock. ...No match. SetupDiag: processing rule: InsufficientSystemPartitionDiskSpaceHardblock. ...No match. SetupDiag: processing rule: CompatBlockedApplicationAutoUninstall. ...No match. SetupDiag: processing rule: CompatBlockedApplicationDismissable. ...No match. SetupDiag: processing rule: CompatBlockedFODDismissable. ...No match. SetupDiag: processing rule: CompatBlockedApplicationManualUninstall. ...No match. SetupDiag: processing rule: HardblockDeviceOrDriver. ...No match. SetupDiag: processing rule: HardblockMismatchedLanguage. ..No match. SetupDiag: processing rule: HardblockFlightSigning. ..No match. SetupDiag: processing rule: DiskSpaceBlockInDownLevel. ..No match. SetupDiag: processing rule: DiskSpaceFailure. ..No match. SetupDiag: processing rule: PreReleaseWimMountDriverFound. ..No match. SetupDiag: processing rule: DebugSetupMemoryDump. .No match. SetupDiag: processing rule: DebugSetupCrash. .No match. SetupDiag: processing rule: DebugMemoryDump. .No match. SetupDiag: processing rule: DeviceInstallHang. ...No match. SetupDiag: processing rule: UnsignedDriverBootFailure. .No match. SetupDiag: processing rule: BootFailureDetected. .No match. SetupDiag: processing rule: WinSetupBootFilterFailure. .No match. SetupDiag: processing rule: FindDebugInfoFromRollbackLog. .No match. SetupDiag: processing rule: AdvancedInstallerFailed. ..No match. SetupDiag: processing rule: AdvancedInstallerPluginInstallFailed. ..No match. SetupDiag: processing rule: AdvancedInstallerGenericFailure. ..No match. SetupDiag: processing rule: FindMigApplyUnitFailure. ..No match. SetupDiag: processing rule: FindMigGatherUnitFailure. ..No match. SetupDiag: processing rule: FindMigGatherApplyFailure. ..No match. SetupDiag: processing rule: OptionalComponentFailedToGetOCsFromPackage. ..No match. SetupDiag: processing rule: OptionalComponentOpenPackageFailed. ..No match. SetupDiag: processing rule: OptionalComponentInitCBSSessionFailed. ..No match. SetupDiag: processing rule: CriticalSafeOSDUFailure. ..No match. SetupDiag: processing rule: UserProfileCreationFailureDuringOnlineApply. ..No match. SetupDiag: processing rule: UserProfileCreationFailureDuringFinalize. ..No match. SetupDiag: processing rule: UserProfileSuffixMismatch. ..No match. SetupDiag: processing rule: WimMountFailure. ..No match. SetupDiag: processing rule: WimMountDriverIssue. ..No match. SetupDiag: processing rule: WimApplyExtractFailure. ..No match. SetupDiag: processing rule: UpdateAgentExpanderFailure. .No match. SetupDiag: processing rule: FindFatalPluginFailure. ...No match. SetupDiag: processing rule: MigrationAbortedDueToPluginFailure. ...No match. SetupDiag: processing rule: DISMAddPackageFailed. ..No match. SetupDiag: processing rule: DISMImageSessionFailure. ..No match. SetupDiag: processing rule: DISMproviderFailure. ..No match. SetupDiag: processing rule: SysPrepLaunchModuleFailure. ..No match. SetupDiag: processing rule: UserProvidedDriverInjectionFailure. ..No match. SetupDiag: processing rule: FindSuccessfulUpgrade. .. SetupDiag reports successful upgrade found. This appears to be a successful update as the last operation was: OOBEBoot and the result was: success SetupDiag found 1 matching issue. SetupDiag results were logged to: C:\Users\a\AppData\Local\Temp\setupdiag-log.txt Logs ZipFile created at: C:\Users\a\AppData\Local\Temp\Logs.zip SetupDiag Completed! You may press a key to close this window. -------------------------------------------
Microsoft OneDrive - Access files anywhere. Create docs with free Office Online.
At a later time I'll run the script on a computer that had failed to upgrade for comparison.
There were 5 entries.
Folders:
Windows
SetupDiag-Log
Text files:
Event_Search
OS_details
SetupDiag_10-Oct-2021
Let's see how it looks when combined with:
Upgrade_failure_info.bat - Click here to go to the BSOD batch repository to download and run this batch file.
This is the computer with the failure to upgrade:
Code:Directory: C:\Users\aaaaaaaa\AppData\Local\Temp Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 10/11/2021 12:17 AM LOGS Transcript started, output file is C:\Users\aaaaaaaa\AppData\Local\Temp\\LOGS\Event-Search.TXT Log Collection... (V1.6.3) Downloading "SetupDiag.exe" from http://go.microsoft.com/... Successfully downloaded! Invoking SetupDiag.exe ... HasMoreData : True StatusMessage : Location : localhost Command : CMD.EXE /C "%temp%\setupdiag.exe /Verbose /Output:%temp%\SetupDiag-Log.txt" JobStateInfo : Running Finished : System.Threading.ManualResetEvent InstanceId : 370edc7e-0b7b-47b7-b505-bfd73a4b3e5f Id : 1 Name : SetupDiagJob ChildJobs : {Job2} PSBeginTime : 10/11/2021 12:18:01 AM PSEndTime : PSJobTypeName : BackgroundJob Output : {} Error : {} Progress : {} Verbose : {} Debug : {} Warning : {} Information : {} State : Running Waiting for SetupDiagJob to complete... Time Stamp: 12:18 AM This can take up to 10 minutes ...
Microsoft OneDrive - Access files anywhere. Create docs with free Office Online.
Code:Directory: C:\Users\a\AppData\Local\Temp Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 10/11/2021 3:28 AM LOGS Transcript started, output file is C:\Users\a\AppData\Local\Temp\\LOGS\Event-Search.TXT Log Collection... (V1.6.3) Downloading "SetupDiag.exe" from http://go.microsoft.com/fwlink/?linkid=870142 Successfully downloaded! Starting SetupDiag.exe ... HasMoreData : True StatusMessage : Location : localhost Command : CMD.EXE /C "%temp%\setupdiag.exe /Verbose /Output:%temp%\SetupDiag-Log.txt" JobStateInfo : Running Finished : System.Threading.ManualResetEvent InstanceId : d371775b-e098-4e92-9bb4-a3f59e699cee Id : 1 Name : SetupDiagJob ChildJobs : {Job2} PSBeginTime : 10/11/2021 3:28:10 AM PSEndTime : PSJobTypeName : BackgroundJob Output : {} Error : {} Progress : {} Verbose : {} Debug : {} Warning : {} Information : {} State : Running Waiting for SetupDiagJob to complete... Time Stamp: 03:28 AM This can take up to 10 minutes ....... SetupDiag v1.6.2107.27002 Copyright (c) Microsoft Corporation. All rights reserved. Searching for setup logs... Found C:\Windows\Panther\setupact.log with update date 09/20/2021 22:17:22 to be the correct setup log. Gathering baseline information from setup logs... SetupDiag: processing rule: CompatScanOnly. ...No match. SetupDiag: processing rule: PlugInComplianceBlock. ...No match. SetupDiag: processing rule: BitLockerHardblock. ...No match. SetupDiag: processing rule: VHDHardblock. ...No match. SetupDiag: processing rule: PortableWorkspaceHardblock. ...No match. SetupDiag: processing rule: AuditModeHardblock. ...No match. SetupDiag: processing rule: SafeModeHardblock. ...No match. SetupDiag: processing rule: InsufficientSystemPartitionDiskSpaceHardblock. ...No match. SetupDiag: processing rule: CompatBlockedApplicationAutoUninstall. ...No match. SetupDiag: processing rule: CompatBlockedApplicationDismissable. ...No match. SetupDiag: processing rule: CompatBlockedFODDismissable. ...No match. SetupDiag: processing rule: CompatBlockedApplicationManualUninstall. ...No match. SetupDiag: processing rule: HardblockDeviceOrDriver. ...No match. SetupDiag: processing rule: HardblockMismatchedLanguage. ..No match. SetupDiag: processing rule: HardblockFlightSigning. ..No match. SetupDiag: processing rule: DiskSpaceBlockInDownLevel. ..No match. SetupDiag: processing rule: DiskSpaceFailure. ..No match. SetupDiag: processing rule: PreReleaseWimMountDriverFound. ..No match. SetupDiag: processing rule: DebugSetupMemoryDump. .No match. SetupDiag: processing rule: DebugSetupCrash. .No match. SetupDiag: processing rule: DebugMemoryDump. .No match. SetupDiag: processing rule: DeviceInstallHang. ...No match. SetupDiag: processing rule: UnsignedDriverBootFailure. .No match. SetupDiag: processing rule: BootFailureDetected. .No match. SetupDiag: processing rule: WinSetupBootFilterFailure. .No match. SetupDiag: processing rule: FindDebugInfoFromRollbackLog. .No match. SetupDiag: processing rule: AdvancedInstallerFailed. ..No match. SetupDiag: processing rule: AdvancedInstallerPluginInstallFailed. ..No match. SetupDiag: processing rule: AdvancedInstallerGenericFailure. ..No match. SetupDiag: processing rule: FindMigApplyUnitFailure. ..No match. SetupDiag: processing rule: FindMigGatherUnitFailure. ..No match. SetupDiag: processing rule: FindMigGatherApplyFailure. ..No match. SetupDiag: processing rule: OptionalComponentFailedToGetOCsFromPackage. ..No match. SetupDiag: processing rule: OptionalComponentOpenPackageFailed. ..No match. SetupDiag: processing rule: OptionalComponentInitCBSSessionFailed. ..No match. SetupDiag: processing rule: CriticalSafeOSDUFailure. ..No match. SetupDiag: processing rule: UserProfileCreationFailureDuringOnlineApply. ..No match. SetupDiag: processing rule: UserProfileCreationFailureDuringFinalize. ..No match. SetupDiag: processing rule: UserProfileSuffixMismatch. ..No match. SetupDiag: processing rule: WimMountFailure. ..No match. SetupDiag: processing rule: WimMountDriverIssue. ..No match. SetupDiag: processing rule: WimApplyExtractFailure. ..No match. SetupDiag: processing rule: UpdateAgentExpanderFailure. .No match. SetupDiag: processing rule: FindFatalPluginFailure. ...No match. SetupDiag: processing rule: MigrationAbortedDueToPluginFailure. ...No match. SetupDiag: processing rule: DISMAddPackageFailed. ..No match. SetupDiag: processing rule: DISMImageSessionFailure. ..No match. SetupDiag: processing rule: DISMproviderFailure. ..No match. SetupDiag: processing rule: SysPrepLaunchModuleFailure. ..No match. SetupDiag: processing rule: UserProvidedDriverInjectionFailure. ..No match. SetupDiag: processing rule: FindSuccessfulUpgrade. .. SetupDiag reports successful upgrade found. This appears to be a successful update as the last operation was: OOBEBoot and the result was: success SetupDiag found 1 matching issue. SetupDiag results were logged to: C:\Users\a\AppData\Local\Temp\setupdiag-log.txt Logs ZipFile created at: C:\Users\a\AppData\Local\Temp\Logs.zip SetupDiag Completed! You may press a key to close this window. -------------------------------------------
If not already included in the script please add to collect to the script instead of the desktop:
$windows.~bt\sources\rollback\setupmem.dmp
$windows.~bt\sources\rollback\setupapi\setupapi.dev.log
C:\windows\inf\setupapi.dev.log
findstr /c:"conx" c:\$windows.~bt\sources\panther\setupact.log >"userprofile%\desktop\setupdetails.txt"
copy %windir%\logs\cbs\cbs.log "userprofile%\desktop\cbs.txt
Microsoft OneDrive - Access files anywhere. Create docs with free Office Online.