Using a Custom 404 error script in IIS makes it possible to emulate a very basic URL rewrite. Sample Environment IIS 6 Website domain: "www.me.com" URLRewrite directory: "code" Steps Create a file named rewrite.asp in the code directory. Add a Custom Error for the 404 Not Found. Open up IIS -> …
Read More[super old post, reposted] A few weeks ago, I asked in an IT forum if it was possible to have a "perma-VPN" connection with Windows XP. Note from 2025: Windows Server 2003 has been out of support for years. The content below reflects what worked in 2006 and is kept for historical reference. After searching …
Read MoreI dug up this cold from my old netnerds blog. For Googlers wondering if sustaining a remote session is possible, the answer is yes; I've sustained remote cookie sessions using both ASP & VBScript. I've provided simplified code below. It should be self explanatory. If not, drop me a comment and I'll explain it. …
Read MoreThe MSPress Exchange Training Kit supposedly says that you must uninstall/reinstall an Exchange Server in order to move it from one Administrative Group to another. I managed to do change the administrative group for one of my servers today using adsiedit. Here’s how I did it. Install the Support Tools from Microsoft …
Read MoreAwhile back I tried out FreeBSD for a couple months. I was used to SuSE (which I'm back to) so I ran a few commands to make my environment a bit more familiar. If you are a recent convert, you can use this code too. Find where bash is installed, then change your login shell to bash (I used sysinstall to install bash): …
Read MoreUsing SQL and want to know how many times 'http' appears in a string using about one line of code? Find out by creatively using the replace() function. Declare @myStr varchar(1500), @countStr varchar(100) Set @myStr = 'https://www.buydrugshere.com go here! https://www.onlinemortage.com right there!' Set @countStr = …
Read MoreLast night I got locked out of my Compaq DL360's iLO. I searched the web to find how to reset the Administrator password and read that, for the most part, I'd have to be at the console. Bah! My servers are in San Jose and I'm up here in San Francisco, I didn't want to make a trip just to reset my passwords. I continued …
Read MoreI used the following code a while back as part of a solution to automate the banning of spammers via their IP address. 1'Here, we will pretend this is an imported list 2Dim XMLarr(1) 3XMLarr(0) = "65.19.238.21" 4XMLarr(1) = "198.31.175.100" 5 6Set objIIS = GetObject("IIS://localhost/w3svc") …
Read MoreThis script should work right out of the box. Note (2025): MSXML 4.0 is long deprecated and no longer supported. If you try this on a modern system, prefer MSXML 6.0 (for example: MSXML2.XMLHTTP.6.0 and MSXML2.DOMDocument.6.0). The example below reflects the original 2006 code for historical accuracy. 1<% 2Call …
Read More