Closed digitalexpl0it closed 5 years ago
Prerequisites
Put an X between the brackets on each line to confirm you have completed them:
Describe the bug Unable to Set Operator as Archived
To Reproduce $Validate = Get-TdOperator -TOPdeskLoginName $user $OpID = $Validate.id Set-TdOperator -Operator $OpID -ArchiveReason (Get-TdArchiveReason 'No longer employed').id -LoginPermission:$false
Example doesn't work either: Get-TdOperator -TOPdeskLoginName 'first.last' | Set-TdOperator -ArchiveReason (Get-TdArchiveReason 'no longer employed').id -LoginPermission:$false
Expected behavior The specified Operator should be archived and login disabled
Screenshots or Transcripts Set-TdOperator : Parameter set cannot be resolved using the specified named parameters.
+ CategoryInfo : InvalidArgument: (:) [Set-TdOperator], ParameterBindingException + FullyQualifiedErrorId : AmbiguousParameterSet,Set-TdOperator
System Details
Get-Module
Manifest 3.1.0.0 Microsoft.PowerShell.Management Manifest 3.0.0.0 Microsoft.PowerShell.Security Manifest 3.1.0.0 Microsoft.PowerShell.Utility Script 0.10.31... PSFramework Script 1.2 PSReadline Script 0.0.19 TOPdeskPS
Looks like its -LoginPermission:$false which is the issue. Removing this switch allows me to archive the account
Prerequisites
Put an X between the brackets on each line to confirm you have completed them:
Describe the bug Unable to Set Operator as Archived
To Reproduce $Validate = Get-TdOperator -TOPdeskLoginName $user $OpID = $Validate.id Set-TdOperator -Operator $OpID -ArchiveReason (Get-TdArchiveReason 'No longer employed').id -LoginPermission:$false
Example doesn't work either: Get-TdOperator -TOPdeskLoginName 'first.last' | Set-TdOperator -ArchiveReason (Get-TdArchiveReason 'no longer employed').id -LoginPermission:$false
Expected behavior The specified Operator should be archived and login disabled
Screenshots or Transcripts Set-TdOperator : Parameter set cannot be resolved using the specified named parameters.
System Details
Get-Module
] ModuleType Version NameManifest 3.1.0.0 Microsoft.PowerShell.Management Manifest 3.0.0.0 Microsoft.PowerShell.Security Manifest 3.1.0.0 Microsoft.PowerShell.Utility Script 0.10.31... PSFramework Script 1.2 PSReadline Script 0.0.19 TOPdeskPS