New
#1001
The V2 log collector displays these results:
Safe Mode
FastStartup
FirmwareType
SecureBoot
Please create a command to display results for hibernation status: enabled or disabled
And please create a command that displays bitlocker status.
Which command is used in V2 to determine the fast startup status?
TPM and hibernation and bitlocker results could be added to V2 OS-details.
What is the status of the conx command?
Does it need to have capital letters?
When available please post new scripts from LOGS PS1.
Last edited by zbook; 20 Oct 2021 at 05:07.
If "1" is returned, it has been enabled.Code:GP 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Power\' -Name 'HiberbootEnabled'|Select -ExpandProperty HiberbootEnabled
If "0" is returned, it has been disabled.
Run the attached script and see "OS_details.txt".
Run the attached script and see "Setup_details.txt".
Code:Directory: C:\Users\a\AppData\Local\Temp Mode LastWriteTime Length Name ---- ------------- ------ ---- d----- 10/20/2021 8:26 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 : 40252f04-be1a-4b72-a915-783f6ac43212 Id : 1 Name : SetupDiagJob ChildJobs : {Job2} PSBeginTime : 10/20/2021 8:26:37 AM PSEndTime : PSJobTypeName : BackgroundJob Output : {} Error : {} Progress : {} Verbose : {} Debug : {} Warning : {} Information : {} State : Running Waiting for SetupDiagJob to complete... Time Stamp: 08:26 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. -------------------------------------------
Code:Files will be copied only if they can be found. C:\WINDOWS\Logs\MoSetup\ActionList.xml C:\WINDOWS\Logs\MoSetup\DeviceInventory.xml C:\WINDOWS\Logs\MoSetup\UpdateAgent.log C:\WINDOWS\Logs\MoSetup\UpdateAgent.Old.log 4 File(s) copied File not found - Rollback 0 File(s) copied File not found - Panther 0 File(s) copied C:\Windows\Panther\UnattendGC\diagerr.xml C:\Windows\Panther\UnattendGC\diagwrn.xml C:\Windows\Panther\UnattendGC\setupact.log C:\Windows\Panther\UnattendGC\setuperr.log 4 File(s) copied File not found - NewOS 0 File(s) copied 1 file(s) copied. 1 file(s) copied. 1 file(s) copied. 1 file(s) copied. The system cannot find the file specified. 1 file(s) copied. The system cannot find the path specified. The system cannot find the path specified. 1 file(s) copied. Zipping --> "C:\Users\a\AppData\Local\Temp\LOGS\CBS.log" Zipping --> "C:\Users\a\AppData\Local\Temp\LOGS\Event_Search.txt" Zipping --> "C:\Users\a\AppData\Local\Temp\LOGS\OS_details.TXT" Zipping --> "C:\Users\a\AppData\Local\Temp\LOGS\SetupDiag-Log.zip" Zipping --> "C:\Users\a\AppData\Local\Temp\LOGS\SetupDiag_20-Oct-2021.log" Zipping --> "C:\Users\a\AppData\Local\Temp\LOGS\Windows" Zipping --> "C:\Users\a\AppData\Local\Temp\LOGS\Windows.~BT" Zipping --> "C:\Users\a\AppData\Local\Temp\LOGS\Windows.~WS" Please upload the following file as an attachment to your post on Ten Forums. Setup Diagnostics [2021-10-20_at_08-28-13].zip The above file can be found on the desktop. You may press a key to close this window.
There were 8 rows:
Windows
Windows BT
Windows WS
CBS
event search
OS details
setupdiag
setupdiag log
Code:Safe Mode : Normal boot FastStartup : Enabled Hibernation : Enabled FirmwareType : Legacy SecureBoot : Not supported
Which command was used for hibernation?
Can a command be created for checking bitlocker status?
And if there is no bitlocker it indicates not supported or off
Something similar or better than:
get-bitlockervolume | f
For TPM: considering PowerShell Get-TPM
Any suggestions?
The command that jbcarreon123 posted in #1000 did not produce any results?
Code:Microsoft Windows [Version 10.0.19043.1288] (c) Microsoft Corporation. All rights reserved. C:\WINDOWS\system32>wmic /namespace:\\root\cimv2\security\microsofttpm path win32_tpm get * /format:textvaluelist.xsl | findstr /c:"PhysicalPresenceVersionInfo" PhysicalPresenceVersionInfo=1.2 C:\WINDOWS\system32>
Are commands needed for TPM:
active
enabled
to check for upgrade readiness?
If so then need additional commands?
That's much shorter than the results with get-tpm or powershell get-tpm.
Thx.
If possible please post the command so that Matthew Wai can use it in modifying V2.
It's too long and only works with CMD.
Code:@echo off :: ----------------------------------- :: TPMChecker :: Based on Win11Compchk TPM Check :: ----------------------------------- (Fsutil Dirty Query %SystemDrive%>Nul)||(PowerShell start-process -filepath """%~fn0""" -argumentlist """%1 %2 %3""" -verb RunAs & Exit /B) echo Log Collection... (V1.6.3) echo Getting TPM Status... echo. ::TPM Powershell get-wmiobject -class Win32_Tpm -namespace root\CIMV2\Security\MicrosoftTpm ^| select -ExpandProperty IsActivated_InitialValue >%temp%\tpm1.log 2>&1 Powershell get-wmiobject -class Win32_Tpm -namespace root\CIMV2\Security\MicrosoftTpm ^| select -ExpandProperty IsEnabled_InitialValue >%temp%\tpm2.log 2>&1 set /p "tpm1=" <%temp%\tpm1.log set /p "tpm2=" <%temp%\tpm2.log If not "%tpm1%"=="True" ( set "tpm1=False" ) if "%tpm2%"=="True" ( set /a "sc+=1" ) else ( set "tpm2=False" ) ::TPM Version wmic /namespace:\\root\cimv2\security\microsofttpm path win32_tpm get * /format:textvaluelist.xsl | findstr /c:"PhysicalPresenceVersionInfo" >%temp%\tpmv.log 2>nul powershell ^(get-content "%temp%\tpmv.log"^) -replace 'PhysicalPresenceVersionInfo','' ^| Out-File %temp%\tpmv2.log powershell ^(get-content "%temp%\tpmv2.log"^) -replace ':','' ^| Out-File %temp%\tpmv3.log powershell ^(get-content "%temp%\tpmv3.log"^) -replace ' ','' ^| Out-File %temp%\tpmv4.log powershell ^(get-content "%temp%\tpmv4.log"^) -replace '=','' ^| Out-File %temp%\tpmv5.log type %temp%\tpmv5.log > %temp%\tpmv6.log set /p "tpmv=" <%temp%\tpmv6.log if "%tpmv%"=="" ( set "tpmver=False") if not "%tpmver%"=="False" ( if "%tpmv%"=="1.3" ( set /a "sc+=1" && set "tpmver=2.0") else ( set "tpmver=%tpmv%") ) ) echo TPMActive : %tpm1% echo TPMEnabled : %tpm2% echo TPMVersion : %tpmver% echo. echo Press any key to exit. pause >nul
Hello @jbcarreon123,
May I suggest adding the following code just BEFORE theecho Press any key to exit.
. . .
Code:del "%temp%\tpm*.log" >nul 2>&1