Thursday 28 March 2013

Set ADFS timeout for Ms Dynamics CRM 2011

I always seem to forget how to this, so I thought I would write myself a reminder here, in script form:

param ($RelyingParty)
{
 Add-PSSnapin Microsoft.Adfs.PowerShell

 Set-ADFSRelyingPartyTrust -TargetName $RelyingParty -TokenLifetime 480
}

If you are not sure what your relying party is called, you can list them with this command:

Get-ADFSRelyingPartyTrust | format-list -Property Name 

or from the ADFS MMC ;)

No comments:

Post a Comment