Showing posts with label iis. Show all posts
Showing posts with label iis. Show all posts

Thursday, November 12, 2009

Powershell v1.0, IIS6, and remote machines

I found this snippet on the web:


$computer="server"
$co = new-object System.Management.ConnectionOptions
#$co.Username="domain\username"
#$co.Password="password"
$co.Authentication=[System.Management.AuthenticationLevel]::PacketPrivacy
#$co.EnablePrivileges=$true;
$wmi = New-Object System.Management.ManagementObjectSearcher
$wmi.Query="Select * From IIsApplicationPool"
$wmi.Scope.Path="\\$computer\root\MicrosoftIISv2"
$wmi.Scope.Options=$co
$wmi.Get() | foreach { $_.name }
In PowerShell v2.0 there is a new parameter, -Authentication, to specify
the authentication level (one line):
gwmi -class IIsApplicationPool -namespace "root\MicrosoftIISv2" -computer
$computer -authentication PacketPrivacy | foreach { $_.name}

Friday, June 26, 2009

MSDeploy, First Looksies

Microsoft has a tool which promises to simplify IIS deployments, known as MSDeploy.

I had a little trouble finding documentation, but I finally found a link pointing here.

Update: Dinked around with it a little, and it is looking pretty darn cool. Heavily slanted towards IIS7, it looks like it works reasonably well with IIS6.