« Previous Next »

Thread: PowerShell Provider for IIS7

Last post 09-30-2009 11:03 AM by marcoshaw. 21 replies.

Average Rating Rate It (5)

RSS

Page 2 of 2 (22 items) < Previous 1 2

Sort Posts:

  • 04-15-2008, 6:31 PM In reply to

    • JeongHwan
    • Top 150 Contributor
    • Joined on 12-14-2004, 4:43 PM
    • Redmond, WA
    • Posts 33

    Re: PowerShell Provider for IIS7

    I have Vista 64bit SP1 machine. But I did not run into what you reported here.

    BTW, I'd like to clarify that iisprovider.dll file, which is the IIS Powershell provider dll, is not copied to the PowershellProvider directory. It should be copied to GAC like this.

    C:\>dir C:\windows\iisprovider*.dll /s
     Volume in drive D is New Volume
     Volume Serial Number is 40B7-51EA

     Directory of C:\windows\assembly\GAC_MSIL\IIsProvider\7.1.0.0__1a5b963c6f0fbeab


    04/14/2008  10:50 AM           136,216 iisprovider.dll
                   1 File(s)        136,216 bytes

    BTW, as you might know, in 64bit OS, there are two version of Powershell. Did you use %windir%\SysWoW64\WindowsPowerShell\v1.0\powershell.exe?

    If so, you should use %windir%\System32\WindowsPowerShell\v1.0\powershell.exe. This is a known product issue in this Tech Preview 1 build.

    Please let me know if this is your case.

    Jeong Hwan Kim
  • 04-16-2008, 4:08 AM In reply to

    Re: PowerShell Provider for IIS7

    That would explain it... I am using the WoW64 version, yes.  I hadn't realised this was the 32-bit version; indeed, I thought it was the 64-bit version!  Is this issue scheduled to be fixed in later releases?

    Thanks for your time, and the successful resolution; now, to get my other snap-ins working on 64-bit PS :-) 

    Alastair

  • 04-16-2008, 10:25 AM In reply to

    Re: PowerShell Provider for IIS7

    What does "get-pssnapin -registered" give you?

    I don't have access to a x64 system.  It is my understanding that the PSH install might provide a x86 and x64 install of PowerShell on the same machine?

    (How about moving this into a new thread?)

  • 04-16-2008, 1:15 PM In reply to

    • JeongHwan
    • Top 150 Contributor
    • Joined on 12-14-2004, 4:43 PM
    • Redmond, WA
    • Posts 33

    Re: PowerShell Provider for IIS7

    Alastair's problem seems to be resolved by using 64bit powershell.exe instead of using 32 bit powershell.exe on 64bit OS.

    Alastair, 
    Thanks for your reply. Developer will look into the problem in using 32 bit powershell.exe and I hope it would be fixed in the next release such as Tech Preview 2.

    Jeong Hwan Kim
  • 08-12-2009, 3:00 PM In reply to

    • akirsman
    • Not Ranked
    • Joined on 08-12-2009, 6:57 PM
    • Posts 1

    Re: PowerShell Provider for IIS7

    Hi, I installed the package from here as admin (positively):

     http://www.iis.net/downloads/1665/ItemPermaLink.ashx

    Running 64-bit powershell (C:\Windows\System32\WindowsPowerShell\v1.0\PowerShell.exe) in Win Server 08 and still hitting this error:

     PS D:\Scripts> Add-PsSnapin IISProviderSnapin
    Add-PSSnapin : Windows PowerShell snap-in IISProviderSnapin is not installed on the machine.
    At line:1 char:13
    + Add-PsSnapin  <<<< IISProviderSnapin


    PS D:\Scripts> get-itemproperty HKLM:\SOFTWARE\Microsoft\PowerShell\1\PowerShellSnapIns\IIsProviderSnapIn
    Get-ItemProperty : Cannot find path 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellSnapIns\IIsProviderSnapIn' because it does not exist.

     Any idea? Thanks in advance.

  • 09-24-2009, 7:58 PM In reply to

    • JeongHwan
    • Top 150 Contributor
    • Joined on 12-14-2004, 4:43 PM
    • Redmond, WA
    • Posts 33

    Re: PowerShell Provider for IIS7

    Snapin name is changed to Webadministration on IIS Powershell RTW build.  

    So, "Add-PsSnapin WebAdministration" is the right way instead of "Add-PsSnapin IISProviderSnapin".

     

    Jeong Hwan Kim
  • 09-30-2009, 11:03 AM In reply to

    Re: PowerShell Provider for IIS7

    akirsman:

    Hi, I installed the package from here as admin (positively):

     http://www.iis.net/downloads/1665/ItemPermaLink.ashx

    Running 64-bit powershell (C:\Windows\System32\WindowsPowerShell\v1.0\PowerShell.exe) in Win Server 08 and still hitting this error:

     PS D:\Scripts> Add-PsSnapin IISProviderSnapin
    Add-PSSnapin : Windows PowerShell snap-in IISProviderSnapin is not installed on the machine.
    At line:1 char:13
    + Add-PsSnapin  <<<< IISProviderSnapin


    PS D:\Scripts> get-itemproperty HKLM:\SOFTWARE\Microsoft\PowerShell\1\PowerShellSnapIns\IIsProviderSnapIn
    Get-ItemProperty : Cannot find path 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\PowerShellSnapIns\IIsProviderSnapIn' because it does not exist.

     Any idea? Thanks in advance.

     

    You should specific whether this is Windows 2008 or Windows Server 2008 R2.  For Server 2008, you are using the correct method.  For Server 2008 R2, see the previous response.

    Are you still having problems?  I'm thinking this may simply be a matter of x86 vs 64-bit powershell instances...

Page 2 of 2 (22 items) < Previous 1 2
Microsoft Communities