DscResources/MimSvcSet/MimSvcSet.psm1
function Get-TargetResource { [CmdletBinding()] [OutputType([System.Collections.Hashtable])] param ( [parameter(Mandatory = $true)] [System.String] $DisplayName ) #Write-Verbose "Use this cmdlet to deliver information about command processing." #Write-Debug "Use this cmdlet to write debug information while troubleshooting." <# $returnValue = @{ ComputedMember = [System.String[]] CreatedTime = [System.DateTime] Creator = [System.String] DeletedTime = [System.DateTime] Description = [System.String] DetectedRulesList = [System.String[]] DisplayName = [System.String] ExpectedRulesList = [System.String[]] ExpirationTime = [System.DateTime] Filter = [System.String] Locale = [System.String] ExplicitMember = [System.String[]] MVObjectID = [System.String] ObjectID = [System.String] ResourceTime = [System.DateTime] ObjectType = [System.String] Temporal = [System.Boolean] Credential = [System.Management.Automation.PSCredential] Ensure = [System.String] } $returnValue #> } function Set-TargetResource { [CmdletBinding()] param ( [System.String[]] $ComputedMember, [System.String] $Description, [System.String[]] $DetectedRulesList, [parameter(Mandatory = $true)] [System.String] $DisplayName, [System.String[]] $ExpectedRulesList, [System.DateTime] $ExpirationTime, [System.String] $Filter, [System.String] $Locale, [System.String[]] $ExplicitMember, [System.String] $MVObjectID, [System.Boolean] $Temporal, [System.Management.Automation.PSCredential] $Credential, [ValidateSet("Present","Absent")] [System.String] $Ensure ) Set-FimTargetResource -FimObjectType Set -FimKeyAttributeName DisplayName -DscBoundParameters $PSBoundParameters } function Test-TargetResource { [CmdletBinding()] [OutputType([System.Boolean])] param ( [System.String[]] $ComputedMember, [System.String] $Description, [System.String[]] $DetectedRulesList, [parameter(Mandatory = $true)] [System.String] $DisplayName, [System.String[]] $ExpectedRulesList, [System.DateTime] $ExpirationTime, [System.String] $Filter, [System.String] $Locale, [System.String[]] $ExplicitMember, [System.String] $MVObjectID, [System.Boolean] $Temporal, [System.Management.Automation.PSCredential] $Credential, [ValidateSet("Present","Absent")] [System.String] $Ensure ) Test-FimTargetResource -FimObjectType Set -FimKeyAttributeName DisplayName -DscBoundParameters $PSBoundParameters } Export-ModuleMember -Function *-TargetResource |