Sycnex / Windows10Debloater

Script to remove Windows 10 bloatware.
MIT License
18.13k stars 2.04k forks source link

filthy language #49

Closed Blu3ish closed 6 years ago

Blu3ish commented 6 years ago

While testing the latest (sysprep) debloater : capture

dohlin commented 6 years ago

Add a '}' at line ~259 and it should fix this as far as I can tell. I had the same issue and this seemingly resolved it.

zachsaddress commented 6 years ago

Beginning, or end of line?

On Mon, Oct 1, 2018, 2:44 PM dohlin notifications@github.com wrote:

Add a '}' at line ~259 and it should fix this as far as I can tell. I had the same issue and this seemingly resolved it.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Sycnex/Windows10Debloater/issues/49#issuecomment-426018577, or mute the thread https://github.com/notifications/unsubscribe-auth/ApuyGA-owyHT3uuTBHwgK4faugRIle0yks5ugmKfgaJpZM4XCFd- .

dohlin commented 6 years ago

Shouldn't matter, it just needs to close the "FixWhitelistedApps" function as far as I can tell. Mine looks like this:

Function FixWhitelistedApps {

    Param([switch]$Debloat, [switch]$SysPrep)

        Write-Verbose -Message ('Starting Fix Whitelisted Apps')

    #Credit to abulgatz for the 4 lines of code
    Get-AppxPackage -allusers Microsoft.Paint3D | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
    Get-AppxPackage -allusers Microsoft.MSPaint | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
    Get-AppxPackage -allusers Microsoft.WindowsCalculator | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
    Get-AppxPackage -allusers Microsoft.WindowsStore | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
    Get-AppxPackage -allusers Microsoft.Windows.Photos | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
}
Blu3ish commented 6 years ago

I added a } and the problem disapeared indeed.

Sycnex commented 6 years ago

This is fixed in the latest commit.