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
);
$null = New-Module {
$setupComponent = $config.SelectSingleNode(
"/ua:unattend/ua:settings[@pass='windowsPE']/ua:component[@name='Microsoft-Windows-Setup']",
$namespace);
@ -122,7 +121,6 @@ function Initialize-SetupConfig() {
Move-PartitionRange -1 -1 ($To + 1)
}
}
# Resize EFI partition to 1GB
$partitionCreations[1].SelectSingleNode("./ua:Size", $namespace).InnerText = "$(1024)";