Post problem reports here for Batch files for use in BSOD debugging


  1. Posts : 7,607
    Windows 10 Home 20H2
       #821

    Get-ComputerInfo|Select BiosFirmwareType

    I don't know why you have got no results. My motherboard supports UEFI, and I always get the following:

    Code:
    PS C:\Windows\system32> Get-ComputerInfo|Select BiosFirmwareType
    
    BiosFirmwareType
    ----------------
                Uefi


    MSInfo32

    Run the above command. Click on "System Summary". Next to the item "BIOS Mode", see what the value is.
    The following is my example:
    Post problem reports here for Batch files for use in BSOD debugging-bios-mode.jpg


    Confirm-SecureBootUEFI

    If the outputs "True", it means the computer supports Secure Boot and Secure Boot is enabled.
    My output is "False" because my Secure Boot is disabled.
    For details, see https://docs.microsoft.com/en-us/pow...sserver2019-ps
      My Computer


  2. Posts : 41,474
    windows 10 professional version 1607 build 14393.969 64 bit
       #822

    Code:
    OS Name	Microsoft Windows 10 Pro
    Version	10.0.17763 Build 17763
    Other OS Description 	Not Available
    OS Manufacturer	Microsoft Corporation
    System Manufacturer	Hewlett-Packard
    System Model	HP ZBook 17 G2
    System Type	x64-based PC
    Processor	Intel(R) Core(TM) i7-4810MQ CPU @ 2.80GHz, 2801 Mhz, 4 Core(s), 8 Logical Processor(s)
    BIOS Version/Date	Hewlett-Packard M70 Ver. 01.26, 3/3/2020
    SMBIOS Version	2.7
    Embedded Controller Version	3.18
    BIOS Mode	UEFI
    BaseBoard Manufacturer	Hewlett-Packard
    BaseBoard Product	2255
    BaseBoard Version	KBC Version 03.12
    Platform Role	Mobile
    Secure Boot State	Off


    V2:


    Code:
    Name           : Microsoft Windows 10 Pro|C:\WINDOWS|\Device\Harddisk0\Partition4
    Version        : 10.0.17763
    BuildNumber    : 17763
    OSArchitecture : 64-bit
    LocalDateTime  : 6/26/2021 12:10:30 AM
    LastBootUpTime : 3/22/2021 4:18:58 AM
    InstallDate    : 10/3/2018 4:11:39 AM
    BootDevice     : \Device\HarddiskVolume2
    SystemDevice   : \Device\HarddiskVolume4
    
    
    
    
    
    Safe Mode    : Normal boot
    FastStartup  : Enabled
    FirmwareType : UEFI
    SecureBoot   : Not Enabled



    Code:
    Windows PowerShell
    Copyright (C) Microsoft Corporation. All rights reserved.
    
    PS C:\WINDOWS\system32> Get-ComputerInfo|Select BiosFirmwareType
    
    BiosFirmwareType
    ----------------
    
    
    
    PS C:\WINDOWS\system32> Get-ComputerInfo
    
    
    WindowsBuildLabEx                                       : 17763.1.amd64fre.rs5_release.180914-1434
    WindowsCurrentVersion                                   : 6.3
    WindowsEditionId                                        : Professional
    WindowsInstallationType                                 : Client
    WindowsInstallDateFromRegistry                          : 10/3/2018 9:11:39 AM
    WindowsProductName                                      : Windows 10 Pro
    WindowsRegisteredOrganization                           :
    WindowsRegisteredOwner                                  : Windows User
    WindowsSystemRoot                                       : C:\WINDOWS
    WindowsVersion                                          : 1809
    BiosCharacteristics                                     :
    BiosBIOSVersion                                         :
    BiosBuildNumber                                         :
    BiosCaption                                             :
    BiosCodeSet                                             :
    BiosCurrentLanguage                                     :
    BiosDescription                                         :
    BiosEmbeddedControllerMajorVersion                      :
    BiosEmbeddedControllerMinorVersion                      :
    BiosFirmwareType                                        :
    BiosIdentificationCode                                  :
    BiosInstallableLanguages                                :
    BiosInstallDate                                         :
    BiosLanguageEdition                                     :
    BiosListOfLanguages                                     :
    BiosManufacturer                                        :
    BiosName                                                :
    BiosOtherTargetOS                                       :
    BiosPrimaryBIOS                                         :
    BiosReleaseDate                                         :
    BiosSeralNumber                                         :
    BiosSMBIOSBIOSVersion                                   :
    BiosSMBIOSMajorVersion                                  :
    BiosSMBIOSMinorVersion                                  :
    BiosSMBIOSPresent                                       :
    BiosSoftwareElementState                                :
    BiosStatus                                              :
    BiosSystemBiosMajorVersion                              :
    BiosSystemBiosMinorVersion                              :
    BiosTargetOperatingSystem                               :
    BiosVersion                                             :
    CsAdminPasswordStatus                                   :
    CsAutomaticManagedPagefile                              :
    CsAutomaticResetBootOption                              :
    CsAutomaticResetCapability                              :
    CsBootOptionOnLimit                                     :
    CsBootOptionOnWatchDog                                  :
    CsBootROMSupported                                      :
    CsBootStatus                                            :
    CsBootupState                                           :
    CsCaption                                               :
    CsChassisBootupState                                    :
    CsChassisSKUNumber                                      :
    CsCurrentTimeZone                                       :
    CsDaylightInEffect                                      :
    CsDescription                                           :
    CsDNSHostName                                           :
    CsDomain                                                :
    CsDomainRole                                            :
    CsEnableDaylightSavingsTime                             :
    CsFrontPanelResetStatus                                 :
    CsHypervisorPresent                                     :
    CsInfraredSupported                                     :
    CsInitialLoadInfo                                       :
    CsInstallDate                                           :
    CsKeyboardPasswordStatus                                :
    CsLastLoadInfo                                          :
    CsManufacturer                                          :
    CsModel                                                 :
    CsName                                                  :
    CsNetworkAdapters                                       :
    CsNetworkServerModeEnabled                              :
    CsNumberOfLogicalProcessors                             :
    CsNumberOfProcessors                                    :
    CsProcessors                                            :
    CsOEMStringArray                                        :
    CsPartOfDomain                                          :
    CsPauseAfterReset                                       :
    CsPCSystemType                                          :
    CsPCSystemTypeEx                                        :
    CsPowerManagementCapabilities                           :
    CsPowerManagementSupported                              :
    CsPowerOnPasswordStatus                                 :
    CsPowerState                                            :
    CsPowerSupplyState                                      :
    CsPrimaryOwnerContact                                   :
    CsPrimaryOwnerName                                      :
    CsResetCapability                                       :
    CsResetCount                                            :
    CsResetLimit                                            :
    CsRoles                                                 :
    CsStatus                                                :
    CsSupportContactDescription                             :
    CsSystemFamily                                          :
    CsSystemSKUNumber                                       :
    CsSystemType                                            :
    CsThermalState                                          :
    CsTotalPhysicalMemory                                   :
    CsPhyicallyInstalledMemory                              :
    CsUserName                                              :
    CsWakeUpType                                            :
    CsWorkgroup                                             :
    OsName                                                  :
    OsType                                                  :
    OsOperatingSystemSKU                                    :
    OsVersion                                               :
    OsCSDVersion                                            :
    OsBuildNumber                                           :
    OsHotFixes                                              :
    OsBootDevice                                            :
    OsSystemDevice                                          :
    OsSystemDirectory                                       :
    OsSystemDrive                                           :
    OsWindowsDirectory                                      :
    OsCountryCode                                           :
    OsCurrentTimeZone                                       :
    OsLocaleID                                              :
    OsLocale                                                :
    OsLocalDateTime                                         :
    OsLastBootUpTime                                        :
    OsUptime                                                :
    OsBuildType                                             :
    OsCodeSet                                               :
    OsDataExecutionPreventionAvailable                      :
    OsDataExecutionPrevention32BitApplications              :
    OsDataExecutionPreventionDrivers                        :
    OsDataExecutionPreventionSupportPolicy                  :
    OsDebug                                                 :
    OsDistributed                                           :
    OsEncryptionLevel                                       :
    OsForegroundApplicationBoost                            :
    OsTotalVisibleMemorySize                                :
    OsFreePhysicalMemory                                    :
    OsTotalVirtualMemorySize                                :
    OsFreeVirtualMemory                                     :
    OsInUseVirtualMemory                                    :
    OsTotalSwapSpaceSize                                    :
    OsSizeStoredInPagingFiles                               :
    OsFreeSpaceInPagingFiles                                :
    OsPagingFiles                                           :
    OsHardwareAbstractionLayer                              :
    OsInstallDate                                           :
    OsManufacturer                                          :
    OsMaxNumberOfProcesses                                  :
    OsMaxProcessMemorySize                                  :
    OsMuiLanguages                                          :
    OsNumberOfLicensedUsers                                 :
    OsNumberOfProcesses                                     :
    OsNumberOfUsers                                         :
    OsOrganization                                          :
    OsArchitecture                                          :
    OsLanguage                                              :
    OsProductSuites                                         :
    OsOtherTypeDescription                                  :
    OsPAEEnabled                                            :
    OsPortableOperatingSystem                               :
    OsPrimary                                               :
    OsProductType                                           :
    OsRegisteredUser                                        :
    OsSerialNumber                                          :
    OsServicePackMajorVersion                               :
    OsServicePackMinorVersion                               :
    OsStatus                                                :
    OsSuites                                                :
    OsServerLevel                                           :
    KeyboardLayout                                          :
    TimeZone                                                : (UTC-06:00) Central Time (US & Canada)
    PowerPlatformRole                                       : Mobile
    HyperVisorPresent                                       :
    HyperVRequirementDataExecutionPreventionAvailable       :
    HyperVRequirementSecondLevelAddressTranslation          :
    HyperVRequirementVirtualizationFirmwareEnabled          :
    HyperVRequirementVMMonitorModeExtensions                :
    DeviceGuardSmartStatus                                  : Off
    DeviceGuardRequiredSecurityProperties                   :
    DeviceGuardAvailableSecurityProperties                  :
    DeviceGuardSecurityServicesConfigured                   :
    DeviceGuardSecurityServicesRunning                      :
    DeviceGuardCodeIntegrityPolicyEnforcementStatus         :
    DeviceGuardUserModeCodeIntegrityPolicyEnforcementStatus :
    
    
    
    PS C:\WINDOWS\system32>


    Code:
    Windows PowerShell
    Copyright (C) Microsoft Corporation. All rights reserved.
    
    PS C:\WINDOWS\system32> Get-ComputerInfo|Select BiosFirmwareType
    
    BiosFirmwareType
    ----------------
    
    
    
    PS C:\WINDOWS\system32>



    V2 is running a different command?
    It reported UEFI.
    Last edited by zbook; 26 Jun 2021 at 20:09.
      My Computer


  3. Posts : 7,607
    Windows 10 Home 20H2
       #823

    zbook said:
    V2 is running a different command?
    It reported UEFI.
    "V2 log collector" uses the following code found in "logger-module.psm1":

    Code:
        # Confirm if UEFI is enabled and if SecureBoot is enabled
        $FirmwareType = Get-FirmwareType
    
        # If the system is not using UEFI secureboot is not enabled as it is a UEFI-specific feature
        If ( $FirmwareType -ne "UEFI" )
        {
            $SecureBoot = "Not Enabled"
        }
    
        Else
        {
            $ErrorActionPreference = 'SilentlyContinue'
            $SecureBoot = Confirm-SecureBootUEFI | Out-Null
            $ErrorActionPreference = 'Continue'
    
            If ( $SecureBoot -eq $True )
            {
                $SecureBootStatus = "Enabled"
            }
            Else
            {
                $SecureBootStatus = "Not Enabled"
            }
        }
    
        $FirmwareInfo =
        [PSCustomObject]@{
            "Safe Mode"    = $SafeMode
            "FastStartup"  = $FastStartup
            "FirmwareType" = $FirmwareType
            "SecureBoot"   = $SecureBootStatus
        }
    
        Return $FirmwareInfo
    }
      My Computer


  4. Posts : 41,474
    windows 10 professional version 1607 build 14393.969 64 bit
       #824

    Which portion should be entered into APS so that there is no error?


    Code:
    Windows PowerShell
    Copyright (C) Microsoft Corporation. All rights reserved.
    
    PS C:\WINDOWS\system32> # Confirm if UEFI is enabled and if SecureBoot is enabled
    >>     $FirmwareType = Get-FirmwareType
    >>
    >>     # If the system is not using UEFI secureboot is not enabled as it is a UEFI-specific feature
    >>     If ( $FirmwareType -ne "UEFI" )
    >>     {
    >>         $SecureBoot = "Not Enabled"
    >>     }
    >>
    >>     Else
    >>     {
    >>         $ErrorActionPreference = 'SilentlyContinue'
    >>         $SecureBoot = Confirm-SecureBootUEFI | Out-Null
    >>         $ErrorActionPreference = 'Continue'
    >>
    >>         If ( $SecureBoot -eq $True )
    >>         {
    >>             $SecureBootStatus = "Enabled"
    >>         }
    >>         Else
    >>         {
    >>             $SecureBootStatus = "Not Enabled"
    >>         }
    >>     }
    >>
    >>     $FirmwareInfo =
    >>     [PSCustomObject]@{
    >>         "Safe Mode"    = $SafeMode
    >>         "FastStartup"  = $FastStartup
    >>         "FirmwareType" = $FirmwareType
    >>         "SecureBoot"   = $SecureBootStatus
    >>     }
    >>
    >>     Return $FirmwareInfo
    >> }
    At line:35 char:1
    + }
    + ~
    Unexpected token '}' in expression or statement.
        + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
        + FullyQualifiedErrorId : UnexpectedToken
    
    PS C:\WINDOWS\system32>
      My Computer


  5. Posts : 7,607
    Windows 10 Home 20H2
       #825

    I don't think the code works on the PowerShell window. I have not yet figured out how it works.
    The author is an expert. I am not.
      My Computer


  6. Posts : 41,474
    windows 10 professional version 1607 build 14393.969 64 bit
       #826

    For LOGS PS1 please add a file that displays os-details.txt (similar to V2) with TPM results (either of the earlier commands).
      My Computer


  7. Posts : 7,607
    Windows 10 Home 20H2
       #827

    I don't know how Spectrum gets the FirmwareType.
    The simple way is Get-ComputerInfo|Select BiosFirmwareType, which somehow does not work at your end.
      My Computer


  8. Posts : 41,474
    windows 10 professional version 1607 build 14393.969 64 bit
       #828

    I've not seen @Spectrum posting for a long time.
    Maybe he is available via posts in Improving the Log Collection Script
      My Computer


  9. Posts : 7,607
    Windows 10 Home 20H2
       #829

    Spectrum has used a .psm1 file, about which I know nothing.
      My Computer


  10. Posts : 41,474
    windows 10 professional version 1607 build 14393.969 64 bit
       #830

    In this thread: (post #17)

    MBR2GPT Not Working (Disk Layout validation failed for disk 1)


    The OP reported problems running tuneupplus.
    The manual run for some of the commands was unremarkable.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 23:07.
Find Us




Windows 10 Forums