Установите последнюю версию PowerShell для новых функций и улучшения! https://aka.ms/PSWindows PS C:\Windows\system32> $n = 1 PS C:\Windows\system32> Clear-Disk $n -RemoveData -RemoveOEM -Confirm:$false PS C:\Windows\system32> Initialize-Disk $n -PartitionStyle GPT
Initialize-Disk : The disk has already been initialized.
Activity ID: {a1d04b40-0c24-401c-9c3b-038e53710763}
строка:1 знак:1
+ Initialize-Disk $n -PartitionStyle GPT
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (StorageWMI:ROOT/Microsoft/Windows/Storage/MSFT_Disk) [Initialize-Disk], C
imException
+ FullyQualifiedErrorId : StorageWMI 41001,Initialize-Disk
PS C:\Windows\system32> $p = New-Partition $n -UseMaximumSize -AssignDriveLetter
PS C:\Windows\system32> Format-Volume $p -FileSystem FAT32 -NewFileSystemLabel WIN11 -Confirm:$false
Format-Volume : Не удается обработать преобразование аргументов для параметра "DriveLetter". Не удается преобразовать з
начение "MSFT_Partition (ObjectId = "{1}\\BUK-19-310\root/Microsoft/Windows/...)" типа "Microsoft.Management.Infrastruc
ture.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_Partition" в тип "System.Char[]".
строка:1 знак:15
+ Format-Volume $p -FileSystem FAT32 -NewFileSystemLabel WIN11 -Confirm ...
+ ~~
+ CategoryInfo : InvalidData: (:) [Format-Volume], ParameterBindingArgumentTransformationException
+ FullyQualifiedErrorId : ParameterArgumentTransformationError,Format-Volume
PS C:\Windows\system32> & "C:\Users\BUK-2\Downloads\mct.exe"