izdaleka_nekta

Разметка диска на PowerShell

Например — на Windows Server Core или Hyper-V Server.

  • Get-Disk 
  • Initialize-Disk -Number<disk number>
  • New-Partition -Disk Number <disk number> -UseMaximumSize │Format-Volume -FileSystem NFTS -NewFileSystemLabel myDrive
  • Get-Parition -DiskNumber <disk number> -PartitionNumber <partition number> │Set-Partition -NewDriveLetter <new drive letter>

При возникновении ошибки “Set-Partition: requested access path already in use”, использовать другую букву для обозначения диска.

Error

Anonymous comments are disabled in this journal

default userpic

Your reply will be screened

Your IP address will be recorded