Skip to content

Commit e380d13

Browse files
committed
Merge pull request #52 from leechristensen/patch-1
Added missing unattend locations
2 parents fe0535b + 0020597 commit e380d13

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

PowerUp/PowerUp.ps1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1571,9 +1571,14 @@ function Get-UnattendedInstallFiles {
15711571
$ErrorActionPreference = "SilentlyContinue"
15721572

15731573
$SearchLocations = @( "c:\sysprep\sysprep.xml",
1574+
"c:\sysprep\sysprep.inf",
15741575
"c:\sysprep.inf",
15751576
(join-path $env:windir "\Panther\Unattended.xml"),
1576-
(join-path $env:windir "\Panther\Unattend\Unattended.xml") )
1577+
(join-path $env:windir "\Panther\Unattend\Unattended.xml"),
1578+
(join-path $env:windir "\Panther\Unattend.xml"),
1579+
(join-path $env:windir "\Panther\Unattend\Unattend.xml"),
1580+
(join-path $env:windir "\System32\Sysprep\unattend.xml"),
1581+
(join-path $env:windir "\System32\Sysprep\Panther\unattend.xml"))
15771582

15781583
# test the existence of each path and return anything found
15791584
$SearchLocations | where { Test-Path $_ }

0 commit comments

Comments
 (0)