Day3 1
Day3 1
PS C:\Windows\system32> get-item | gm
PS C:\Windows\system32> get-item | gm
PS C:\Windows\system32>
PS C:\Windows\system32> help get-item
PS C:\Windows\system32> cls
PS C:\Windows\system32> get-item | gm
PS C:\Windows\system32> cls
PS C:\Windows\system32> Get-WmiObject -list
NameSpace: ROOT\cimv2
NameSpace: ROOT\cimv2
TypeName: System.Management.ManagementObject#root\cimv2\Win32_BIOS
PSComputerName : CSCINDAH504608
Status : OK
Name : Phoenix BIOS SC-T v2.1
Caption : Phoenix BIOS SC-T v2.1
SMBIOSPresent : True
__GENUS : 2
__CLASS : Win32_BIOS
__SUPERCLASS : CIM_BIOSElement
__DYNASTY : CIM_ManagedSystemElement
__RELPATH : Win32_BIOS.Name="Phoenix BIOS SC-T
v2.1",SoftwareElementID="Phoenix BIOS SC-T
v2.1",SoftwareElementState=3,TargetOperatingSystem=0,Version="LENOVO - 2400"
__PROPERTY_COUNT : 27
__DERIVATION : {CIM_BIOSElement, CIM_SoftwareElement, CIM_LogicalElement,
CIM_ManagedSystemElement}
__SERVER : CSCINDAH504608
__NAMESPACE : root\cimv2
__PATH : \\CSCINDAH504608\root\cimv2:Win32_BIOS.Name="Phoenix BIOS
SC-T
v2.1",SoftwareElementID="Phoenix BIOS SC-T
v2.1",SoftwareElementState=3,TargetOperatingSystem=0,Version="LENOVO - 2400"
BiosCharacteristics : {7, 9, 11, 12...}
BIOSVersion : {LENOVO - 2400, Phoenix BIOS SC-T v2.1}
BuildNumber :
CodeSet :
CurrentLanguage : en-US
Description : Phoenix BIOS SC-T v2.1
IdentificationCode :
InstallableLanguages : 1
InstallDate :
LanguageEdition :
ListOfLanguages : {en-US}
Manufacturer : LENOVO
OtherTargetOS :
PrimaryBIOS : True
ReleaseDate : 20160815000000.000000+000
SerialNumber : PF00KDNX
SMBIOSBIOSVersion : GJET90WW (2.40 )
SMBIOSMajorVersion : 2
SMBIOSMinorVersion : 7
SoftwareElementID : Phoenix BIOS SC-T v2.1
SoftwareElementState : 3
TargetOperatingSystem : 0
Version : LENOVO - 2400
Scope : System.Management.ManagementScope
Path : \\CSCINDAH504608\root\cimv2:Win32_BIOS.Name="Phoenix BIOS
SC-T
v2.1",SoftwareElementID="Phoenix BIOS SC-T
v2.1",SoftwareElementState=3,TargetOperatingSystem=0,Version="LENOVO - 2400"
Options : System.Management.ObjectGetOptions
ClassPath : \\CSCINDAH504608\root\cimv2:Win32_BIOS
Properties : {BiosCharacteristics, BIOSVersion, BuildNumber, Caption...}
SystemProperties : {__GENUS, __CLASS, __SUPERCLASS, __DYNASTY...}
Qualifiers : {dynamic, Locale, provider, UUID}
Site :
Container :
PS C:\Windows\system32> Get-WmiObject | gm
PS C:\Windows\system32> cls
PS C:\Windows\system32> Get-WmiObject -list
NameSpace: ROOT\CIMV2
NameSpace: ROOT\cimv2
PS C:\Windows\system32>
PS C:\Windows\system32>
TypeName: System.Management.ManagementObject#root\cimv2\Win32_OperatingSystem
Name MemberType Definition
---- ---------- ----------
PSComputerName AliasProperty PSComputerName = __SERVER
Reboot Method
System.Management.ManagementBaseObject Reboot()
SetDateTime Method
System.Management.ManagementBaseObject SetDateTime(System.St...
Shutdown Method
System.Management.ManagementBaseObject Shutdown()
Win32Shutdown Method
System.Management.ManagementBaseObject Win32Shutdown(System....
Win32ShutdownTracker Method
System.Management.ManagementBaseObject Win32ShutdownTracker(...
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 string CodeSet {get;set;}
CountryCode Property string CountryCode
{get;set;}
CreationClassName Property string CreationClassName
{get;set;}
CSCreationClassName Property string CSCreationClassName
{get;set;}
CSDVersion Property string CSDVersion
{get;set;}
CSName Property string CSName {get;set;}
CurrentTimeZone Property int16 CurrentTimeZone
{get;set;}
DataExecutionPrevention_32BitApplications Property bool
DataExecutionPrevention_32BitApplications {get;set;}
DataExecutionPrevention_Available Property bool
DataExecutionPrevention_Available {get;set;}
DataExecutionPrevention_Drivers Property bool
DataExecutionPrevention_Drivers {get;set;}
DataExecutionPrevention_SupportPolicy Property byte
DataExecutionPrevention_SupportPolicy {get;set;}
Debug Property bool Debug {get;set;}
Description Property string Description
{get;set;}
Distributed Property bool Distributed {get;set;}
EncryptionLevel Property uint32 EncryptionLevel
{get;set;}
ForegroundApplicationBoost Property byte
ForegroundApplicationBoost {get;set;}
FreePhysicalMemory Property uint64 FreePhysicalMemory
{get;set;}
FreeSpaceInPagingFiles Property uint64
FreeSpaceInPagingFiles {get;set;}
FreeVirtualMemory Property uint64 FreeVirtualMemory
{get;set;}
InstallDate Property string InstallDate
{get;set;}
LargeSystemCache Property uint32 LargeSystemCache
{get;set;}
LastBootUpTime Property string LastBootUpTime
{get;set;}
LocalDateTime Property string LocalDateTime
{get;set;}
Locale Property string Locale {get;set;}
Manufacturer Property string Manufacturer
{get;set;}
MaxNumberOfProcesses Property uint32 MaxNumberOfProcesses
{get;set;}
MaxProcessMemorySize Property uint64 MaxProcessMemorySize
{get;set;}
MUILanguages Property string[] MUILanguages
{get;set;}
Name Property string Name {get;set;}
NumberOfLicensedUsers Property uint32
NumberOfLicensedUsers {get;set;}
NumberOfProcesses Property uint32 NumberOfProcesses
{get;set;}
NumberOfUsers Property uint32 NumberOfUsers
{get;set;}
OperatingSystemSKU Property uint32 OperatingSystemSKU
{get;set;}
Organization Property string Organization
{get;set;}
OSArchitecture Property string OSArchitecture
{get;set;}
OSLanguage Property uint32 OSLanguage
{get;set;}
OSProductSuite Property uint32 OSProductSuite
{get;set;}
OSType Property uint16 OSType {get;set;}
OtherTypeDescription Property string OtherTypeDescription
{get;set;}
PAEEnabled Property bool PAEEnabled {get;set;}
PlusProductID Property string PlusProductID
{get;set;}
PlusVersionNumber Property string PlusVersionNumber
{get;set;}
Primary Property bool Primary {get;set;}
ProductType Property uint32 ProductType
{get;set;}
RegisteredUser Property string RegisteredUser
{get;set;}
SerialNumber Property string SerialNumber
{get;set;}
ServicePackMajorVersion Property uint16
ServicePackMajorVersion {get;set;}
ServicePackMinorVersion Property uint16
ServicePackMinorVersion {get;set;}
SizeStoredInPagingFiles Property uint64
SizeStoredInPagingFiles {get;set;}
Status Property string Status {get;set;}
SuiteMask Property uint32 SuiteMask {get;set;}
SystemDevice Property string SystemDevice
{get;set;}
SystemDirectory Property string SystemDirectory
{get;set;}
SystemDrive Property string SystemDrive
{get;set;}
TotalSwapSpaceSize Property uint64 TotalSwapSpaceSize
{get;set;}
TotalVirtualMemorySize Property uint64
TotalVirtualMemorySize {get;set;}
TotalVisibleMemorySize Property uint64
TotalVisibleMemorySize {get;set;}
Version Property string Version {get;set;}
WindowsDirectory Property string WindowsDirectory
{get;set;}
__CLASS Property string __CLASS {get;set;}
__DERIVATION Property string[] __DERIVATION
{get;set;}
__DYNASTY Property string __DYNASTY {get;set;}
__GENUS Property int __GENUS {get;set;}
__NAMESPACE Property string __NAMESPACE
{get;set;}
__PATH Property string __PATH {get;set;}
__PROPERTY_COUNT Property int __PROPERTY_COUNT
{get;set;}
__RELPATH Property string __RELPATH {get;set;}
__SERVER Property string __SERVER {get;set;}
__SUPERCLASS Property string __SUPERCLASS
{get;set;}
FREE PropertySet FREE {FreePhysicalMemory,
FreeSpaceInPagingFiles, FreeVirtua...
PSStatus PropertySet PSStatus {Status, Name}
ConvertFromDateTime ScriptMethod System.Object
ConvertFromDateTime();
ConvertToDateTime ScriptMethod System.Object
ConvertToDateTime();
PS C:\Windows\system32>
PS C:\Windows\system32>
PS C:\Windows\system32> cls
PS C:\Windows\system32> Get-WmiObject -class Win32_OperatingSystem | select *
PSComputerName : CSCINDAH504608
Status : OK
Name : Microsoft Windows 7 Enterprise |C:\
Windows|\Device\Harddisk0\Partition1
FreePhysicalMemory : 3690832
FreeSpaceInPagingFiles : 7560292
FreeVirtualMemory : 10780476
__GENUS : 2
__CLASS : Win32_OperatingSystem
__SUPERCLASS : CIM_OperatingSystem
__DYNASTY : CIM_ManagedSystemElement
__RELPATH : Win32_OperatingSystem=@
__PROPERTY_COUNT : 63
__DERIVATION : {CIM_OperatingSystem,
CIM_LogicalElement, CIM_ManagedSystemElement}
__SERVER : CSCINDAH504608
__NAMESPACE : root\cimv2
__PATH : \\CSCINDAH504608\root\
cimv2:Win32_OperatingSystem=@
BootDevice : \Device\HarddiskVolume1
BuildNumber : 7601
BuildType : Multiprocessor Free
Caption : Microsoft Windows 7 Enterprise
CodeSet : 1252
CountryCode : 1
CreationClassName : Win32_OperatingSystem
CSCreationClassName : Win32_ComputerSystem
CSDVersion : Service Pack 1
CSName : CSCINDAH504608
CurrentTimeZone : 330
DataExecutionPrevention_32BitApplications : True
DataExecutionPrevention_Available : True
DataExecutionPrevention_Drivers : True
DataExecutionPrevention_SupportPolicy : 2
Debug : False
Description :
Distributed : False
EncryptionLevel : 256
ForegroundApplicationBoost : 2
InstallDate : 20170225000459.000000+330
LargeSystemCache :
LastBootUpTime : 20170726114839.967813+330
LocalDateTime : 20170726194058.572000+330
Locale : 0409
Manufacturer : Microsoft Corporation
MaxNumberOfProcesses : 4294967295
MaxProcessMemorySize : 8589934464
MUILanguages : {en-US}
NumberOfLicensedUsers : 0
NumberOfProcesses : 145
NumberOfUsers : 3
OperatingSystemSKU : 4
Organization : Computer Sciences Corporation (CSC)
OSArchitecture : 64-bit
OSLanguage : 1033
OSProductSuite : 256
OSType : 18
OtherTypeDescription :
PAEEnabled :
PlusProductID :
PlusVersionNumber :
Primary : True
ProductType : 1
RegisteredUser : Manager
SerialNumber : 55041-007-2497893-86220
ServicePackMajorVersion : 1
ServicePackMinorVersion : 0
SizeStoredInPagingFiles : 8067568
SuiteMask : 272
SystemDevice : \Device\HarddiskVolume1
SystemDirectory : C:\Windows\system32
SystemDrive : C:
TotalSwapSpaceSize :
TotalVirtualMemorySize : 16133276
TotalVisibleMemorySize : 8067568
Version : 6.1.7601
WindowsDirectory : C:\Windows
Scope : System.Management.ManagementScope
Path : \\CSCINDAH504608\root\
cimv2:Win32_OperatingSystem=@
Options : System.Management.ObjectGetOptions
ClassPath : \\CSCINDAH504608\root\
cimv2:Win32_OperatingSystem
Properties : {BootDevice, BuildNumber, BuildType,
Caption...}
SystemProperties : {__GENUS, __CLASS, __SUPERCLASS,
__DYNASTY...}
Qualifiers : {dynamic, Locale, provider,
Singleton...}
Site :
Container :