Read-WmiObjectCount
PackageDeployment Module Help |
Package Deployment Module |
Read-WmiObjectCount Cmdlet |
Version 4.0.0.5 |
Read-WmiObjectCount
Synopsis
Save Number of Instances of a Class in a Variable
Syntax
Read-WmiObjectCount [-Namespace] <String> [-Class] <String> [-ResultVariable] <String> [-ContinueOnError] [[-Context] <String>] [<CommonParameters>]
Description
Use this command to query the number of available system and software components via WBEM/WMI.
Parameters
-Class <String> |
||||||
The relative path within the namespace which corresponds to the class names, for which you need to determine the number of present instances on the system. |
||||||
|
-Context <String> |
||||||
User: Execution under user account; logging in HKEY_CURRENT_USER, i.e. for the user. |
||||||
|
-ContinueOnError <SwitchParameter> |
||||||
Continues script execution in spite of errors in the respective command |
||||||
|
-Namespace <String> |
||||||
Enter the Namespace to which the object should be connected and in which the class (object) is located. |
||||||
|
-ResultVariable <String> |
||||||
The variable which contains the number of found instances following execution of the command. |
||||||
|
<CommonParameters> |
For more information about common parameters, type "Get-Help about_CommonParameters". |