question

Vita-7585 avatar image
Vita-7585 asked ·

I keep getting errors while customizing ADFS

I'm trying to customize an ADFS (Windows Server 2019) server that won't take any of the command I give it. I'm using the exact same commands I've used to customize these pages with the same files even from the same locations but now it won't take them, see:

adfs1.PNG

Using full paths won't make a difference:

adfs2.PNG

Everytime it's the same thing about a hash table. Know how to fix this?

Thanks!

adfs
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

piaudonn avatar image
piaudonn answered ·

The syntax is:

 Set-AdfsWebTheme -TargetName default -Logo @{path="c:\Contoso\logo.png"}
2 comments Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks! It finally worked again.

Why I don't understand is why because I remember using these cmdlets. Not only that, I wrote them down bc it's a habit of mine writing things down I might have a hard time finding or want to set up quicker in the future and these were there, …complete with paths!

Anyway, for the time being I'm happy they worked. Thanks for your help!

0 Votes 0 · ·

In fairness, there are times when you don't need to specify a hashtable with Path:

 New-AdfsWebTheme -Name custom -StyleSheet @{path="c:\NewTheme.css"} -RTLStyleSheetPath c:\NewRtlTheme.css

The hashtable is actually practical because it let you specify a locale. Then you can have different content locale-specific.


0 Votes 0 · ·