Browse Source

GPT 分区时不创建 MSR 分区

main
dsx42 3 years ago
parent
commit
6737539e09
  1. 24
      UnattendTool.ps1

24
UnattendTool.ps1

@ -534,19 +534,19 @@ function ShowCreatePartition { @@ -534,19 +534,19 @@ function ShowCreatePartition {
'Extend' = $false;
'IsHidden' = $true;
'IsBoot' = $false
};
'2' = @{
'Order' = 2;
'Size' = 128;
'Type' = 'MSR';
'TypeName' = '微软保留分区';
'FileSystem' = '';
'Extend' = $false;
'IsHidden' = $true;
'IsBoot' = $false
}
}
$PartitionNumber = 2
#'2' = @{
# 'Order' = 2;
# 'Size' = 128;
# 'Type' = 'MSR';
# 'TypeName' = '微软保留分区';
# 'FileSystem' = '';
# 'Extend' = $false;
# 'IsHidden' = $true;
# 'IsBoot' = $false
#}
}
$PartitionNumber = 1
Write-Host -Object '==============='
Write-Host -Object '创建新 GPT 分区'
Write-Host -Object '==============='

Loading…
Cancel
Save