1. What is a WMI Object
Windows Management Instrumentation (Wmi) is the core technology of Windows system management, because it can publish various types of information in a unified manner.
In the process of learning powershell, we often see some commands or scripts for WMI, but we still don't know which operations can be performed by WMI.
The following describes some examples of related problems.
2. Get-wmiobject
First, we need to know that our windows computer supports the available WMI classes.
650) This. width = 650; "Title =" image "style =" background-image: none; display: inline "border =" 0 "alt =" image "src =" http://img1.51cto.com/attachment/201407/17/705126_1405609602D6W3.png "" 671 "Height =" 429 "/>
We can see that there are about thousands of classes. What information can these classes obtain?
1. View computer BIOS Information
650) This. width = 650; "Title =" image "style =" background-image: none; display: inline "border =" 0 "alt =" image "src =" http://img1.51cto.com/attachment/201407/17/705126_1405609602G5re.png "" 680 "Height =" 146 "/>
2. View computer operating system information
650) This. width = 650; "Title =" image "style =" background-image: none; display: inline "border =" 0 "alt =" image "src =" http://img1.51cto.com/attachment/201407/17/705126_14056096029rOo.png "" 683 "Height =" 225 "/>
3. View Remote Computer Information
650) This. width = 650; "Title =" image "style =" background-image: none; display: inline "border =" 0 "alt =" image "src =" http://img1.51cto.com/attachment/201407/17/705126_14056096023Ck5.png "" 688 "Height =" 181 "/>
Note: When you use get-wmiobject to connect to a remote computer, the remote computer must run WMI and, under the default configuration, your account must be a member of the local administrator group on the remote computer. Windows powershell does not need to be installed on the remote system. Therefore, you can manage operating systems that do not run Windows powershell but Use WMI.
4. View computer memory information
650) This. width = 650; "Title =" image "style =" background-image: none; display: inline "border =" 0 "alt =" image "src =" http://img1.51cto.com/attachment/201407/17/705126_1405609602NbQ0.png "" 715 "Height =" 128 "/>
5 A friend asked how to know the attributes behind the pipeline operator? Get-member
650) This. width = 650; "Title =" image "style =" background-image: none; display: inline "border =" 0 "alt =" image "src =" http://img1.51cto.com/attachment/201407/17/705126_1405609602PKQF.png "" 730 "Height =" 443 "/>