Drop the use of modules

This commit is contained in:
Manuel Thalmann 2024-03-24 14:48:49 +01:00
parent c29a08919e
commit ba1d13d7ee

View file

@ -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)";