Jump to content

daniel.kuhn

Member
  • Posts

    9
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Switzerland

About daniel.kuhn

daniel.kuhn's Achievements

0

Reputation

  1. Hi It has to be done silently
  2. Hi You can start pqquery.exe /dsk[n] where n is the number of your disk. After that a few env vars are created...for example %D[n]SZ% holding the complete size of the disk... Or %D[n]UASZ% with the unallocated size of the disk. Then replace a placeholder value in the diskpart script file with a file manipulation tool or a vbscript. Afterwards start diskpart.exe with the option /s and the modfied script. If the last two partitions are of the same size you only have to specify the size of the firs partition....the last one can be created without a special size as diskpart will take the whole free space left on the disk....which should be the same as the previously created partition. Got it ? But pqquery is not freeware as it is part of the powerquest deploy toolkit Probably today it's better to write a short vb script. I think you can query the disk size in WMI... But when we did this before we were only dreaming about WMI support in PE
  3. Hi I've a little problem. We stage our workstations by restoring a previously created sysprep image. We then copy a sysprep.inf file to the later os partition and perform a few modifications....like editing the later computer name according to an LDAP query (1:1 Link from MAC to Computername stored in an LDAP directory). This works all fine. After 2 reboots the workstation is automatically joined to the domain with it's new name etc... I now have the problem that I should modify a value of the later HKLM registry tree prior to the first reboot. So loading the later registry hive in PE, change the value and save it. Has everyone done this before ?
  4. Hi As far as I know there is no support in diskpart.exe of specifying partition sizes in %. One way would be to start diskpart with a script. You could then create the script automatically and calculate the size of the last two partitions with a tool. Made this once with pqquery.... But I'm shure there are other tools out there or simply create a script doing this. What PE version are you using ?
×
×
  • Create New...