mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-08 01:32:05 +00:00
Update powershell.md
This commit is contained in:
@@ -92,20 +92,23 @@ Get-Process -Id 10500 | Stop-Process
|
|||||||
|
|
||||||
## Get-WmiObject
|
## Get-WmiObject
|
||||||
|
|
||||||
Get-WmiObject has a parameter called -Class this allows you to specify the
|
__Get-WmiObject__ has a parameter called -Class this allows you to specify the WMI object you wish to access. The command below will get a list of WMI
|
||||||
WMI object you wish to access. The command below will get a list of WMI
|
classes, Get-WmiObject -List -Class Win32*
|
||||||
classes,
|
|
||||||
Get-WmiObject -List -Class Win32*
|
|
||||||
Once you know the name of the WMI class, you can execute Get-WmiObject
|
Once you know the name of the WMI class, you can execute __Get-WmiObject__ to return useful information from a local or remote computer. Below is a list
|
||||||
to return useful information from a local or remote computer. Below is a list
|
|
||||||
of the most important WMI classes you may need:
|
of the most important WMI classes you may need:
|
||||||
Win32_PhysicalMemory - information about available memory
|
- Win32_PhysicalMemory - information about available memory
|
||||||
Win32_Processor - Processor information
|
- Win32_Processor - Processor information
|
||||||
Win32_LogicalDisk - Logical disk drive information
|
- Win32_LogicalDisk - Logical disk drive information
|
||||||
Win32_DiskDrive - Physical disk information
|
- Win32_DiskDrive - Physical disk information
|
||||||
Win32_OperatingSystem - Information about the operating system
|
- Win32_OperatingSystem - Information about the operating system
|
||||||
|
|
||||||
To get information about the operating system, run the command below:
|
To get information about the operating system, run the command below:
|
||||||
|
|
||||||
|
```
|
||||||
Get-WmiObject -Class Win32_OperatingSystem
|
Get-WmiObject -Class Win32_OperatingSystem
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user