Académique Documents
Professionnel Documents
Culture Documents
about_WMI_cmdlets
DESCRIÇÃO RESUMIDA
Fornece informações de segundo plano sobre WMI (Instrumentação de
Gerenciamento do Windows) e Windows PowerShell.
DESCRIÇÃO LONGA
Este tópico fornece informações sobre a tecnologia WMI, os cmdlets
WMI para Windows PowerShell, comunicação remota com base em WMI,
aceleradores WMI e solução de problemas de WMI. Este tópico
também fornece links para outras informações sobre WMI.
Sobre WMI
Cmdlet Descrição
------------------ ----------------------------------------------
Comandos de amostra
C:\PS> notepad.exe
C:\PS> $np = get-wmiobject -query "select * from win32_process where
name='notepad.exe'"
C:\PS> $np | remove-wmiobject
Por exemplo:
Por exemplo:
PS> $c = [WMICLASS]"root\cimv2:WIn32_Process"
PS> $c |fl *
Name : Win32_Process
__GENUS : 1
__CLASS : Win32_Process
__SUPERCLASS : CIM_Process
__DYNASTY : CIM_ManagedSystemElement
__RELPATH : Win32_Process
__PROPERTY_COUNT : 45
__DERIVATION : {CIM_Process, CIM_LogicalElement,
CIM_ManagedSystemElement}
__SERVER : SERVER01
__NAMESPACE : ROOT\cimv2
__PATH : \\SERVER01\ROOT\cimv2:Win32_Process
Por exemplo:
PS> $p = [WMI]'\\SERVER01\root\cimv2:Win32_Process.Handle="1204"'
PS> $p.Name
OUTLOOK.EXE
"Sobre WMI:
http://go.microsoft.com/fwlink/?LinkId=142212
"WMI Troubleshooting"
http://go.microsoft.com/fwlink/?LinkId=142213
E consulte "Secrets of Windows Management Instrumentation - Troubleshooting
and Tips" no Microsoft TechNet Script Center:
http://go.microsoft.com/fwlink/?LinkId=142214
CONSULTE TAMBÉM
Versão online: http://go.microsoft.com/fwlink/?LinkId=142219
Get-WmiObject
Invoke-WmiMethod
Register-WmiEvent
Remove-WmiObject
Set-WmiInstance