關於WMI對象 Get-WmiObject

來源:互聯網
上載者:User

標籤:windows   color   技術   資訊   

一什麼是WMI對象

Windows Management Instrumentation (WMI) 是 Windows 系統管理的核心技術,因為它可以按統一的方式公開各種類型的資訊。

我們在針對Powershell學習的過程中,經常會看到一些針對WMI調取的命令或指令碼,但是依然不知道WMI到底可以執行那些操作。

下面就以一些執行個體說明相關的問題。

二 Get-Wmiobject

我們需要首Crowdsourced Security Testing道自己的windows電腦支援那些可用的WMI類。

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

可以看到的類大概有上千個,那麼這些類都能擷取到那些資訊呢?

1 查看電腦BIOS資訊

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 查看電腦作業系統資訊

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 查看遠端電腦的相關資訊

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

註:在使用 Get-WmiObject 串連到遠端電腦時,該遠端電腦必須運行 WMI,並且,在預設配置下,您使用的帳戶必須是該遠端電腦上本機系統管理員群組的成員。遠程系統不需要安裝 Windows PowerShell。從而,您可以對未運行 Windows PowerShell 但可使用 WMI 的作業系統進行管理。

4 查看電腦的記憶體資訊

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 有朋友在問怎麼能知道管道符後面的屬性呢?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" />


聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.