PC Review Forums Newsgroups Windows 2000 Microsoft Windows 2000 Deployment Re: Windows 2000 Clean installation

Reply

Re: Windows 2000 Clean installation

 
Thread Tools Rate Thread
Old 02-07-2003, 11:37 AM   #1
Timo
Guest
 
Posts: n/a
Default Re: Windows 2000 Clean installation


Hey James,
thanks for your reaction. SMS Kicks off a VBS script on the client
when an user wants to re-install his PC. This script copies a general
unattend.txt to the client. Then, the script will get some information
from the client (OS language, NetBIOS name, user name, installed
programs, domain) and manipulate the unattend.txt with this
information. After that, the script starts Windows 2000 Setup, with
the new unattend.txt.

At the end of the script, just before the command for starting the
Windows setup, i will clean up the harddisk. First what i do is a dir
commando with the output to a text file (CMD /C dir /b /l /ad C:\ >
c:\Unattend\dirlist.org). Then i manipulate this file, and delete the
WINNT entry from it. At the end i have a text file, with all the
directories on the drive, except the WINNT folder. As you say, i will
delete all directories with the RMDIR command. If i delete the WINNT
directory also, Windows 2000 Setup wont start because of missing
files... and it sounds logical to me

Set rtf = fso.OpenTextFile("c:\Unattend\dirlist.txt", 1, False)
Do while not rtf.AtEndOfStream
r = rtf.Readline
return = Shell.Run ("CMD /C RD ""C:\" & r & """ /S /Q",1, TRUE)
Loop
rtf.Close

thanks for your information, i have solved the problem with it!
Now i've got a new challenge. After Windows 2000 setup is ready with
copying the files, the system will reboot. Now the setup found a
previous version of Windows (the old winnt directory), and asks me if
i want to delete the previous version... I can switch the parameter in
the unattend.txt (NTUPGRADE = YES) to avoid the message, but that
isn't what i want, i want a clean installed system!

well, again thanks for your reaction! (and my excuse for my english)

Timo

James Williams <james_williams@nospam.ncsu.edu> wrote in message news:<#r5feMFPDHA.1336@TK2MSFTNGP11.phx.gbl>...
> Hey Timo. I've never used SMS to deploy, but I've been working
> extensively with unattended installs for the last few months.
>
> How exactly is the SMS install kicked off? Does it toss an image down,
> then boot into Windows Setup?
>
> What I'm thinking now is that you could put a format or a deltree
> command in the autoexec-type file you distribute to clients. If you're
> kicking off the install from within Windows, I know rmdir uses a very
> handy /s flag that does recursive deletes. Just use "rmdir /q /s
> <dirname>" to supporess confirmation prompting.
>
> Give me some more info about how SMS kicks off the install process and
> we can refine that train of thought...
>
> Hope this helps!
>
> (j)
> James Williams
>
> Timo wrote:
> > Hi all,
> > after the unattended (network based) installation of Windows 2000, it
> > looks like there are some directories left from the previous
> > installation. The old Program Files and other folders still remain. Is
> > there an option to delete all of the directories on the partition
> > before the installation starts?
> > We want to install the systems with SMS 2.0. This means it has to be
> > done atomatically...
> >
> > I have set the following options:
> >
> > [Data]
> > AutoPartition=1
> > MsDosInitiated="0"
> > UnattendedInstall="Yes"
> >
> > [Unattended]
> > FileSystem=LeaveAlone
> > UnattendMode=FullUnattended
> > NoWaitAfterTextMode=1
> > NoWaitAfterGuiMode=1
> > ExtendOemPartition=1
> > OemSkipEula=Yes
> > OemPreinstall=Yes
> >
> >
> > thanks!
> > Timo

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off