About WMI Object get-wmiobject

Source: Internet
Author: User

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 "/>


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.