获取计算机所有属性信息

PS C:\Users\hexingxing> get-computerinfo


WindowsBuildLabEx                                       : 20348.1.amd64fre.fe_release.210507-1500
WindowsCurrentVersion                                   : 6.3
WindowsEditionId                                        : ServerStandard
WindowsInstallationType                                 : Server
WindowsInstallDateFromRegistry                          : 2021/10/12 周二 11:28:06
WindowsProductId                                        : 00454-10000-00001-AA420
WindowsProductName                                      : Windows Server 2022 Standard
WindowsRegisteredOrganization                           :
WindowsRegisteredOwner                                  :
WindowsSystemRoot                                       : C:\Windows
WindowsVersion                                          : 2009
OSDisplayVersion                                        : 21H2
BiosCharacteristics                                     : {7, 11, 12, 15...}
BiosBIOSVersion                                         : {ALASKA - 1072009, 2.30, American Megatrends - 5000C}
BiosBuildNumber                                         :
BiosCaption                                             : 2.30
BiosCodeSet                                             :
BiosCurrentLanguage                                     :
BiosDescription                                         : 2.30
BiosEmbeddedControllerMajorVersion                      : 255
BiosEmbeddedControllerMinorVersion                      : 255
BiosFirmwareType                                        : Uefi
BiosIdentificationCode                                  :
BiosInstallableLanguages                                :
BiosInstallDate                                         :
BiosLanguageEdition                                     :
BiosListOfLanguages                                     :
BiosManufacturer                                        : American Megatrends Inc.
BiosName                                                : 2.30
BiosOtherTargetOS                                       :
BiosPrimaryBIOS                                         : True
BiosReleaseDate                                         : 2017/12/21 周四 8:00:00
BiosSeralNumber                                         : Default string
BiosSMBIOSBIOSVersion                                   : 2.30
BiosSMBIOSMajorVersion                                  : 3
BiosSMBIOSMinorVersion                                  : 0
BiosSMBIOSPresent                                       : True
BiosSoftwareElementState                                : Running
BiosStatus                                              : OK
BiosSystemBiosMajorVersion                              : 5
BiosSystemBiosMinorVersion                              : 12
BiosTargetOperatingSystem                               : 0
BiosVersion                                             : ALASKA - 1072009
CsAdminPasswordStatus                                   : Unknown
CsAutomaticManagedPagefile                              : True
CsAutomaticResetBootOption                              : True
CsAutomaticResetCapability                              : True
CsBootOptionOnLimit                                     :
CsBootOptionOnWatchDog                                  :
CsBootROMSupported                                      : True
CsBootStatus                                            : {0, 0, 0, 0...}
CsBootupState                                           : Normal boot
CsCaption                                               : S2MQT22HH7N
CsChassisBootupState                                    : Safe
CsChassisSKUNumber                                      : Default string
CsCurrentTimeZone                                       : 480
CsDaylightInEffect                                      :
CsDescription                                           : AT/AT COMPATIBLE
CsDNSHostName                                           : S2MQT22HH7N
CsDomain                                                : hxx.tt
CsDomainRole                                            : MemberServer
CsEnableDaylightSavingsTime                             : True
CsFrontPanelResetStatus                                 : Unknown
CsHypervisorPresent                                     : False
CsInfraredSupported                                     : False
CsInitialLoadInfo                                       :
CsInstallDate                                           :
CsKeyboardPasswordStatus                                : Unknown
CsLastLoadInfo                                          :
CsManufacturer                                          : Micro-Star International Co., Ltd.
CsModel                                                 : MS-7B48
CsName                                                  : S2MQT22HH7N
CsNetworkAdapters                                       : {以太网, VMware Network Adapter VMnet1, VMware Network Adapte
                                                          r VMnet8}
CsNetworkServerModeEnabled                              : True
CsNumberOfLogicalProcessors                             : 12
CsNumberOfProcessors                                    : 1
CsProcessors                                            : {Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz}
CsOEMStringArray                                        : {Default string}
CsPartOfDomain                                          : True
CsPauseAfterReset                                       : -1
CsPCSystemType                                          : Desktop
CsPCSystemTypeEx                                        : Desktop
CsPowerManagementCapabilities                           :
CsPowerManagementSupported                              :
CsPowerOnPasswordStatus                                 : Unknown
CsPowerState                                            : Unknown
CsPowerSupplyState                                      : Safe
CsPrimaryOwnerContact                                   :
CsPrimaryOwnerName                                      :
CsResetCapability                                       : Other
CsResetCount                                            : -1
CsResetLimit                                            : -1
CsRoles                                                 : {LM_Workstation, LM_Server, NT, Server_NT...}
CsStatus                                                : OK
CsSupportContactDescription                             :
CsSystemFamily                                          : Default string
CsSystemSKUNumber                                       : Default string
CsSystemType                                            : x64-based PC
CsThermalState                                          : Safe
CsTotalPhysicalMemory                                   : 68635811840
CsPhyicallyInstalledMemory                              : 67108864
CsUserName                                              : HXX\hexingxing
CsWakeUpType                                            : PowerSwitch
CsWorkgroup                                             :
OsName                                                  : Microsoft Windows Server 2022 Standard
OsType                                                  : WINNT
OsOperatingSystemSKU                                    : StandardServerEdition
OsVersion                                               : 10.0.20348
OsCSDVersion                                            :
OsBuildNumber                                           : 20348
OsHotFixes                                              : {KB5005538, KB5005039, KB5005552}
OsBootDevice                                            : \Device\HarddiskVolume1
OsSystemDevice                                          : \Device\HarddiskVolume3
OsSystemDirectory                                       : C:\Windows\system32
OsSystemDrive                                           : C:
OsWindowsDirectory                                      : C:\Windows
OsCountryCode                                           : 86
OsCurrentTimeZone                                       : 480
OsLocaleID                                              : 0804
OsLocale                                                : zh-CN
OsLocalDateTime                                         : 2021/11/3 周三 19:50:53
OsLastBootUpTime                                        : 2021/11/3 周三 14:41:18
OsUptime                                                : 05:09:35.3040069
OsBuildType                                             : Multiprocessor Free
OsCodeSet                                               : 936
OsDataExecutionPreventionAvailable                      : True
OsDataExecutionPrevention32BitApplications              : True
OsDataExecutionPreventionDrivers                        : True
OsDataExecutionPreventionSupportPolicy                  : OptOut
OsDebug                                                 : False
OsDistributed                                           : False
OsEncryptionLevel                                       : 256
OsForegroundApplicationBoost                            : Maximum
OsTotalVisibleMemorySize                                : 67027160
OsFreePhysicalMemory                                    : 60685296
OsTotalVirtualMemorySize                                : 76988632
OsFreeVirtualMemory                                     : 71017232
OsInUseVirtualMemory                                    : 5971400
OsTotalSwapSpaceSize                                    :
OsSizeStoredInPagingFiles                               : 9961472
OsFreeSpaceInPagingFiles                                : 9961472
OsPagingFiles                                           : {C:\pagefile.sys}
OsHardwareAbstractionLayer                              : 10.0.20348.143                                                OsInstallDate                                           : 2021/10/12 周二 19:28:06                                      OsManufacturer                                          : Microsoft Corporation                                         OsMaxNumberOfProcesses                                  : 4294967295                                                    OsMaxProcessMemorySize                                  : 137438953344
OsMuiLanguages                                          : {zh-CN}
OsNumberOfLicensedUsers                                 :
OsNumberOfProcesses                                     : 169
OsNumberOfUsers                                         : 7
OsOrganization                                          :
OsArchitecture                                          : 64 位
OsLanguage                                              : zh-CN
OsProductSuites                                         : {TerminalServices, TerminalServicesSingleSession}
OsOtherTypeDescription                                  :
OsPAEEnabled                                            :
OsPortableOperatingSystem                               : False
OsPrimary                                               : True
OsProductType                                           : Server
OsRegisteredUser                                        :
OsSerialNumber                                          : 00454-10000-00001-AA420
OsServicePackMajorVersion                               : 0
OsServicePackMinorVersion                               : 0
OsStatus                                                : OK
OsSuites                                                : {TerminalServices, TerminalServicesSingleSession}
OsServerLevel                                           : FullServer
KeyboardLayout                                          : zh-CN
TimeZone                                                : (UTC+08:00) 北京,重庆,香港特别行政区,乌鲁木齐
LogonServer                                             : \\DOMAIN2
PowerPlatformRole                                       : Desktop
HyperVisorPresent                                       : False
HyperVRequirementDataExecutionPreventionAvailable       : True
HyperVRequirementSecondLevelAddressTranslation          : True                                                          HyperVRequirementVirtualizationFirmwareEnabled          : True                                                          HyperVRequirementVMMonitorModeExtensions                : True                                                          DeviceGuardSmartStatus                                  : Off                                                           DeviceGuardRequiredSecurityProperties                   :
DeviceGuardAvailableSecurityProperties                  :
DeviceGuardSecurityServicesConfigured                   :
DeviceGuardSecurityServicesRunning                      :
DeviceGuardCodeIntegrityPolicyEnforcementStatus         :
DeviceGuardUserModeCodeIntegrityPolicyEnforcementStatus :

通过筛选过滤所需信息

获取当前用户所加入域

Get-ComputerInfo -Property "*domain"

CsDomain CsPartOfDomain
-------- --------------
hxx.tt             True

通过筛选过滤所需信息

获取当前用户 Windows 信息和用户名称信息

Get-ComputerInfo -Property "*name"


WindowsProductName : Windows Server 2022 Standard
BiosName           : 2.30
CsDNSHostName      : S2MQT22HH7N
CsName             : S2MQT22HH7N
CsPrimaryOwnerName :
CsUserName         : HXX\hexingxing
OsName             : Microsoft Windows Server 2022 Standard

通过筛选过滤所需信息

获取当前用户 Windows 版本和硬件版本信息

Get-ComputerInfo -Property "*version"


WindowsCurrentVersion              : 6.3
WindowsVersion                     : 2009
OSDisplayVersion                   : 21H2
BiosBIOSVersion                    : {ALASKA - 1072009, 2.30, American Megatrends - 5000C}
BiosEmbeddedControllerMajorVersion : 255
BiosEmbeddedControllerMinorVersion : 255
BiosSMBIOSBIOSVersion              : 2.30
BiosSMBIOSMajorVersion             : 3
BiosSMBIOSMinorVersion             : 0
BiosSystemBiosMajorVersion         : 5
BiosSystemBiosMinorVersion         : 12
BiosVersion                        : ALASKA - 1072009
OsVersion                          : 10.0.20348
OsCSDVersion                       :
OsServicePackMajorVersion          : 0
OsServicePackMinorVersion          : 0

何星星原创文章仅用于个人学习,当前页面暂不支持复制操作,了解详情或文章转载请 点此 继续!

0 条评论

发表回复

Avatar placeholder

您的电子邮箱地址不会被公开。 必填项已用*标注