No snap-ins have been registered for Windows PowerShell version X

For some reasons we have to use PowerShell against Our AD FS Service and normally we could use Add-PSSnapin Microsoft.Adfs.PowerShell, but this isn’t available allways and in Windows Server 2012 R2 we are running PowerShell v4. Not all Snap-ins or Modules are made for v4 yet.

After a while I wanted to change the certificate used by the AD FS Service, not only the Communcation Service Certificate, but also the token signing and decrypting certificate. But AD FS 3.0 as we use Windows Server 2012 R2, has AutoCertificateRollover enabled ($true). Which denied me to change the last two certificates, but told me what PowerShell command to run before I could change them.

Thats when the trouble started. As its not allways Office 365 we federate towards, I haven’t installed the Online Services Sign-In Assistant or the Azure AD PowerShell module.

Long story short, I ended up installing the Online Services Sign-In Assistant, because its required for installing the Windows Azure Active Directory PowerShell module.

Run that PowerShell module instead and you will not see the trouble finding your AD FS Snapin 🙂

Ehlo!

I am Roy Apalnes, a Microsoft Cloud Evangelist working av Sopra Steria. Main focus in Microsoft Security and Endpoint Management, with a bigger picture in mind.

Featured Posts

    %d bloggers like this: