Powershell to view and update ADFS certificate on the secondary server in the ADFS farm

What is the powershell remote cmd to view and update additional certificate in the ADFS farm. We have 2 ADFS servers and I cannot view or update the certificate on the secondary ADFS server since it's telling me "this cmdlet cannot be executed from a secondary server in a local database farm".
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

you are using windows internal database and hence you cannot view it from secondary server console as it is read only
U simply need to replace certs from primary server
For service communication cert (public SSL), you need to update it on primary 1st and then on secondary server from local certificate console personnel store you need to replace it

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CiscoAznAuthor Commented:
How do I update the Service Communication cert to the secondary ADFS server? What's the powershell cmd?
no need of powershell cmdlets

1st install new adfs SSL cert on primary server and then run below command from elevated command prompt
then use
Set-AdfsCertificate -CertificateType Service-Communications –Thumbprint xxxxxxxxxxxxxxxx

Open in new window

Then export certificate from primary server and import it on secondary server and run above command again
do same procedure on WAP servers as well
Check Out How Miercom Evaluates Wi-Fi Security!

It's not just about Wi-Fi connectivity anymore. A wireless security breach can cost your business large amounts of time, trouble, and expense. Plus, hear first-hand from Miercom on how WatchGuard's Wi-Fi security stacks up against the competition plus a LIVE demo!

CiscoAznAuthor Commented:
The above cmdlet need to run from elevated PowerShell prompt on ADFS servers, In last comment I mention it to run from command prompt which is not correct.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.