PSPKIAudit icon indicating copy to clipboard operation
PSPKIAudit copied to clipboard

Problem when DistinguishedName is Empty

Open georg-x opened this issue 2 years ago • 0 comments

Get-ADObject $CA.DistinguishedName gives Null value:

Get-ADObject : Cannot validate argument on parameter 'Identity'. The argument is null. Provide a valid value for the
argument, and then try running the command again.
At line:1 char:33
+ $CATemplateNames = Get-ADObject $CA.DistinguishedName -Properties ce ...
+                                 ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Get-ADObject], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.ActiveDirectory.Management.Commands.GetADObje
   ct

screenshot2 screenshot1

georg-x avatar Mar 18 '22 09:03 georg-x