Skip to content

SCCM OSD

Featured Replies

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

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.

  • Author

Thanks for the quick reply. I tested and it works.

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.