feat(bloatware): keep Microsoft.Windows.Photos
All checks were successful
release / build-and-release (push) Successful in 38s
All checks were successful
release / build-and-release (push) Successful in 38s
Add Photos to the always-keep list (KeepPackages) like Calculator - the default image viewer should not be removed. It stays in the removal list but the keep-guard skips it and logs KEEP. Updates script header, CLAUDE.md DO-NOT, web spec table, descriptions.json and CHANGELOG. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
caaa917a00
commit
76b72e569e
5 changed files with 11 additions and 4 deletions
|
|
@ -8,7 +8,10 @@ Builds are continuous: every push to `main` produces a signed `xetup.exe` publis
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
_Nothing yet._
|
### Changed
|
||||||
|
- **Photos now kept** (01): `Microsoft.Windows.Photos` is added to the always-keep list
|
||||||
|
(`KeepPackages`), so the default image viewer is no longer removed - like Calculator. It stays
|
||||||
|
in the removal list but the keep-guard skips it and logs `KEEP Microsoft.Windows.Photos`.
|
||||||
|
|
||||||
## [0.9] - 2026-06-03
|
## [0.9] - 2026-06-03
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -200,6 +200,7 @@ git push "http://x9:${TOKEN}@localhost:3100/x9/xetup.git" main
|
||||||
|
|
||||||
- Do not use `$ErrorActionPreference = "Stop"` - scripts must survive partial failure
|
- Do not use `$ErrorActionPreference = "Stop"` - scripts must survive partial failure
|
||||||
- Do not remove Calculator (Microsoft.WindowsCalculator)
|
- Do not remove Calculator (Microsoft.WindowsCalculator)
|
||||||
|
- Do not remove Photos (Microsoft.Windows.Photos)
|
||||||
- Do not use ARM VM for testing
|
- Do not use ARM VM for testing
|
||||||
- Do not write scripts depending on specific username
|
- Do not write scripts depending on specific username
|
||||||
- Do not use hardcoded paths that do not exist on clean Windows
|
- Do not use hardcoded paths that do not exist on clean Windows
|
||||||
|
|
|
||||||
|
|
@ -5,11 +5,12 @@
|
||||||
.DESCRIPTION
|
.DESCRIPTION
|
||||||
Removes Microsoft-bundled apps and features not needed in a business MSP deployment.
|
Removes Microsoft-bundled apps and features not needed in a business MSP deployment.
|
||||||
Removal is done for all users (-AllUsers) and from the provisioning store so new
|
Removal is done for all users (-AllUsers) and from the provisioning store so new
|
||||||
users do not get them either. Calculator is intentionally kept.
|
users do not get them either. Calculator and Photos are intentionally kept.
|
||||||
|
|
||||||
.ITEMS
|
.ITEMS
|
||||||
appx-balicky-odstraneni-pro-vsechny-uziv: Uses Remove-AppxPackage -AllUsers and Remove-AppxProvisionedPackage. The provisioned removal prevents apps from reinstalling for new user profiles. Covers ~35 apps including Cortana, Copilot, Teams personal, Xbox, Skype, News, Weather, Maps.
|
appx-balicky-odstraneni-pro-vsechny-uziv: Uses Remove-AppxPackage -AllUsers and Remove-AppxProvisionedPackage. The provisioned removal prevents apps from reinstalling for new user profiles. Covers ~35 apps including Cortana, Copilot, Teams personal, Xbox, Skype, News, Weather, Maps.
|
||||||
zachovano-microsoft-windowscalculator: Calculator is explicitly excluded. Lightweight utility frequently used by technicians and end users. Removing it would require manual reinstall from Store.
|
zachovano-microsoft-windowscalculator: Calculator is explicitly excluded. Lightweight utility frequently used by technicians and end users. Removing it would require manual reinstall from Store.
|
||||||
|
zachovano-microsoft-windows-photos: Photos is explicitly excluded via KeepPackages. Default image viewer expected by end users; removing it leaves no built-in viewer and would require manual reinstall from Store.
|
||||||
windows-capabilities-fax-ie-openssh-wmp-: Removed via Remove-WindowsCapability: Fax & Scan, Internet Explorer mode, OpenSSH client, Windows Media Player (legacy), WordPad, Handwriting recognition, Steps Recorder, Math Input Panel, Quick Assist.
|
windows-capabilities-fax-ie-openssh-wmp-: Removed via Remove-WindowsCapability: Fax & Scan, Internet Explorer mode, OpenSSH client, Windows Media Player (legacy), WordPad, Handwriting recognition, Steps Recorder, Math Input Panel, Quick Assist.
|
||||||
windows-optional-features-ps-2-0-mediapl: Disabled via Disable-WindowsOptionalFeature: PowerShell 2.0 (security risk - allows unsigned script execution bypass on older hosts), MediaPlayback, Windows Recall (AI screenshot surveillance), Snipping Tool optional component.
|
windows-optional-features-ps-2-0-mediapl: Disabled via Disable-WindowsOptionalFeature: PowerShell 2.0 (security risk - allows unsigned script execution bypass on older hosts), MediaPlayback, Windows Recall (AI screenshot surveillance), Snipping Tool optional component.
|
||||||
feature-toggles: Three GUI feature flags gate removal. standardBloatware (default on) covers the bulk list. removeNewOutlook (default on) controls Microsoft.OutlookForWindows; classic Outlook from M365 is a Win32 app and is never touched. removeSnippingTool (default OFF) controls Snipping Tool across all three lists (ScreenSketch app + legacy capability + legacy feature) - kept by default as a common productivity tool, like Calculator.
|
feature-toggles: Three GUI feature flags gate removal. standardBloatware (default on) covers the bulk list. removeNewOutlook (default on) controls Microsoft.OutlookForWindows; classic Outlook from M365 is a Win32 app and is never touched. removeSnippingTool (default OFF) controls Snipping Tool across all three lists (ScreenSketch app + legacy capability + legacy feature) - kept by default as a common productivity tool, like Calculator.
|
||||||
|
|
@ -104,7 +105,7 @@ $AppxToRemove = @(
|
||||||
)
|
)
|
||||||
|
|
||||||
# Packages to always keep
|
# Packages to always keep
|
||||||
$KeepPackages = @("Microsoft.WindowsCalculator")
|
$KeepPackages = @("Microsoft.WindowsCalculator", "Microsoft.Windows.Photos")
|
||||||
if ($Config -and $Config.bloatware -and $Config.bloatware.keepPackages) {
|
if ($Config -and $Config.bloatware -and $Config.bloatware.keepPackages) {
|
||||||
$KeepPackages += $Config.bloatware.keepPackages
|
$KeepPackages += $Config.bloatware.keepPackages
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,10 +13,11 @@
|
||||||
},
|
},
|
||||||
"01-bloatware": {
|
"01-bloatware": {
|
||||||
"synopsis": "Removes pre-installed bloatware: AppX packages, Capabilities, and Optional Features.",
|
"synopsis": "Removes pre-installed bloatware: AppX packages, Capabilities, and Optional Features.",
|
||||||
"description": "Removes Microsoft-bundled apps and features not needed in a business MSP deployment.\nRemoval is done for all users (-AllUsers) and from the provisioning store so new\nusers do not get them either. Calculator is intentionally kept.",
|
"description": "Removes Microsoft-bundled apps and features not needed in a business MSP deployment.\nRemoval is done for all users (-AllUsers) and from the provisioning store so new\nusers do not get them either. Calculator and Photos are intentionally kept.",
|
||||||
"items": {
|
"items": {
|
||||||
"appx-balicky-odstraneni-pro-vsechny-uziv": "Uses Remove-AppxPackage -AllUsers and Remove-AppxProvisionedPackage. The provisioned removal prevents apps from reinstalling for new user profiles. Covers ~35 apps including Cortana, Copilot, Teams personal, Xbox, Skype, News, Weather, Maps.",
|
"appx-balicky-odstraneni-pro-vsechny-uziv": "Uses Remove-AppxPackage -AllUsers and Remove-AppxProvisionedPackage. The provisioned removal prevents apps from reinstalling for new user profiles. Covers ~35 apps including Cortana, Copilot, Teams personal, Xbox, Skype, News, Weather, Maps.",
|
||||||
"zachovano-microsoft-windowscalculator": "Calculator is explicitly excluded. Lightweight utility frequently used by technicians and end users. Removing it would require manual reinstall from Store.",
|
"zachovano-microsoft-windowscalculator": "Calculator is explicitly excluded. Lightweight utility frequently used by technicians and end users. Removing it would require manual reinstall from Store.",
|
||||||
|
"zachovano-microsoft-windows-photos": "Photos is explicitly excluded via KeepPackages. Default image viewer expected by end users; removing it leaves no built-in viewer and would require manual reinstall from Store.",
|
||||||
"windows-capabilities-fax-ie-openssh-wmp-": "Removed via Remove-WindowsCapability: Fax & Scan, Internet Explorer mode, OpenSSH client, Windows Media Player (legacy), WordPad, Handwriting recognition, Steps Recorder, Math Input Panel, Quick Assist.",
|
"windows-capabilities-fax-ie-openssh-wmp-": "Removed via Remove-WindowsCapability: Fax & Scan, Internet Explorer mode, OpenSSH client, Windows Media Player (legacy), WordPad, Handwriting recognition, Steps Recorder, Math Input Panel, Quick Assist.",
|
||||||
"windows-optional-features-ps-2-0-mediapl": "Disabled via Disable-WindowsOptionalFeature: PowerShell 2.0 (security risk - allows unsigned script execution bypass on older hosts), MediaPlayback, Windows Recall (AI screenshot surveillance), Snipping Tool optional component.",
|
"windows-optional-features-ps-2-0-mediapl": "Disabled via Disable-WindowsOptionalFeature: PowerShell 2.0 (security risk - allows unsigned script execution bypass on older hosts), MediaPlayback, Windows Recall (AI screenshot surveillance), Snipping Tool optional component.",
|
||||||
"feature-toggles": "Three GUI feature flags gate removal. standardBloatware (default on) covers the bulk list. removeNewOutlook (default on) controls Microsoft.OutlookForWindows; classic Outlook from M365 is a Win32 app and is never touched. removeSnippingTool (default OFF) controls Snipping Tool across all three lists (ScreenSketch app + legacy capability + legacy feature) - kept by default as a common productivity tool, like Calculator."
|
"feature-toggles": "Three GUI feature flags gate removal. standardBloatware (default on) covers the bulk list. removeNewOutlook (default on) controls Microsoft.OutlookForWindows; classic Outlook from M365 is a Win32 app and is never touched. removeSnippingTool (default OFF) controls Snipping Tool across all three lists (ScreenSketch app + legacy capability + legacy feature) - kept by default as a common productivity tool, like Calculator."
|
||||||
|
|
|
||||||
|
|
@ -578,6 +578,7 @@
|
||||||
<table class="items">
|
<table class="items">
|
||||||
<tr class="flag-done"><td>AppX balicky – odstraneni pro vsechny uzivatele a provisioned</td><td>Remove-AppxPackage -AllUsers + Remove-AppxProvisionedPackage</td></tr>
|
<tr class="flag-done"><td>AppX balicky – odstraneni pro vsechny uzivatele a provisioned</td><td>Remove-AppxPackage -AllUsers + Remove-AppxProvisionedPackage</td></tr>
|
||||||
<tr class="flag-done"><td>Zachovano: Microsoft.WindowsCalculator</td><td>Zamerny vyjimek</td></tr>
|
<tr class="flag-done"><td>Zachovano: Microsoft.WindowsCalculator</td><td>Zamerny vyjimek</td></tr>
|
||||||
|
<tr class="flag-done"><td>Zachovano: Microsoft.Windows.Photos</td><td>Zamerny vyjimek (vychozi prohlizec obrazku)</td></tr>
|
||||||
<tr class="flag-done"><td>Windows Capabilities (Fax, IE, OpenSSH, WMP, WordPad, …)</td><td>Remove-WindowsCapability</td></tr>
|
<tr class="flag-done"><td>Windows Capabilities (Fax, IE, OpenSSH, WMP, WordPad, …)</td><td>Remove-WindowsCapability</td></tr>
|
||||||
<tr class="flag-done"><td>Windows Optional Features (PS 2.0, MediaPlayback, Recall, …)</td><td>Disable-WindowsOptionalFeature</td></tr>
|
<tr class="flag-done"><td>Windows Optional Features (PS 2.0, MediaPlayback, Recall, …)</td><td>Disable-WindowsOptionalFeature</td></tr>
|
||||||
<tr class="flag-done"><td>GUI prepinace: standardBloatware, removeNewOutlook, removeSnippingTool</td><td>Kazdy krok lze v GUI samostatne zaskrtnout/odskrtnout</td></tr>
|
<tr class="flag-done"><td>GUI prepinace: standardBloatware, removeNewOutlook, removeSnippingTool</td><td>Kazdy krok lze v GUI samostatne zaskrtnout/odskrtnout</td></tr>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue