How to create D drive for multiple computers?

Eaven HUANG 2,191 Reputation points
2022-11-24T06:26:04.507+00:00

Dear experts,

I received a request from a user who asked to place some documents on D drive, however our standard OS is creating only C drive for all the computers that run Windows 10 Education Pro.
We have around 100pcs computers sitting there with other software in place.

Is there any automatic way that we can use PowerShell, SCCM or other programs to achieve this goal?
Thanks a lot.

Windows for business Windows Server User experience Other
Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Mhd Samer Sawas 151 Reputation points
    2022-11-25T06:20:13.493+00:00

    @Eaven HUANG
    It can be done through ConfigMgr (Previously SCCM) using a custom task sequence provided that ConfigMgr agent is already deployed to your clients.
    The task sequence could contain these steps:

    1. Resize C drive to make room for an additional D drive
    2. Create D drive from the unallocated space and format it

    You must exercise extra caution and do thorough testing as any mistake might wipe the disk and cause data loss.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it.

    0 comments No comments

  2. Anonymous
    2022-11-25T07:45:28.16+00:00

    Hi @Eaven HUANG ,

    You can use New-Partition to create the new partition and Format-Volume to format the volume, however there should be unallocated space on the current disk or new disks attached to the computers. Say the D drive is created with the unallocated space on the existing disk, you can try something like this

    $cred = Get-Credential  
    Invoke-Command -ComputerName $computers -Credential $cred -ScriptBlock {  
        Get-Disk | New-Partition -DriveLetter D -UseMaximumSize | Format-Volume -FileSystem NTFS  
    }  
    

    Please refer to below links for more details
    https://learn.microsoft.com/en-us/powershell/module/storage/new-partition
    https://learn.microsoft.com/en-us/powershell/module/storage/format-volume

    Best Regards,
    Ian Xue

    -----------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.