Closed wilddev65 closed 1 year ago
When trying to clear an attribute set on a policy, Set-TppAttribute gives an error if null is used as the attribute value;
$Attributes = @{ 'Script Execution Timeout' = $null }
$Path | Set-TppAttribute -PolicyClass 'Adaptable App' -Attribute $Attributes
You cannot call a method on a null-valued expression. At C:\Program Files\WindowsPowerShell\Modules\VenafiPS\5.2.1\Public\Set-TppAttribute.ps1:136 char:13
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : InvokeMethodOnNull
Fixed
When trying to clear an attribute set on a policy, Set-TppAttribute gives an error if null is used as the attribute value;
$Path | Set-TppAttribute -PolicyClass 'Adaptable App' -Attribute $Attributes
You cannot call a method on a null-valued expression. At C:\Program Files\WindowsPowerShell\Modules\VenafiPS\5.2.1\Public\Set-TppAttribute.ps1:136 char:13