PC Review
Forums
Newsgroups
Windows 2000
Microsoft Windows 2000 Deployment
Re: Windows 2000 Clean installation
Forums
Newsgroups
Windows 2000
Microsoft Windows 2000 Deployment
Re: Windows 2000 Clean installation
![]() |
Re: Windows 2000 Clean installation |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 



