DSCResources/cClearDSCTrigger/cClearDSCTrigger.psm1
function Get-TargetResource { [CmdletBinding()] [OutputType([Hashtable])] param([Parameter(Mandatory=$true)] [string] $Name) @{} } function Set-TargetResource { [CmdletBinding()] param([Parameter(Mandatory=$true)] [string] $Name) Get-DSCTrigger | Where-Object { $_.Name -like $Name } | Unregister-DSCTrigger -Confirm:$false } function Test-TargetResource { [CmdletBinding()] [OutputType([bool])] param([Parameter(Mandatory=$true)] [string] $Name) ((Get-DSCTrigger | Where-Object { $_.Name -like $Name }) -as [bool]) } Export-ModuleMember -Function Get-TargetResource, Set-TargetResource, Test-TargetResource |