I'm in a complete brain fart and I feel as though my eyes are going to pop out of my head troubleshooting ADFS. I am trying to set ADFS Identifier so that it matches the token issuer. If I do Get-AdfsProperties
in
PowerShell it works very well. The problem comes when I want to set the -Identifier
to
match the token issuer. Its giving a weird error. Below is my PowerShell script and results.
PS
C:\Windows\system32>$adfsProperties = Get-AdfsProperties
PS
C:\Windows\system32>Set-AdfsProperties -Identifier $adfsProperties.IdTokenIssuer
Set-AdfsProperties
: Cannot validate the argument on parameter 'Identifier'. The argument is null.
Provide
a valid value for the argument, then try running the command again.
At
line: 1 cahr: 32
+Set-AdfsProperties
-Identifier $adfsProperties.IdTokenIssuer
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
CategoryInfo :InvalidData: (:) [Set-AdfsProperties], ParameterBindingException
+FullyQualifiedErrorId
:PositionalParameterNotFound, Microsoft.IdentityServer.Management.COmmands.SetServicePropertiesCommand
Any help please!!