Hyper-V Server/Powershell Info
Steps to add a new hard drive to Hyper-V Server via command line:
- Start diskpart: C:\>diskpart
- Find the disk: DISKPART> list disk
- Select the disk: DISKPART>select disk 1
- Put disk online: DISKPART>online disk
- Reselect the disk: DISKPART>select disk 1
- Create the partition: DISKPART>create partition primary
- Find and select the new volume:
- DISKPART> list volume
- DISKPART>select volume 2
- Format the drive and assign a drive letter:
- DISKPART> select volume 2
- DISKPART> format fs=ntfs label=”VMs” quick
- DISKPART> assign letter=v
- DISKPART> exit
Clear attributes: ATTRIBUTES VOLUME CLEAR READONLY
Leave a Reply