Skip to content

Commit

Permalink
Added missing unattend locations
Browse files Browse the repository at this point in the history
  • Loading branch information
leechristensen committed Sep 17, 2015
1 parent fe0535b commit 0020597
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion PowerUp/PowerUp.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1571,9 +1571,14 @@ function Get-UnattendedInstallFiles {
$ErrorActionPreference = "SilentlyContinue"

$SearchLocations = @( "c:\sysprep\sysprep.xml",
"c:\sysprep\sysprep.inf",
"c:\sysprep.inf",
(join-path $env:windir "\Panther\Unattended.xml"),
(join-path $env:windir "\Panther\Unattend\Unattended.xml") )
(join-path $env:windir "\Panther\Unattend\Unattended.xml"),
(join-path $env:windir "\Panther\Unattend.xml"),
(join-path $env:windir "\Panther\Unattend\Unattend.xml"),
(join-path $env:windir "\System32\Sysprep\unattend.xml"),
(join-path $env:windir "\System32\Sysprep\Panther\unattend.xml"))

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

0 comments on commit 0020597

Please # to comment.