ZTIUserExit.vbs
- From: SMS_Wannabe <SMSWannabe@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 11 Oct 2006 16:37:01 -0700
I am confused by what I have seen with testing the “ZTIUserExit.vbs”
described in the ZTI Deployment Feature Team Guide, and I am hoping someone
can help explain what I have observed.
I am testing using ZTIUserExit.vbs as a custom exit function for bare metal
builds (i.e. new computer scenarios). I am working with a lab system, so to
emulate a bare-metal install, I always clean the system’s hard drive to
remove all partitions, etc. before attempting a ZTI deployment. I have set
up the custom exit function as the ZTI guide explains, with the exception of
modifying the ztidiskpart.txt (see below).
I am trying to configure the system with a 15gb C partition, and leave the
rest of the disk alone so an installer can cut up the drive later as he/she
likes. When I set up ZTIUserExit.vbs to use the ztidiskpart options pasted
below, the set up does not work as I expected. Instead of creating a 15gb C
drive and installing the OS on that drive, OSD creates a C drive that uses
all available disk space (a full 60gb on my lab system).
ztidiskpart.txt:
select disk 0
clean
create partition primary size=15000
assign letter=c:
active
exit
I assume this has to do with OSD running diskpart.exe parsing the default
“diskpart.txt” on it’s own during the pre-install phase. I guess this must
happen after the custom action runs and overwrites the earlier configuration?
However, when I configure the ztidiskpart.txt with the settings below, the
disk is in fact configured with a 15gb C: drive and a 45gb D: drive.
select disk 0
clean
create partition primary size=15000
assign letter=c:
active
create partition primary
assign letter=d:
exit
Can someone explain why this occurs? If the default diskpart.exe command
runs during the pre-install phase AFTER the ztiuserexit.vbs, I would expect
it to clean the disk and delete both the C and the D drive? So both
scenarios mentioned above should leave me with a system that has a 60gb C
drive?
Just for background, pasted below is the default diskpart.txt stored in the
OSD directory
default diskpart.txt:
select disk=0
REM // The "clean" command is required to make sure that
REM // Diskpart writes out the MBR boot sector. Without this
REM // the machine may not boot into the new OS if the hard
REM // drive is new and did not already have a boot sector
clean
REM // Create a single partition that uses all available
REM // drive space and make it the C: drive.
create partition primary
select partition=1
assign letter=C
REM // Set the new partition as the boot partition
Active
Any assistance is appreciated.
.
- Follow-Ups:
- Re: ZTIUserExit.vbs
- From: Matthieu
- Re: ZTIUserExit.vbs
- Prev by Date: Re: OSD Installation CD cannot find Distribution Point
- Next by Date: Re: ZTIUserExit.vbs
- Previous by thread: Re: OSD Installation CD cannot find Distribution Point
- Next by thread: Re: ZTIUserExit.vbs
- Index(es):
Relevant Pages
|