Network Administrator Knowledgebase

December 6, 2007  8:17 AM

Technical Briefs on Windows Home Server

Michael Khanin Michael Khanin Profile: Michael Khanin

5 new technical briefs available on the Windows Home Server web site. They are:

December 5, 2007  3:18 PM

Download Windows XP SP3 RC directly from Microsoft ;)

Michael Khanin Michael Khanin Profile: Michael Khanin

Today, one of my friends asked me how to get SP3 RC1 for Windows XP. Many of you know that this release available for Beta Testers, but Friend of mine is NOT beta tester. So, you can use a Hack that will allow you to download Windows XP SP3 RC1 directly from Microsoft. Windows XP SP3 will be the final service pack for really good Operating System from Microsoft. SP3 will bring a lot of bug fixes and some new features from Vista. Well, if you can’t wait for official release, create a .bat file, let say xpsp3rc1.bat. Copy & Past toxpsp3rc1.bat following commands:

@echo off
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\XPSP3 /f 2> NUL
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\XPSP3 /v RCPreview /t REG_SZ /d 1c667073-b87f-4f52-a479-98c85711d869 /f
echo XP SP3 RC1 registry key has been set. Please check for updates in Windows Update.


Once you have created the file run the file by double clicking it. Wait for the Confirmation Message on screen. The Above file adds a few entries to the Windows Registry that makes Microsoft suppose that you are a part of the Private beta program Check for new updates on Windows Update. You will see Windows XP SP3 listed in the available updates. Download and install it. Remember to Reboot :). Please note this hack is the exact way Microsoft expects its beta testers to try Windows XP SP3 out, so you don’t have to worry too much about Microsoft catching hold of you.
I tried this on Windows XP Machine and this hack worked.

December 2, 2007  11:08 AM

PXE and Boot Disk which created at Windows XP

Michael Khanin Michael Khanin Profile: Michael Khanin

Few month ago I published an article “PXE, aka Pre-Execution Environment – Part 1“. In this article, I talked about a problem to use boot disk which created at Windows XP for PXE boot. I’d like to say thanks to Michael Bridge. He found a way to make the Windows XP floppy image of the netbootdisk work.

Under \\\ pxelinux.cfg \\ default

edit the default to

append initrd=.IMA raw

(add “raw” after the image name)
According to this it allows access to protected mode memory. Michael Bridge, told me that he managed to get the solution on this web site:

November 28, 2007  9:08 PM

System Center Virtual Machine Manager 2007 Scripting Guide

Michael Khanin Michael Khanin Profile: Michael Khanin

Microsoft, exactly for me 🙂 created a good white paper that I’d like to read:

System Center Virtual Machine Manager 2007 Scripting Guide

A very nice guide of useful script samples for SCVMM – which highlights common tasks:

Adding new Virtual Server hosts.
Configuring new Virtual Server hosts.
Deploying and configuration new virtual machines from the library.
Moving virtual machines between different hosts.

If you are working with Virtual Machine Manager, Must read!

November 25, 2007  8:38 PM

One Line Commands

Michael Khanin Michael Khanin Profile: Michael Khanin

I’m posting some of my favorite scripts on blog and on my site ( Now, I’d like to show few of “one line commands” scripts. The command entry should all be on one line.

Domain Controllers
Nltest /dclist:%userdnsdomain%

Domain Controller IP Configuration
for /f %i in (‘dsquery server -domain %userdnsdomain% -o rdn’) do psexec \\%i ipconfig /all

AD Database disk usage
for /f %i in (‘dsquery server -domain %userdnsdomain% -o rdn’) do dir \\%i\admin$\ntds

November 23, 2007  9:35 AM

Content on log files via browser

Michael Khanin Michael Khanin Profile: Michael Khanin

I’ve a client that runs special program on about 100 servers. This program writes a log on central server every 3 minutes. So, when I checked main server, I found a directory Logs (C:\Logs). Log’s directory contains many log files (each log for each server).  On this server installed and runs a web server, Apache ;). So, I’d like to show a small AppsRuns.php file, which stored on web server. If we go to the http://server1/AppsRuns.php we will see a content of each log file on one web page. This web page refreshing every 10 sec. Here is a content of AppsRuns.php file:

    $refresh_time = 10; // seconds
    $path = "C:\LOGS";

    header("Content-Type: text/plain");
    header("Refresh: $refresh_time");

    if($handle = opendir($path)) {
    while (false !== ($file = readdir($handle))) {
        $pi = pathinfo($path . '/' . $file);
        if($pi['extension'] === 'txt') {
        include($path . '/' . $file);

November 17, 2007  8:22 AM

Updates: Free Deployment System Scripts

Michael Khanin Michael Khanin Profile: Michael Khanin

I have made a small change in my “Free Deployment System“, the set of script allows to deploy, install or run applications on any remote computer.
Equally, I just added a few new lines. In to Config.bat added a new line:

set DSRV=

By using a DSRV environment i can set IP or Computer Name of my Deployment Server.
Also, added two new lines to the INSPKG.bat script (Script in original article already changed, so you can simply take a changed script). One of new lines contains following:

%Tools%\psexec.exe \\%RCOMP% -u %USR% -p %PASS% -i cmd /c md C:\Updates

This line creates a directory C:\Updates on remote computer. I use C:\Updates on remote computer to copy there necessary scripts and source of installation programs. The other new line in INSPKG.bat is:

@echo set DSRV=%DSRV%> \\%RCOMP%\C$\updates\config.bat

As you can see, by this line I create a config.bat file on remote computer and put in to environment, that sets a name or IP of our deployment server. Additionally, we need to change a package script. So, after changes, our package script looks like follow:

@echo off
call c:\updates\config.bat
\\%DSRV%\packages\7ZIP\7z442.exe /S

So, now, if we are changed our deployment server, we have not to change our packages script.

November 16, 2007  12:23 PM

Microsoft Application Virtualization Version 4.5 Beta Now Available

Michael Khanin Michael Khanin Profile: Michael Khanin

Microsoft Application Virtualization, formerly known as SoftGrid Application Virtualization, is the first Microsoft-branded release of this product. Microsoft Application Virtualization is now available in a public beta on Microsoft Connect and will become generally available through the Microsoft Desktop Optimization Pack and Terminal Services in the third quarter of calendar year 2008.

November 16, 2007  11:54 AM

MTEE Commandline Standard Stream Splitter – sends any data it receives to the console and / or to any number of log files

Michael Khanin Michael Khanin Profile: Michael Khanin

For me and my clients I create many scripts to simplify daily Administration tasks. Many of this script should be running from a command line ( cmd. exe). It’s very easy to run any script and to get a result of it to the log file. But, if you would like to run script and watch the result on the screen and in same time you need a hard copied log, you can use a MTEE command line utility. Mtee is a commandline utility that sends any data it receives to the console and to any number of files. Useful if you want to watch and record the output from a batch file or program.

Mtee is an 11kb standalone executable. There is no installation procedure, just run it.
Mtee is simple to use and only has several options. To list them, type mtee/?

You can download Mtee from offisial web site by following to the

November 16, 2007  7:16 AM

Top 5 Exchange Server 2007 Security Best Practices

Michael Khanin Michael Khanin Profile: Michael Khanin

Few days ago, on Microsoft TechNet‘s web site published a very good article “Top 5 Exchange Server 2007 Security Best Practices“. I really recommend to read it.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: