Public/Utility/Remove-KritTcmAuthenticationParameter.ps1
|
<# .SYNOPSIS Krit.TCM wrapper over Microsoft365DSC helper Remove-M365DSCAuthenticationParameter (category: Utility, module: M365DSCUtil). .DESCRIPTION Auto-scaffolded wave .1514 by New-KritTcmFromM365DscHelpers.ps1. Thin delegating passthrough — logic stays in Microsoft365DSC upstream; Krit.TCM provides the friendly namespace + citation registration for HARD RULE 20 discipline. Install-Module Microsoft365DSC -Scope CurrentUser BEFORE calling. .NOTES Wave .1514. Underlying cmdlet: Remove-M365DSCAuthenticationParameter Category: Utility Module: M365DSCUtil Params: 1 #> function Remove-KritTcmAuthenticationParameter { [CmdletBinding()] param( [Parameter(Mandatory)] [Hashtable] $BoundParameters ) if (-not (Get-Command -Name 'Remove-M365DSCAuthenticationParameter' -ErrorAction SilentlyContinue)) { throw '[KritTcm] Remove-M365DSCAuthenticationParameter not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'Remove-M365DSCAuthenticationParameter' @PSBoundParameters } catch { Write-Error ('[KritTcm/Remove-KritTcmAuthenticationParameter] ' + 'Remove-M365DSCAuthenticationParameter' + ' failed: ' + $_.Exception.Message) throw } } |