Get-WmiObjectWin32_OperatingSystem|Format-ListBootDevice,BuildNumber,BuildType,Caption,CodeSet,CountryCode,CreationClassName,CSCreationClassName,CSDVersion,CSName,Description,Locale,Manufacturer,Name,Organization,OSArchitecture,OtherTypeDescription,PlusProductID,PlusVersionNumber,RegisteredUser,SerialNumber,Status,System...
PS>Get-WmiObject-Class Win32_OperatingSystem|Get-Member-MemberType Property Name MemberType Definition---BootDevice Property string BootDevice{get;set;}BuildNumber Property string BuildNumber{get;set;}BuildType Property string BuildType{get;set;}Caption Property string Caption{get;set;}CodeSet Property ...
BuildType : Multiprocessor Free OSType : 18 ServicePackMajorVersion : 0 ServicePackMinorVersion : 0 7.列出本地用户和所有者 命令 Get-CimInstance-ClassNameWin32_OperatingSystem|Select-Object-PropertyNumberOfLicenedUsers,NumberOfUsers,RegisteredUser 输出 NumberOfLicenedUsers NumberOfUsers RegisteredUser --...
Get-WmiObject Win32_OperatingSystem | Format-List BootDevice,BuildNumber,BuildType,Caption,CodeSet,CountryCode,CreationClassName,CSCreationClassName,CSDVersion,CSName,Description,Locale,Manufacturer,Name,Organization,OSArchitecture,OtherTypeDescription,PlusProductID,PlusVersionNumber,RegisteredUser,SerialNumber,Status...
Windows 系统一个令人诟病的地方在于,它的 Shell 终端太拉胯了。且不说原先的 CMD,难用且难看,就...
可通过选择 Win32_OperatingSystem 类属性找到有关本地用户的常规信息。 你可以明确选择使属性显示如下: PowerShell 复制 Get-CimInstance -ClassName Win32_OperatingSystem | Select-Object -Property NumberOfLicensedUsers, NumberOfUsers, RegisteredUser 使用通配符的更简洁版本是: PowerShell 复制 Get-CimInstance...
CsChassisSKUNumber: 机箱 SKU 编号 CsCurrentTimeZone: 当前时区 CsDaylightInEffect: 夏令时是否生效 CsDescription: 描述 CsDNSHostName: DNS 主机名 CsDomain: 域 CsDomainRole: 域角色 CsEnableDaylightSavingsTime: 是否启用夏令时 CsFrontPanelResetStatus: 前面板重置状态 ...
Get-WmiObject Win32_OperatingSystem|Format-List BootDevice,BuildNumber,BuildType,Caption,CodeSet,CountryCode,CreationClassName,CSCreationClassName,CSDVersion,CSName,Description,Locale,Manufacturer,Name,Organization,OSArchitecture,OtherTypeDescription,PlusProductID,PlusVersionNumber,RegisteredUser,SerialNumber,Status,Sys...
Get-WmiObject -Class $Win32_OperatingSystem SystemDirectory : C:\WINDOWS\system32 Organization : BuildNumber : 17134 RegisteredUser : SerialNumber : 00330-50027-66869-AAOEM Version : 10.0.17134 $PSVersionTable Name Value --- --- PSVersion 5.1.17134.165 PSEdition Desktop PSCo...
systeminfo | findstr /i /r "os.*version.*build" 查看OS 安装日期 systeminfo | find /i "original" 或 wmic os get installdate 查看上次启动时间 systeminfo | find /i "system boot time" 查看时区 systeminfo | find /i "time zone" 或