Hello. I have a problem when trying to create the partitions for installing windows 8 on a GPT disk. The error happens when trying to create the efi partition. The command that is in bold. The error reported is:
Format-Volume : No matching MSFT_Volume objects found by CIM query for enumerating instances of the ROOT/Microsoft/Windows/Storage/MSFT_Volume class on the CIM server, that are associated with the following instance: MSFT_Partition (DiskId = "\\?\scsi#disk&ven_msft&prod_virtual_dis..., Offset = 315621376). Verify query parameters and retry. At line:1 char:111 + ... riveLetter S | Format-Volume -FileSystem FAT32 -NewFileSystemLabel System -Confi ... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Category :ObjectNotFound: (MSFT_Volume:String) [Format=Volume], CimJobException+FullyQualifiedErrorId: CmdletizationQuery_NotFound,Format-Volume
powershell -noprofile "& {Clear-Disk 0 -RemoveData -RemoveOEM -Confirm:$false}"
powershell -noprofile "& {Initialize-Disk 0 -PartitionStyle GPT -Confirm:$false}"
powershell -noprofile "& {New-Partition -DiskNumber 0 -GptType '{de94bba4-06d1-4d40-a16a-bfd50179d6ac}' -Size 300MB -DriveLetter T | Format-Volume -FileSystem NTFS -NewFileSystemLabel WindowsRE -ShortFileNameSupport $False -Confirm:$false}"
powershell -noprofile "& {New-Partition -DiskNumber 0 -GptType '{c12a7328-f81f-11d2-ba4b-00a0c93ec93b}' -Size 100MB -DriveLetter S | Format-Volume -FileSystem FAT32 -NewFileSystemLabel System -Confirm:$false}"
powershell -noprofile "& {New-Partition -DiskNumber 0 -GptType '{e3c9e316-0b5c-4db8-817d-f92df00215ae}' -Size 128MB}"
powershell -noprofile "& {New-Partition -DiskNumber 0 -GptType '{ebd0a0a2-b9e5-4433-87c0-68b6b72699c7}' -%partsize-param% -DriveLetter C | Format-Volume -FileSystem NTFS -NewFileSystemLabel Windows -ShortFileNameSupport $False -Confirm:$false}"
Does anyone know what is wrong with this command? Thank you