< Back
New-AMWmiCondition
Post
NAME New-AMWmiCondition
SYNOPSIS
Creates a new AutoMate Enterprise WMI condition.
SYNTAX
New-AMWmiCondition [-Name] <String> [-Computer <String>] [-Namespace <String>] [-WQLQuery <String>] [-UserName
<String>] [-PollIntervalSeconds <Int32>] [-Wait] [-Timeout <Int32>] [-TimeoutUnit {Seconds | Minutes | Hours |
Days | Milliseconds}] [-TriggerAfter <Int32>] [-Notes <String>] [-Folder <Object>] [-Connection <Object>]
[-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
New-AMWmiCondition creates a new WMI condition.
PARAMETERS
-Name <String>
The name of the new object.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Computer <String>
The computer name, IP address or host name of the remote machine. Do not specify this parameter to use the
local computer.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Namespace <String>
Specifies the WMI namespace to execute the query under (i.e. root\\CIMV2).
Required? false
Position? named
Default value root\\CIMV2
Accept pipeline input? false
Accept wildcard characters? false
-WQLQuery <String>
Specifies the WMI query that should be executed.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-UserName <String>
The user to connect to the computer.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-PollIntervalSeconds <Int32>
Determines how often this condition monitors for the resource value.
Required? false
Position? named
Default value 1
Accept pipeline input? false
Accept wildcard characters? false
-Wait [<SwitchParameter>]
Wait for the condition, or evaluate immediately.
Required? false
Position? named
Default value True
Accept pipeline input? false
Accept wildcard characters? false
-Timeout <Int32>
If wait is specified, the amount of time before the condition times out.
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-TimeoutUnit
The unit for Timeout (Seconds by default).
Required? false
Position? named
Default value Seconds
Accept pipeline input? false
Accept wildcard characters? false
-TriggerAfter <Int32>
The number of times the condition should occur before the trigger fires.
Required? false
Position? named
Default value 1
Accept pipeline input? false
Accept wildcard characters? false
-Notes <String>
The new notes to set on the object.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Folder <Object>
The folder to place the object in.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Connection <Object>
The server to create the object on.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
RELATED LINKS
https://github.com/AutomatePS/AutomatePS
SYNOPSIS
Creates a new AutoMate Enterprise WMI condition.
SYNTAX
New-AMWmiCondition [-Name] <String> [-Computer <String>] [-Namespace <String>] [-WQLQuery <String>] [-UserName
<String>] [-PollIntervalSeconds <Int32>] [-Wait] [-Timeout <Int32>] [-TimeoutUnit {Seconds | Minutes | Hours |
Days | Milliseconds}] [-TriggerAfter <Int32>] [-Notes <String>] [-Folder <Object>] [-Connection <Object>]
[-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
New-AMWmiCondition creates a new WMI condition.
PARAMETERS
-Name <String>
The name of the new object.
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Computer <String>
The computer name, IP address or host name of the remote machine. Do not specify this parameter to use the
local computer.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Namespace <String>
Specifies the WMI namespace to execute the query under (i.e. root\\CIMV2).
Required? false
Position? named
Default value root\\CIMV2
Accept pipeline input? false
Accept wildcard characters? false
-WQLQuery <String>
Specifies the WMI query that should be executed.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-UserName <String>
The user to connect to the computer.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-PollIntervalSeconds <Int32>
Determines how often this condition monitors for the resource value.
Required? false
Position? named
Default value 1
Accept pipeline input? false
Accept wildcard characters? false
-Wait [<SwitchParameter>]
Wait for the condition, or evaluate immediately.
Required? false
Position? named
Default value True
Accept pipeline input? false
Accept wildcard characters? false
-Timeout <Int32>
If wait is specified, the amount of time before the condition times out.
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-TimeoutUnit
The unit for Timeout (Seconds by default).
Required? false
Position? named
Default value Seconds
Accept pipeline input? false
Accept wildcard characters? false
-TriggerAfter <Int32>
The number of times the condition should occur before the trigger fires.
Required? false
Position? named
Default value 1
Accept pipeline input? false
Accept wildcard characters? false
-Notes <String>
The new notes to set on the object.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Folder <Object>
The folder to place the object in.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Connection <Object>
The server to create the object on.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
RELATED LINKS
https://github.com/AutomatePS/AutomatePS