Skip to content

Commit

Permalink
Merge pull request #52 from leechristensen/patch-1
Browse files Browse the repository at this point in the history
Added missing unattend locations
  • Loading branch information
HarmJ0y committed Sep 29, 2015
2 parents fe0535b + 0020597 commit e380d13
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 e380d13

Please sign in to comment.