How do I Capture C drive and hidden 100MB Windows 7 system partition without diskpart swap in Kace 3.5?
We used to have the older version of Kace pre-3.4, but now we are updated to 3.5
The Pre-tasks and post tasks are set to create the "Windows 7 - Create Two Partitions (3.1)", the "Windows 7 - Format Disks (3.1)" and the "Windows 7 - Two Partition BCD Fix (3.1)" as in the link
and we always do the diskpart step before capture and that works fine.
But the above link also says "All issues have been resolved in 3.4 and partitions do not need to be switched, but partitions still need to be created as they were captured"
So, I took that to mean the diskpart doesn't need to be done to swicth the partitions, but that doesn't work.
How do I capture the 2 partitions and what installation tasks are necessary to deploy the windows 100MB partition and the operating system partition properly in 3.5?
The hidden 100MB is captured as C by default and the operating system as D even though in the windows image there is just the C drive with the operating system.
Thanks
Answers (1)
That's right. You don't have to run the diskpart task to swap partitions. But also remember you will have to change the other scripts as they are posted on that kb article as if you first changed the partitions. Basically you have to swap everything back to the defaults.
For ex - here's what I used:
Create Two Partitions:
select volume 0
remove all noerr
select disk 0
clean
create partition primary size=100
assign letter="C"
active
create partition primary
assign letter="D"
exit
Format Disks:
format /q /y /fs:ntfs /v:System C:
bootsect.exe /NT60 C:
format /q /y /fs:ntfs /v:Windows D:
bootsect.exe /NT60 D:
Two Partition BCD Fix:
bcdedit /store C:\boot\bcd /set {bootmgr} device partition=C:
bcdedit /store C:\boot\bcd /set {default} device partition=D:
bcdedit /store C:\boot\bcd /set {default} OSdevice partition=D:
Comments:
-
Thanks jegolf,
I had tried changing those 3 files before, but was getting bootbmgr issues.
I tried it again today though and it worked perfectly so I must have messed up something previously
.
Thanks for the help. It is much appreciated and now this will simplify captures. - Geoff25 11 years ago