By default, the Windows 2000 system files are installed to a folder named \WINNT. A crafty system administrator may want to specify a different folder to install Windows into during setup, however. There are many legitimate reasons for this:

  1. As a security measure. Many exploits assume that Windows is in the \WINNT directory and attempt to take control of the system by blindly exploiting this fact. Having Windows installed in another folder defeats this.

  2. As a requirement for a parallel install. When you install the current version of Windows alongside an existing version, the new install has to be put into a different directory.

Unfortunately, the Windows setup and recovery services assume that Windows will be in the \WINNT folder. In the event of a disaster, it is sometimes very difficult to coerce Windows into using another folder for repair operations.

Fortunately, there are some ways to work around this problem. One way to do this is to manually create a \WINNT folder on the target partition for the reinstall. When the installer sees the existing \WINNT directory, it will prompt the user for a new directory name. This can be done through the Recovery Console, through an alternate operating system, or by putting the drive in another computer. (Note that if you elect to create the \WINNT directory on another computer, be careful not to change any ownership information on the target drive, or you will create problems further down

    Requires Free Membership to View

the line.)

Another way you can create the target directory is by using an answer file with an unattended installation operation, by using the TargetPath=WINDIR parameter.

  1. Create a text file called WINNT.SIF with the following contents:

    [Unattended]
    UnattendMode=GuiAttended
    OemPreinstall=No
    TargetPath=OLDWINDIR
    
    [data]
    unattendedinstall=yes
    msdosinitiated =0 
    
    Be sure to replace WINDIR with the custom Windows directory you want to use.

  2. Put the floppy with the WINNT.SIF file in the A: drive and boot the Windows 2000 CD-ROM. Windows Setup will read the WINNT.SIF file and use the target path you specified to perform the setup operation.

Serdar Yegulalp is the editor of the Windows 2000 Power Users Newsletter. Check out his Windows 2000 blog for his latest advice and musings on the world of Windows network administrators – please share your thoughts as well!


This was first published in June 2003

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

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

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.