Storage Spaces via PowerShell | Create your own NAS on Windows 10

Published: 02 July 2020
on channel: landpet
2,563
45

Create your own NAS drive on Windows 10 using Storage Spaces via PowerShell. Combine several hard drive to appear as one larger drive with redundancy. If you have had issues creating Storage Spaces with the GUI, then you can simply create it with PowerShell commands.

This is for tutorial purposes only, I am not liable for anything that can potentially happen.

How to add a hard drive to an existing storage space:    • Add Hard Drive To Storage Spaces via ...  

Useful information from Microsoft: https://docs.microsoft.com/en-us/powe...

DISCLAIMER: Backup all your data, this process formats all the hard drives completely erasing all the data on all the drives which are intended for the creation of the storage space.

**DISKPART Commands:**

list disk
select disk X
clean
(repeat for the other physical drives you plan on using to create the storage space)

**PowerShell Commands**

Get-PhysicalDisk

Get-PhysicalDisk -CanPool $true

$PhysicalDisks = Get-StorageSubSystem -FriendlyName "Windows Storage*" | Get-PhysicalDisk -CanPool $True

New-StoragePool -FriendlyName "StoragePool" -StorageSubsystemFriendlyName "Windows Storage*" -ResiliencySettingNameDefault Mirror -PhysicalDisks $PhysicalDisks|New-VirtualDisk -FriendlyName "PoolData" -Size 21.3TB -ProvisioningType Thin |Initialize-Disk -PassThru |New-Partition -AssignDriveLetter -UseMaximumSize |Format-Volume

Get-StoragePool

Get-VirtualDisk


Watch video Storage Spaces via PowerShell | Create your own NAS on Windows 10 online without registration, duration hours minute second in high quality. This video was added by user landpet 02 July 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,563 once and liked it 45 people.