Skip to content

Commit

Permalink
Update Harden-Windows-Security.ps1
Browse files Browse the repository at this point in the history
Fixed the path to MSIXBundle
  • Loading branch information
HotCakeX committed Feb 7, 2025
1 parent 15c82d4 commit 99607fa
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Harden-Windows-Security.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,16 @@ Function AppControl {
}
# Download the MSIXBundle if user didn't provide any paths
else {
Write-Verbose -Message 'Downloading the latest AppControl Manager MSIXBundle file from GitHub'
$_Package = Join-Path -Path $WorkingDir -ChildPath 'AppControlManager.msixbundle'
# Write-Verbose -Message 'Downloading the latest AppControl Manager MSIXBundle file from GitHub'
Write-Verbose -Message 'Downloading the latest AppControl Manager MSIX file from GitHub'
# $_Package = Join-Path -Path $WorkingDir -ChildPath 'AppControlManager.msixbundle'
$_Package = Join-Path -Path $WorkingDir -ChildPath 'AppControlManager.msix'

# Download link for the latest version of AppControl manger is retrieved from this text file
[string]$MSIXBundleDownloadURL = Invoke-RestMethod -Uri 'https://raw.githubusercontent.com/HotCakeX/Harden-Windows-Security/refs/heads/main/AppControl%20Manager/MSIXBundleDownloadURL.txt'

Write-Verbose -Message 'Downloading the MSIXBundle from the GitHub releases' -Verbose
$null = Invoke-WebRequest -Uri $MSIXBundleDownloadURL -OutFile $MSIXPath
$null = Invoke-WebRequest -Uri $MSIXBundleDownloadURL -OutFile $_Package
}
Write-Verbose -Message 'Signing the App Control Manager package'

Expand Down

0 comments on commit 99607fa

Please sign in to comment.