@title Collecting Debug Help. @color F0 @rem winget.exe may ask for EULA accept so dry run first. At least second run is quicker. @winget.exe list @color F0 @cls @set ResFolder=%temp%\DebugHelpSysInfo%random%%random%%random% @rd /s /q %ResFolder% @cls @md %ResFolder% @echo. @echo. @echo. @echo This will take a few minutes. Do not close or click this window. @echo Wait for Press any key. @echo If you see Select in the title, hit Enter. @echo. @echo If some info is missing, maybe Run As Admin. @echo. @echo The files here will contain sensitve information. >"%ResFolder%\_ReadMe.txt" @echo Be careful were they are sent to. Maybe review them first. >>"%ResFolder%\_ReadMe.txt" @echo (The origins of this script was corporate internal use.) >>"%ResFolder%\_ReadMe.txt" @echo. >"%ResFolder%\__Wait, not finished." @explorer.exe "%ResFolder%" echo %date% - %time% >"%ResFolder%\PCAndUser.txt" echo %computername% >>"%ResFolder%\PCAndUser.txt" echo %username% >>"%ResFolder%\PCAndUser.txt" @rem echo ---------- >>"%ResFolder%\PCAndUser.txt" @rem wmic.exe os get BuildNumber, InstallDate, LastBootUpTime, LocalDateTime, Locale, OSArchitecture, ServicePackMajorVersion, ServicePackMinorVersion, Version >>"%ResFolder%\PCAndUser.txt" echo ---------- >>"%ResFolder%\PCAndUser.txt" systeminfo >>"%ResFolder%\PCAndUser.txt" tasklist.exe /svc >"%ResFolder%\TaskListServices.txt" tasklist.exe /v >"%ResFolder%\TaskListDetails.txt" winget.exe list >"%ResFolder%\WinGetProduct.txt" @color F0 type "%ResFolder%\WinGetProduct.txt" | find ".NET" >"%ResFolder%\WinGetProduct-NET.txt" wmic.exe product >"%ResFolder%\WMIProduct.txt" type "%ResFolder%\WMIProduct.txt" | find ".NET" >"%ResFolder%\WMIProduct-NET.txt" reg.exe query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP" >"%ResFolder%\Registry-NET.txt" dxdiag.exe /t "%ResFolder%\DXDiag.txt" wevtutil.exe el >"%ResFolder%\Eventlogs.txt" wevtutil.exe epl Application "%ResFolder%\Application.evtx" wevtutil.exe epl Setup "%ResFolder%\Setup.evtx" wevtutil.exe epl System "%ResFolder%\System.evtx" wevtutil.exe epl Security "%ResFolder%\Security.evtx" whoami.exe -all >"%ResFolder%\WhoAmI.txt" @del "%ResFolder%\__Wait, not finished." @echo. >"%ResFolder%\__Finished." ZIPCMD.exe "ToZip:%ResFolder%\_AllFiles.zip" "Folder:%ResFolder%" NoPath @Speak.exe ".language:en-" "Debug, Help, Sys Info. Finished." >nul: @echo. @echo. @echo. @pause