Geeks With Blogs

News

qrcode

Lance Robinson

Create Your Badge

Lance Robinson is a software engineer in Durham, Chapel Hill, Raleigh, and surrounding areas. More about Lance.

 Subscribe


Lance's TextBox » About Me » My Resume »Twitter

You'll get the error "No Windows PowerShell Snap-ins are available for version 1" if there are no snapins installed for PowerShell v1. But the tricky part is that more precisely you'll get this error if there are no snapins installed for v1 for the platform you're running on.

So you'll get this error if you are in a 32bit powershell console and you try to call add-pssnapin on some snapin that builds or installs itself only for x64 (like the Exchange Management Snap-in).  You'll get the same if the opposite is true and you try to add a snap-in that builds or installs itself as 32bit from the 64bit console. Even if the snap-in is built for the correct platform, it has to install itself to the correct place in the registry for PowerShell to locate it.


PS C:\> add-pssnapin asdfasdf                                                                                           
Add-PSSnapin : No Windows PowerShell Snap-ins are available for version 1.                                              
At line:1 char:13                                                                                                       
+ add-pssnapin  <<<< asdfasdf                                                                                           
PS C:\> get-bufferhtml | out-file sample.html                                                                           

Alternatively, if you do have some snap-ins installed for that platform, just not that specific snap-in, you'll get:

PS C:\> add-pssnapin Somesnapin                                                                                         
Add-PSSnapin : Windows PowerShell snap-in Somesnapin is not installed on the machine.                                   
At line:1 char:13                                                                                                       
+ add-pssnapin  <<<< Somesnapin                                                                                         


Technorati : ,

Posted on Tuesday, January 30, 2007 5:06 PM PowerShell | Back to top


Comments on this post: No Windows PowerShell Snap-ins are available for version 1

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Lance Robinson | Powered by: GeeksWithBlogs.net | Join free