posts - 343, comments - 0, trackbacks - 0

July 2006 Blog Posts

IIS 6 - Creating an application and setting the application pool using ADSI

I received a request from visitor to my blog on how to set an application pool to a new folder he created. " I have a small web server running IIS 6 and I host small sites for friends and family all under one domain. To keep them separate I put each of their sites into a subfolder and drop it into different pools. To date I've been doing this manually.  I've been trying to get my mind wrapped around this ADSI stuff to automate this process a bit but I'm coming up short. Here's what I do now.. if you have...

posted @ Sunday, July 30, 2006 1:07 AM | Feedback (16) |

Microsoft Virtual PC 2004 - is now a free product...

function processSubmit(elem) { switch(document.frmCountry.selCountry.options[document.frmCountry.selCountry.options.selectedIndex].value) { case "USEN": { elem.hdnCampaignCode.value = "309"; elem.hdnCurrencyCode.value = "USD"; elem.hdnBillToCountry.value = "USA"; elem.hdnShipToCountry.value = "USA"; elem.hdnPrice.value = "0.00"; elem.hdnProductName.value="Virtual PC 2004 SP1 Win32 English Patch CD"; elem.hdnSKU.value="T31-00309"; break; } case "CAEN": { elem.hdnCampaignCode.value = "E09"; elem.hdnCurrencyCode.value = "CAD"; elem.hdnBillToCountry.value = "CAN"; elem.hdnShipToCountry.value = "CAN"; elem.hdnPrice.value = "0.00"; elem.hdnProductName.value="Virtual PC 2004 SP1 Win32 English Patch CD"; elem.hdnSKU.value="T31-00309"; break; } case "CAFR": { elem.hdnCampaignCode.value = "E09"; elem.hdnCurrencyCode.value = "CAD"; elem.hdnBillToCountry.value = "CAN"; elem.hdnShipToCountry.value = "CAN"; elem.hdnPrice.value = "0.00"; elem.hdnProductName.value="Virtual PC 2004 SP1 Win32 French Patch CD"; elem.hdnSKU.value="T31-00312"; break; } ...

posted @ Wednesday, July 19, 2006 9:51 AM | Feedback (4) |

CurrPorts v1.09 - View Opened TCP/IP ports / connections

CurrPorts displays the list of all currently opened TCP/IP and UDP ports on your local computer. For each port in the list, information about the process that opened the port is also displayed, including the process name, full path of the process, version information of the process (product name, file description, and so on), the time that the process was created, and the user that created it. In addition, CurrPorts allows you to close unwanted TCP connections, kill the process that opened the ports, and save the TCP/UDP ports information to HTML file , XML file, or to tab-delimited text...

posted @ Wednesday, July 12, 2006 3:35 AM | Feedback (8) |

IIS 6 Application Pools and ADSI

An application pool provides you with a way of isolating Web sites and Directories from each other even though they are being hosted on a common server. Each application pool is given its own set of server resources and can be configured with different identities. That way, if a Web site crashes, it won’t effect sites in other application pools. A example of this is a Web site which has a memory leak. If all of the Web sites hosted on a particular server were to share the system resources as was the case with IIS 5.1 and earlier and...

posted @ Tuesday, July 11, 2006 11:16 PM | Feedback (13) |

Belkin - F5D7010 - version 3000uk - FCC ID: PD5LMWB800RA - IC ID: 3970A-LMWB800A

I was recently installed an older laptop with Windows XP SP2 - and the Belkin F5D7010 PCMCIA Wireless G Network Card. I could not find the original driver CD so I went to the Belkin web site to find the latest drivers. I  naturally went to the support area of www.belkin.com and typed in my model of the PCMCIA card. F5D7010 There web site came back with a list of different cards. I choose the first item on the list since I assumed this card was what I had. The picture indicated was correct where was the F5D7010_V2 had a different look to...

posted @ Tuesday, July 11, 2006 10:59 PM | Feedback (46) |

VBScript - Modified version of Mk3Site.vbs

This script is a modified version of the IIS 5 Mk3Site.vbs script. I had a request to do some work and the customer would pay me to re-write the script to support some additional features. I decided to do the work for free and donate the script to the community. It may have some use for some people. The new features are: Ability to set the application protection to Low, Medium or High Ability to set the Execute options to None, Scripts or Executables Ability to change the log file period Ability to change the log directory This script was updated from a previously updated...

posted @ Tuesday, July 11, 2006 12:54 AM | Feedback (5) |

Christchurch .NET Users Group Meeting - June 21st, 2006

I had the pleasure to present to the Christchurch .NET Users Group ( http://www.dot.net.nz ) last evening. It was a very cold night with hail, sleet, rain and we had around 25 people attend. I spoke about three topics in my presentation: IIS Scripting IIS Diagnostic Tools IIS 7 IIS Scripting In the talk on IIS Scripting I discussed the different providers that were available to manage IIS from a command line script or application. These include ADSI and WMI, Admin Base Objects and the new IIS 7 Managed Provider. References: ADSI Providerhttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/iissdk/html/965cc820-753b-4ab7-b1c4-8ab43d67e410.asp  WMI Providerhttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/iissdk/html/8b7799c1-cebc-4b11-b3d5-34ab7b728077.asp  Admin Base Objectshttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/iissdk/html/6f6a0cfa-4f2b-4641-88c5-2a1767f6fbc8.asp   IIS7 Managed Provider - Microsoft.Web.Administration http://www.iis.net/default.aspx?tabid=2&subtabid=25&i=952 IIS Diagnostic...

posted @ Monday, July 10, 2006 1:18 PM | Feedback (11) |

VBScript - How to search all sites and host headers for a particular string of characters?

The following script will allow you to search the local web server for all virtual servers that have been configured for a particular host header value. The script requires you to specify a value to seach for as a command line parameter. Example cscript EnumByHostHeader.vbs SearchString Where SearchString is some text to search for such as crowe cscript EnumByHostHeader.vbs crowe The expected result is something like the following Searching for CROWE in the host headers Web Site Instance ID - Server Comment - Host Header126606719 - photos.crowe.co.nz - PHOTOS.CROWE.CO.NZ1849151055 - rotties.crowe.co.nz - ROTTIES.CROWE.CO.NZ2021379493 - Blog (Maintenance) - BLOG.CROWE.CO.NZ415889539 - fish.crowe.co.nz - FISH.CROWE.CO.NZ on error resume nextdim ContainsSet ArgObj...

posted @ Monday, July 10, 2006 1:18 PM | Feedback (29) |

IIS Podcasts at channel9.msdn.com

Brett Hill, IIS Technical Evangelist for Microsoft hosts these podcast shows dedicated exclusively to IIS. Every two weeks, expect a new podcast featuring members of the IIS 7 product team and other key players in IIS technology. Episode Time Release Date IIS Show #7 - Interview with Henry Seiler - IIS Team 10:57 6/27/2006 IIS Show #6 - Interview with Pluralsight.com 13:11 5/3/2006 IIS Show #5 - Interview with Scott Guthrie - http://weblogs.asp.net/scottgu/ 14:43 2/2/2006 IIS Show #4 with Brett Hill 09:42 12/16/2005 IIS Show #3 with Brett Hill - David Wang - http://blogs.msdn.com/david.wang 13:04 11/22/2005 IIS Show #2 with Brett Hill - Rick Strahl - http://west-wind.com/weblog/ 09:19 10/21/2005 IIS Show #1 with Brett Hill - http://iisanswers.com/brettblog 13:56 10/7/2005 You can listen online or download in...

posted @ Wednesday, July 05, 2006 5:31 AM | Feedback (8) |

Some examples of scripting of IIS using ADSI, WMI from VB and C# including the new Microsoft.Web.Administration namespace

Below are some simple examples of how to talk to IIS via ADSI, WMI and the new IIS 7 only .NET Managed Provider. The IIS ADSI Provider The IIS ADSI provider exposes COM Automation objects that you can use within command-line scripts, ASP pages, or custom applications to change IIS configuration values stored in the IIS metabase. IIS ADSI objects can be accessed and manipulated by any language that supports automation, such as Microsoft® Visual Basic® Scripting Edition (VBScript), Microsoft JScript®, Perl, Microsoft Active Server Pages (ASP), Visual Basic, Java, or Microsoft C++. The IIS WMI Provider Windows Management Instrumentation (WMI) is a...

posted @ Tuesday, July 04, 2006 3:18 AM | Feedback (23) |

Powered by:
Powered By Subtext Powered By ASP.NET