Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am trying to use IIS Administration PowerShell Cmdlets on top of Windows 2008 R1. According to this article you need to load these Cmdlets. However the options to load the cmdlets does not exist in Windows 2008 R1, how do I load these or what do I need to do?

share|improve this question
    
Windows 2008 R1 requires you to install a snap-in to get WebAdministration. Windows 2008 R2 has WebAdministration built in as a module. And just to make life interesting snap-ins and modules are loaded with different commands. –  Mark Arnott Feb 2 '10 at 19:06

2 Answers 2

up vote 3 down vote accepted

You need to load the snapin containing the cmdlets. (A snapin is the PSH1, supported in V2, means of implementing cmdlets. In V2 modules are a better, more flexible, approach.)

There are some details here: http://learn.iis.net/page.aspx/429/installing-the-iis-70-powershell-snap-in/ which details the shortcut installed which is pre-configured with the snapin loaded.

share|improve this answer
    
Yup, this did it. Tnx! –  Toni Frankola Jan 25 '10 at 16:19

The article you mentioned said "By default, Windows PowerShell modules and snap-ins are not loaded in Windows PowerShell. To start Windows PowerShell so that all the Windows PowerShell modules and snap-ins are loaded automatically, right-click the Windows PowerShell icon in the taskbar, and then click Import all modules. ". Did you try this method to load the IIS module?

share|improve this answer
    
You can do that on Windows 2008 R2, but there is no such option on Windows 2008 R1. That's the problem! –  Toni Frankola Jan 21 '10 at 22:18

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.