Configuration driven Active Directory management.
Registers a scriptblock to be called when invoking any Test- or Invoke- command.
Register-FMCallback [-Name] <String> [-ScriptBlock] <ScriptBlock> [<CommonParameters>]
Registers a scriptblock to be called when invoking any Test- or Invoke- command. This enables extending the module and ensuring correct configuration loading. The scriptblock will receive four arguments:
For more details on this system, call: Get-Help about_FM_callbacks
Register-FMCallback -Name MyCompany -Scriptblock $scriptblock
Registers the scriptblock stored in $scriptblock under the name ‘MyCompany’
The name of the callback to register (multiple can be active at any given moment).
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The scriptblock containing the callback logic.
Type: ScriptBlock
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.