5 Replies Latest reply on Jan 12, 2010 5:41 AM by h-bomb1974

    How to edit PXE script to complete partition

    Rookie

       

      Dear all,

       

       

      Who can tell me how to edit PXE script to complete partition?

       

       

      I got a new hard drive, no format no partition,I want to use the former PXE script only need modify a little parameter. But I don't know where can I modify and what is the parameter just I need. Such as C drive 20GB, D drive 40GB, and so on. I think LANDesk can do.

       

       

      Thans a million

       

       

        • 1. Re: How to edit PXE script to complete partition
          SupportEmployee

           

          In WinPE, you can do that with the diskpart utility. You can read more about it here:

           

           

           

           

           

          http://technet.microsoft.com/en-us/library/bb490893.aspx

           

           

          1 of 1 people found this helpful
          • 2. Re: How to edit PXE script to complete partition
            Rookie

            I know this article, and tried to modify the parameter but it's also failure, how to use Microsoft parameter adapt well to LANDesk demand?

            • 3. Re: How to edit PXE script to complete partition
              Rookie

               

              WinPE OSD scripts partition and format the hard drive using the diskpart command and call a configuration file called wipeDisk0.txt contained in the WinPE LDClient directory.

               

               

              You can create your own command file and then modify the OSD script to use yours instead.

               

               

              Sample wipeDisk0.txt file which creates a 20GB primary partition and an extended partition with a 40GB logical drive and then another logical drive using the remaining space on the hard drive:

               

              select disk 0
              clean
              create partition primary size=20480
              assign letter=c
              active
              create partition extended
              create partition logical size=40960
              assign letter=d
              create partition logical
              assign letter=e

               

              Save this file to the same location as your imaging tool or disk image.

               

               

              Open your OSD script and locate the line stating: REMEXECnn=diskpart /s X:\LDClient\wipeDisk0.txt

               

               

              Replace this line with REMEXECnn=diskpart /x <driveletter>:\wipeDisk0.txt

              where <driveletter> = the mapped drive where you put your version of wipeDisk0.txt

               

               

              Next, locate the line in your OSD script where the C: partition is formatted: REMEXECnn=cmd /c format /Y /FS:NTFS /Q /V:C-Drive c:

               

               

              You will need to add two lines following this command to format the D: and E: partitions you created in your modified wipeDisk0.txt file.

              REMEXECnn=cmd /c format /Y /FS:NTFS /Q /V:D-Drive d:

              REMEXECnn=cmd /c format /Y /FS:NTFS /Q /V:E-Drive e:

               

               

              That should do it for you.

               

               

               

               

               

              • 4. Re: How to edit PXE script to complete partition
                Rookie

                Firstly I want to say Thank you very much. You give me the big favor. Accroding to your method I'm success.

                 

                 

                But I got only two drives C: and D: ,

                 

                 

                1. where is the E drive?

                 

                 

                2. Another question is when all command were executed I need restart computer manually, but not automatically.

                 

                 

                And I check the script several times and I'm sure No mistakes.

                 

                 

                Can you tell me your E-mail? My Email is chriszhang at live.com

                 

                 

                Thank you so much.

                • 5. Re: How to edit PXE script to complete partition
                  Rookie

                  The last line of your OS script should read:

                   

                  REMEXECxx=reboot,timeout=2