Renew expired ADFS Token Certificates for ADFS 2.0 OFFICE 365

Log in your adfs, run as administrator power shell

1- Add-PSSnapin Microsoft.Adfs.PowerShell

2- Update-ADFSCertificate -Urgent

3- Update-ADFSCertificate -CertificateType Token-Signing -Urgent

4- Restart service in services.msc , AD FS 2.0 Windows Service
5- Connect in Office 365 power shell

$cred=Get-Credential.

6- Connect-MsolService –Credential $cred

7- If you are running these commands on a computer that is not the AD FS primary federation server, run Set-MSOLAdfscontext -Computer , where is the internal FQDN name of the primary AD FS server. This cmdlet creates a context that connects you to AD FS.

8- Run Update-MSOLFederatedDomain –DomainName . This cmdlet updates the settings from AD FS into the cloud service and configures the trust relationship between the two.