Skip to content
Marco van Gaal edited this page Aug 5, 2015 · 10 revisions

.NAME

Get-WmiObjects

.SYNOPSIS

Gets instances of Windows Management Instrumentation (WMI) classes in a multithreaded way.

.PARAMETERS

 -Amended [<SwitchParameter>]
     
     Required?                    false
     Position?                    named
     Default value                False
     Accept pipeline input?       false
     Accept wildcard characters?  false
     
 
 -Authentication 
     
     Required?                    false
     Position?                    named
     Default value                
     Accept pipeline input?       false
     Accept wildcard characters?  false
     
 
 -Authority <String>
     
     Required?                    false
     Position?                    named
     Default value                
     Accept pipeline input?       false
     Accept wildcard characters?  false
     
 
 -Class <String>
     
     Required?                    true
     Position?                    2
     Default value                
     Accept pipeline input?       false
     Accept wildcard characters?  false
     
 
 -ComputerName <String[]>
     
     Required?                    true
     Position?                    named
     Default value                
     Accept pipeline input?       true (ByValue)
     Accept wildcard characters?  false
     
 
 -Credential <PSCredential>
     
     Required?                    false
     Position?                    named
     Default value                
     Accept pipeline input?       false
     Accept wildcard characters?  false
     
 
 -DirectRead [<SwitchParameter>]
     
     Required?                    false
     Position?                    named
     Default value                False
     Accept pipeline input?       false
     Accept wildcard characters?  false
     
 
 -EnableAllPrivileges [<SwitchParameter>]
     
     Required?                    false
     Position?                    named
     Default value                False
     Accept pipeline input?       false
     Accept wildcard characters?  false
     
 
 -Filter <String>
     
     Required?                    false
     Position?                    named
     Default value                
     Accept pipeline input?       false
     Accept wildcard characters?  false
     
 
 -Impersonation 
     
     Required?                    false
     Position?                    named
     Default value                
     Accept pipeline input?       false
     Accept wildcard characters?  false
     
 
 -List [<SwitchParameter>]
     
     Required?                    false
     Position?                    named
     Default value                False
     Accept pipeline input?       false
     Accept wildcard characters?  false
     
 
 -Locale <String>
     
     Required?                    false
     Position?                    named
     Default value                
     Accept pipeline input?       false
     Accept wildcard characters?  false
     
 
 -Namespace <String>
     
     Required?                    false
     Position?                    named
     Default value                
     Accept pipeline input?       false
     Accept wildcard characters?  false
     
 
 -Progress [<SwitchParameter>]
     
     Required?                    false
     Position?                    named
     Default value                False
     Accept pipeline input?       false
     Accept wildcard characters?  false
     
 
 -Property <String[]>
     
     Required?                    false
     Position?                    3
     Default value                
     Accept pipeline input?       false
     Accept wildcard characters?  false
     
 
 -Query <String>
     
     Required?                    false
     Position?                    named
     Default value                
     Accept pipeline input?       false
     Accept wildcard characters?  false
     
 
 -Recurse [<SwitchParameter>]
     
     Required?                    false
     Position?                    named
     Default value                False
     Accept pipeline input?       false
     Accept wildcard characters?  false
     
 
 -ThrottleLimit <Int32>
     
     Required?                    false
     Position?                    named
     Default value                10
     Accept pipeline input?       false
     Accept wildcard characters?  false

.INPUTS

System.Sting

.OUTPUTS

.EXAMPLES

 -------------------------- EXAMPLE 1 --------------------------
 
 PS C:\>Get-WmiObjects -ComputerName "Server1", "server2", "server3" -Class Win32_ComputerSystem | ft -Autosize
 
 
 
 Domain            Manufacturer Model                                Name    PrimaryOwnerName TotalPhysicalMemory
 ------            ------------ -----                                ----    ---------------- -------------------
 Domain.local    HP             ProLiant DL360e Gen8                Server1    Windows User     8419397632
 Domain.local    NEC             Express5800/120Rh-1 [N8100-xxxxF]    Server2    Windows User     17177952256
 Domain.local    HP             ProLiant DL360e Gen8                Server3    Windows User     8419397632
 
 
 
 
 
 -------------------------- EXAMPLE 2 --------------------------
 
 PS C:\>"computer1", "server2" | Get-WmiObjects -Class Win32_ComputerSystem

.RELATED LINKS

http://www.proxx.nl/

Clone this wiki locally