Get-WmiObject

Obtiene datos de WMI (Windows Management Intrumental). Con WMI podremos obtener datos del equipo: procesador, memoria, BIOS, datos usuario, servicios, discos duros, procesos, eventos, etc.

SINTAXIS

Parameter Set: query
Get-WmiObject [-Class] <String> [[-Property] <String[]> ] [-Amended] [-AsJob] [-Authentication <AuthenticationLevel> ] [-Authority <String> ] [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-DirectRead] [-EnableAllPrivileges] [-Filter <String> ] [-Impersonation <ImpersonationLevel> ] [-Locale <String> ] [-Namespace <String> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]

Parameter Set: class
Get-WmiObject [-Amended] [-AsJob] [-Authentication <AuthenticationLevel> ] [-Authority <String> ] [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-EnableAllPrivileges] [-Impersonation <ImpersonationLevel> ] [-Locale <String> ] [-Namespace <String> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]

Parameter Set: list
Get-WmiObject [[-Class] <String> ] [-Amended] [-AsJob] [-Authentication <AuthenticationLevel> ] [-Authority <String> ] [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-EnableAllPrivileges] [-Impersonation <ImpersonationLevel> ] [-List] [-Locale <String> ] [-Namespace <String> ] [-Recurse] [-ThrottleLimit <Int32> ] [ <CommonParameters>]

Parameter Set: path
Get-WmiObject [-Amended] [-AsJob] [-Authentication <AuthenticationLevel> ] [-Authority <String> ] [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-EnableAllPrivileges] [-Impersonation <ImpersonationLevel> ] [-Locale <String> ] [-Namespace <String> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]

Parameter Set: WQLQuery
Get-WmiObject -Query <String> [-Amended] [-AsJob] [-Authentication <AuthenticationLevel> ] [-Authority <String> ] [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-DirectRead] [-EnableAllPrivileges] [-Impersonation <ImpersonationLevel> ] [-Locale <String> ] [-Namespace <String> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]

PARÁMETROS INTERESANTES

-ComputerName<String>: permite obtener valores WMI de un equipo remoto de la red.
-Filter<String>: permite aplicar filtros WMI con lenguaje WQL.

EJEMPLO DE USO

Get-WmiObject -Class Win32_Processor -Property Description

alonsojpd

alonsojpd

Presidente y fundador de Proyecto A y AjpdSoft

Deja un comentario