Drop the use of modules
This commit is contained in:
parent
c29a08919e
commit
ba1d13d7ee
1 changed files with 96 additions and 98 deletions
|
@ -8,7 +8,6 @@ function Initialize-SetupConfig() {
|
||||||
[System.Xml.XmlNamespaceManager] $namespace
|
[System.Xml.XmlNamespaceManager] $namespace
|
||||||
);
|
);
|
||||||
|
|
||||||
$null = New-Module {
|
|
||||||
$setupComponent = $config.SelectSingleNode(
|
$setupComponent = $config.SelectSingleNode(
|
||||||
"/ua:unattend/ua:settings[@pass='windowsPE']/ua:component[@name='Microsoft-Windows-Setup']",
|
"/ua:unattend/ua:settings[@pass='windowsPE']/ua:component[@name='Microsoft-Windows-Setup']",
|
||||||
$namespace);
|
$namespace);
|
||||||
|
@ -122,7 +121,6 @@ function Initialize-SetupConfig() {
|
||||||
|
|
||||||
Move-PartitionRange -1 -1 ($To + 1)
|
Move-PartitionRange -1 -1 ($To + 1)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
# Resize EFI partition to 1GB
|
# Resize EFI partition to 1GB
|
||||||
$partitionCreations[1].SelectSingleNode("./ua:Size", $namespace).InnerText = "$(1024)";
|
$partitionCreations[1].SelectSingleNode("./ua:Size", $namespace).InnerText = "$(1024)";
|
||||||
|
|
Loading…
Reference in a new issue