Functions/EventSecurity/Remove-PASPTAPrivilegedGroup.ps1
# .ExternalHelp psPAS-help.xml Function Remove-PASPTAPrivilegedGroup { [CmdletBinding(SupportsShouldProcess = $true)] param( [parameter( Mandatory = $true, ValueFromPipelinebyPropertyName = $true )] [string]$ID ) BEGIN { Assert-VersionRequirement -SelfHosted Assert-VersionRequirement -RequiredVersion 14.0 }#begin PROCESS { #Create request URL $URI = "$($psPASSession.BaseURI)/API/pta/API/configuration/properties/PrivilegedDomainGroupsList/$ID" if ($PSCmdlet.ShouldProcess($ID, 'Delete PTA Privileged Domain Group Configuration')) { #send request to web service Invoke-PASRestMethod -Uri $URI -Method DELETE } }#process END { }#end } |