What is a basic example of going through the setup of a new disk (Initializing it, partitioning it, and formatting) it using powershell?
Windows – How to Setup (Initialize, Partition, and Format) a disk using Powershell
powershellpowershell-v3.0windowswindows-server-2012
Related Topic
- Git for Windows – How to Tell Git Where to Find Private RSA Key
- Unattended Install of Windows using Powershell and Hyper-V
- Powershell – Cannot initialize disk in PowerShell : Initialize-Disk throws “The disk has already been initialized”
- Windows – Access ‘Response Time (ms)’ windows disk counter from powershell
- Powershell – Get witness disk current vote via PowerShell
- Windows – How to search Powershell command history from previous sessions
- PowerShell EFI Partition – How to Create Using PowerShell
Best Answer
Step 1: List the Disks Available to the System:
Step 2: Initialize the Disk:
[192.168.1.193]: PS C:\Users\Administrator\Documents> Initialize-Disk -Number 1
The disk will now show a Partition Style (GBP) when repeating
Get-Disk
:Step 3: Setup a Partition:
Step 4: Format the Volume:
See the storage cmdlets to find out more with disk management using powershell.