Jump to content


serj

SCCM OSD

Recommended Posts

Hello,

 

I am trying to add OSD task to create a partition (D Drive 5GB) on Win10 and no luck. I have partition Disk 0 -UEFI and once OS is installed I have a task to Format and partition Disk. Anyone had a better luck creating one?

 

Thanks

post-35012-0-90732600-1481744169.png

post-35012-0-45764000-1481744177.png

Share this post


Link to post
Share on other sites

By doing that "Format and Partition Disk" after everything, it's saying to delete the whole disk again and create just a single 5GB partition. A solution would be to have a script to automate DiskPart.

 

You'd have a batch script "DiskPart.bat"

@ECHO OFF
diskpart /s "%~dp0Diskpart5GB.txt"

And then the actual disk part layout would be a file named "Diskpart5GB.txt"

SELECT VOLUME D
ASSIGN LETTER=E
SELECT DISK 0
SELECT PARTITION 4
SHRINK DESIRED=5120
CREATE PARTITION PRIMARY
FORMAT FS=NTFS LABEL="APPS" QUICK
ASSIGN LETTER=D
EXIT

The first 2 lines would be to change an attached DVD-ROM Drive to the letter E so D would then be free to use for the partition. If the computers do not have any DVD-Roms that can just be removed

The partition number on line 4 could differ depending on how the partition layout is setup but that should be it.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.