Are you getting a “failed due to invalid credentials” in PowerShell when executing Set-MsolADFSContext?
PS C:\Windows\system32> Set-MsolADFSContext -Computer adfs.intune-demo.com
Set-MsolADFSContext : The connection to adfs.publicdomain.com Active Directory
Federation Services 2.0 server failed due to invalid credentials.
Try the following:
- Start Windows PowerShell as an administrator and set up Windows PowerShell for remoting by typing Enable-PSRemoting –force
- Open port 5985 on your server firewall.
- Make sure to specify a logfile when entering the command:
Set-MsolADFSContext -Computer adfs.publicdomain.com -logfile c:\log.txt
- Telnet from a remote location to the ADFS server on port 5985, a blinking cursor is good.
- In case this is a server hosted in Azure, configure an endpoint:
Consider leaving a reply in case this post helped you. Thanks!