ADFS 2.0 No PowerShell SnapIn

Hello,

I installed the ADFS 2.0 server on a Windows 2008 R2 Enterprise server, and did all the updates. When I try to use the PowerShell SnapIn to do some commands I have this error :

PS> Add-PSSnapin Microsoft.Adfs.PowerShell

Add-PSSnapin : No snap-ins have been registered for Windows PowerShell version 2.0

At line:1 char:12

...

I installed and reinstalled ADFS 2.0 a lot of times, tried to follow a lot of work-around (e.g : Paresh's blog, doesn't work at the moment) and I have still the same problem. Maybe I forgot an important thing to do ?

When I type :

PS > get-module -listavailable

The ADFS module is not listed. Do you know how can I install these Adfs PowerShell modules ?

Thank you.

February 22nd, 2012 2:56pm

Type Get-PSSnapin Registered

...to see all registered snap-ins.

Free Windows Admin Tool Kit Click here and download it now
February 22nd, 2012 3:29pm

Unfortunately and I don't know why, ADFS is not listed :

PS C:\Users\Administrator> get-module -listavailable

ModuleType Name ExportedCommands

---------- ---- ----------------

Manifest ActiveDirectory {}

Manifest ADRMS {}

Manifest AppLocker {}

Manifest BestPractices {}

Manifest BitsTransfer {}

Manifest GroupPolicy

Manifest PSDiagnostics {}

Manifest ServerManager {}

Manifest TroubleshootingPack {}

Manifest WebAdministration {}

I tried to run Powershell as Administrator in 32bit and 64bit.

  • Edited by ksz.off Wednesday, February 22, 2012 3:39 PM
February 22nd, 2012 3:38pm

According to the documentation:

If AD FS 2.0 Setup has been run previously, you should see the following command-line output:

Name        : Microsoft.Adfs.PowerShell
PSVersion   : 1.0
Description : This PowerShell snap-in contains cmdlets used to manage Microsoft Identity Server resources.

I have not had personal experience with this snap-in, but make sure you don't have to add the Powershell features under Features in Server Ma

Free Windows Admin Tool Kit Click here and download it now
February 22nd, 2012 3:57pm

Unfortunately and I don't know why, ADFS is not listed :

PS C:\Users\Administrator> get-module -listavailable

ModuleType Name ExportedCommands

---------- ---- ----------------

Manifest ActiveDirectory {}

Manifest ADRMS {}

Manifest AppLocker {}

Manifest BestPractices {}

Manifest BitsTransfer {}

Manifest GroupPolicy

Manifest PSDiagnostics {}

Manifest ServerManager {}

Manifest TroubleshootingPack {}

Manifest WebAdministration {}

I tried to run Powershell as Administrator in 32bit and 64bit.

It's not a module, it's a snap-in.  That's why you must type:

Get-PSSnapin Registered

February 22nd, 2012 4:11pm

I ran as Administrator :

Get-PSSnapin -Registered

with :

  • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
  • C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
  • Start -> All Programs -> Administrative Tools -> Windows PowerShell Modules

And I have no output, so It seems that nothing is registered as snap-in.

PS : AD DS, AD FS 2.0, and DNS are installed.

Free Windows Admin Tool Kit Click here and download it now
February 22nd, 2012 4:21pm

From within Server Manager, select Features, then Add Features, then check Windows PowerShell and click Install.
February 22nd, 2012 4:24pm

I don't have "Windows PowerShell" in Features, I have "Windows PowerShell Integrated Scripting Environment (ISE) [installed]".

I was wondering, do I have to buy a specific version of Windows to use the ADFS Snap-In or something like that.

Version of windows : Windows 2008 R2 Enterprise Version, SP1. Everything is updated.

PS : It seems that PowerShell is installed because of that :

  • C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
  • C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe
  • Start -> All Programs -> Administrative Tools -> Windows PowerShell Modules

Free Windows Admin Tool Kit Click here and download it now
February 23rd, 2012 7:52am

Please see the following article.  It may help:

http://social.technet.microsoft.com/wiki/contents/articles/1564.aspx

February 23rd, 2012 7:58am

Hey,

1) Just start "Windows PowerShell" "as administrator". (Right click on "Window PowerShell" and select "Run As Administrator".)

2) then try to add snap-in "Add-PSSnapin Microsoft.Adfs.PowerShell".

Not sure about "ADFS" but for one of the snap-in, I face similar issue which was resolved by running "PowerShell" with Admin rights.

Hope this helps...!!!

Free Windows Admin Tool Kit Click here and download it now
February 23rd, 2012 8:05am

It's really strange because "Windows PowerShell" is not in the Features and I have this output :

cmd> servermanagercmd.exe -install PowerShell

Argument Not Valid: Invalid role, role service, or feature : 'PowerShell'. The name was not found.

February 23rd, 2012 9:35am

The article I posted was for Server 2008, not R2.  R2 comes with Powershell, and it doesn't need to be installed when you run the install ADFS wizard.  However, I suspect that the reason that the snap-in was not installed is because of the registry key mentioned in the article.

Try setting that key to 0, and then re-install ADFS.

Free Windows Admin Tool Kit Click here and download it now
February 23rd, 2012 9:43am

I set HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\install to 0 and installed ADFS 2.0. It have still the same problem. It's really strange.
February 23rd, 2012 10:11am

It is strange.  Unfortunately, I don't have the infrastructure to simulate your problem.  I'm stumped too.
Free Windows Admin Tool Kit Click here and download it now
February 23rd, 2012 10:37am

Where can I join the support or submit a bug to Microsoft for this problem ?

Thx

February 24th, 2012 8:21am

Nobody knows where I can join the support or submit a bug to Microsoft for this specific problem ?

Regards,

Free Windows Admin Tool Kit Click here and download it now
February 29th, 2012 8:06am

I suggest you contact Microsoft Help & Support directly.
February 29th, 2012 8:13am

Have you tried import-module adfs?
  • Proposed as answer by MJLongman Monday, July 07, 2014 3:11 PM
Free Windows Admin Tool Kit Click here and download it now
October 21st, 2013 5:23pm

I had the exact problems as described by ksz.off

I had installed adfs from server manager (srv 2008 r2), and I assumed that it was ADFS 2.0

Once I installed ADFS 2.0 from the downloaded package, http://www.microsoft.com/en-us/download/details.aspx?id=10909 , the snapin showed up in Powershell. (I even had 4.0 installed)

December 22nd, 2014 7:26am

Just make sure you start the 64Bit Version of Powershell with Administrator Rights, not the 32Bit one. Under 32Bit you wont be able to load the ADFS Snapins.
Free Windows Admin Tool Kit Click here and download it now
April 9th, 2015 5:09am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics