iis

Sponsors

Browse by Tags

All Tags » PowerShell (RSS)
How To: Use Microsoft.Web.Administration from Powershell
Powershell has become a defacto scripting environment for a lot of companies and rightly so considering its capabilities. However, not every place do we find all modules loaded into powershell as one would like for the ease of scripting. I faced a similiar situation wherein I wanted to perform few admin tasks on an IIS box and din't have the IIS powershell snap-in installed. Wish the server was Windows Server 2008 R2 (IIS module is out-of-the-box loaded). There are more than a couple ways which could...( read more ) Read More...
Managing Windows EC2 Instances remotely with Powershell
For a long time now I'm trying to find out how to remotely manage an EC2 machine with Powershell.It finally worked. Here is how: Start a new Windows Server 2008 EC2 instance. Keep the machine name, public DNS name and password for your EC2 machine handy. You'll need it later. Configure your Security Groups (which are firewall rules in essence) to allow connections to port 5985. Connect to it and install  PowerShell 2.0 for Windows Server 2008 . Reboot. After the reboot I pretty much followed this walkthrough . Here the short version: a) Run Enable-PSRemoting –force on your EC2 machine; elevated of course. b) On the client, assuming it's Win7 runthe following Powershell commands:    Start-Service WinRM    Set-ItemProperty –Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System –Name  LocalAccountTokenFilterPolicy –Value 1 –Type DWord    Set-Item WSMan:\localhost\Client\TrustedHosts –Value <Public DNS Name of your EC2 machine>...
IIS Config Reference can now be downloaded
I have been meaning to blog for quite sometime now but work has got me all tied up. However, this is something I just couldn't let go. Robert McMurray yesterday blogged about the availability of the IIS Config Reference in the form of Compiled Help Files. This means you can now read and learn the entire IIS congifuration offline. IIS Config Reference is a store of all IIS configuration parameters with examples of accessing those parameters from command line, Java Scripts, VB Scipts and the IIS API...( read more ) Read More...
Web Farm Framework 2.0 beta released!
Last week my team released a super powerful update to our Web Farm Framework project aimed at dramatically simplifying the complexity of managing a Web farm (many computers running one or more Web sites).  Web Farm Framework 2.0 (WFF) allows users to not only setup groups of servers and define routing rules using the built-in routing and load balancing support in ARR , but extends the management support to include many new powerful experiences, including: Automatic platform setup and provisioning of new nodes WFF integrates with Web Platform Installer and will automatically install all the required components to mirror the master node Application replication and synchronization across the Web server farm WFF integrates with Web Deploy and can automatically sync all Web site content, configuration and other dependencies across the farm Zero-downtime deployment WFF can do rolling upgrades of nodes in the farm without impacting overall service uptime Built-in health monitoring, logging...
MSDeploy Powershell Scripts Part II – Exceptions And Remote Server Syncs
In this blog I will show how to script syncing remote servers and add some useful exception handling. This blog assumes you have read or are familiar with part I at: http://blogs.iis.net/jamescoo/archive/2009/09/09/cool-msdeploy-powershell-scripts.aspx First a borrowed function that will help implement a try catch block in the script-let logic from part I. This will allow for MSDeploy exceptions to be caught and reported making life a bit easier when you get an error. The code is from: http://weblogs.asp.net/adweigert/archive/2007/10/10/powershell-try-catch-finally-comes-to-life.aspx Simply paste this into the Powershell session ( or start all these functions in your profile ) and you are ready to use try catch blocks: function Try { param ( [ScriptBlock]$Command = $( throw "The parameter -Command is required." ), [ScriptBlock]$Catch = { throw $_ }, [ScriptBlock]$Finally = {} ) & { $local:ErrorActionPreference = "SilentlyContinue" trap { trap { & { trap { throw...
Web Deployment Tool and PowerShell Blog
If you want to use the Web Deployment Tool with PowerShell, look no further than our own tester James Cook's PowerShell blog post . He shows how to invoke our deployment APIs through PowerShell to perform a local sync of content. In future posts, he plans to add remoting and other capabilities. And let us know if you want to use Web Deploy with PowerShell, we're interested in hearing about what tasks you'd like to accomplish and why! Read More...
Troubleshooting: IIS Powershell Module on Windows 7 RC
First thing that you need to know in regard to the IIS PowerShell Snap-in or the module when using it with Windows 7 is that you do not need to download & install the snap-in. In Windows 7 the snap-in is part of the default install of IIS. Moving on, if you want to use the snap-in with PowerShell in Windows 7 RC then you would need to import the module. Now that sounds simple. However, there is a problem. When you try to import the IIS module which is named WebAdministration you are most likely...( read more ) Read More...
R2: How Would You Manage Without It?
As many of you know, Windows Server 2008 R2 Release Candidate (RC) is made available today to MSDN and TechNet subscribers, with broader availability from Microsoft.com on May 5th. As our final broad test milestone before RTM, this really is the best chance for you to download Windows Server 2008 R2 and put it through its paces while we continue our march to RTM. This week, I’m in the UK, meeting with enterprise customers to share our product roadmap and to discuss the investments we’ve made in R2...( read more ) Read More...
Setup IIS on Server Core – Windows Server 2008 R2
With the addition of .NET Framework to Server Core in Windows Server 2008 R2 the Server Core installation option became even more appealing for those who want to use a very low footprint server for hosting their applications. Availability of .NET framework provides the following great benefits: ASP.NET support – you can now use Server Core to host your ASP.NET applications. IIS Remote Management – Server Core does not provide any user interface other than command line. But if you prefer to use IIS...( read more ) Read More...
Microsoft.com Now Running Windows Server 2008 R2 Beta
Do you remember the tale of the Windows Server 2008 “Lone Server” ? Maybe it was read to you as a bedtime story as a change from “Mommy, Why Is There a Server in the House?” There he was, this poor Windows Server 2003 server, all alone in a server farm of Windows Server 2008 machines. Out-of-date. Out-of-style. Out-of-touch with the needs of modern Web server administrators. Well let’s hope the Windows Server 2008 computers didn’t laugh too heartily at his fate, because they’re about to suffer the...( read more ) Read More...
More Posts Next page »