How to Manage Hard Disk using PowerShell

Published: 19 November 2017
on channel: Britec09
21,790
381

How to Manage Hard Disk using PowerShell

If you want to learn how to manage your SSD or Hard Drive using just Windows PowerShell then this video is for you.

I will show you how remove data, delete partition, create new partition and give it a drive letter all in powershell.

1. Get-Disk

2. Get-Disk 0 | Clear-Disk -RemoveData

3. Initialize-Disk 0

4. New-Partition -DiskNumber 0 -UseMaximumSize | Format-Volume -FileSystem NTFS -NewFileSystemLabel Archive

5. Get-Partition -DiskNumber 0 | Set-Partition -NewDriveLetter Z

Why not join our forum
http://www.briteccomputers.co.uk/forum