Skip to content

Commit 94aae9a

Browse files
committed
February 2025 update
See the change log for details.
1 parent 42eafa6 commit 94aae9a

File tree

6 files changed

+72
-66
lines changed

6 files changed

+72
-66
lines changed

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"cSpell.words": [
3+
"HKCU"
4+
]
5+
}

Apps/Remove AppX packages.ps1

Lines changed: 53 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -21,59 +21,60 @@
2121
Import-Module -Name Appx -ErrorAction "Stop"
2222

2323
$applist = @(
24-
"Microsoft.549981C3F5F10", # Cortana (2nd-Gen)
25-
"Microsoft.3DBuilder", # 3D Builder
26-
"Microsoft.BingWeather", # Weather
27-
#"Microsoft.DesktopAppInstaller", # App Installer and WinGet
28-
"Microsoft.GetHelp", # Get Help
29-
"Microsoft.Getstarted", # Tips, formerly Get Started
30-
"Microsoft.HEIFImageExtension", # HEIF Image Extensions
31-
"Microsoft.HEVCVideoExtension", # HEVC Video Extensions
32-
"Microsoft.Messaging", # Messaging
33-
"Microsoft.Microsoft3DViewer", # 3D Viewer (formerly Mixed Reality Viewer, View 3D)
34-
"Microsoft.MicrosoftOfficeHub", # Office
35-
"Microsoft.MicrosoftSolitaireCollection", # Solitaire Collection
36-
"Microsoft.MicrosoftStickyNotes", # Sticky Notes
37-
"Microsoft.MixedReality.Portal", # Mixed Reality Portal
38-
"Microsoft.MSPaint", # Paint 3D
39-
"Microsoft.Office.OneNote", # OneNote (the pathetic remake, not the original)
40-
"Microsoft.OneConnect", # Mobile Plans, formerly Paid Wi-Fi & Cellular
24+
"Microsoft.549981C3F5F10", # "Cortana" (2nd-Gen)
25+
"Microsoft.3DBuilder", # "3D Builder"
26+
"Microsoft.BingWeather", # "Weather"
27+
#"Microsoft.DesktopAppInstaller", # "App Installer" and "WinGet"
28+
"Microsoft.GetHelp", # "Get Help"
29+
"Microsoft.Getstarted", # "Tips" (formerly "Get Started")
30+
"Microsoft.HEIFImageExtension", # "HEIF Image Extensions"
31+
"Microsoft.HEVCVideoExtension", # "HEVC Video Extensions"
32+
"Microsoft.Messaging", # "Messaging"
33+
"Microsoft.Microsoft3DViewer", # "3D Viewer" (formerly "Mixed Reality Viewer", "View 3D")
34+
"Microsoft.MicrosoftOfficeHub", # "Office"
35+
"Microsoft.MicrosoftSolitaireCollection", # "Solitaire Collection"
36+
"Microsoft.MicrosoftStickyNotes", # "Sticky Notes"
37+
"Microsoft.MixedReality.Portal", # "Mixed Reality Portal"
38+
"Microsoft.MSPaint", # "Paint 3D"
39+
"Microsoft.Office.OneNote", # "OneNote" (the pathetic remake, not the original)
40+
"Microsoft.OneConnect", # "Mobile Plans" (formerly "Paid Wi-Fi & Cellular")
41+
"Microsoft.OutlookForWindows", # "Outlook (new)"
4142
"Microsoft.Outlook.DesktopIntegrationServices", # ???
42-
"Microsoft.People", # People
43-
"Microsoft.Print3D", # Print 3D
44-
"Windows.Print3D", # Print 3D backend
45-
"Microsoft.ScreenSketch", # Snip & Sketch
46-
"Microsoft.SkypeApp", # Skype
47-
"Microsoft.StorePurchaseApp", # Store Purchase App
48-
"Microsoft.VP9VideoExtensions", # VP9 Video Extensions
49-
"Microsoft.Wallet", # Pay
50-
"Microsoft.WebMediaExtensions", # Web Media Extensions
51-
"Microsoft.Windows.Photos", # Photos
52-
"Microsoft.WindowsAlarms", # Clock, formerly Alarms & Clock
53-
"Microsoft.WindowsCalculator", # Calculator
54-
"Microsoft.WindowsCamera", # Camera
55-
"microsoft.windowscommunicationsapps", # Mail and Calendar
56-
"Microsoft.WindowsFeedbackHub", # Feedback Hub
57-
"Microsoft.WindowsMaps", # Maps
58-
"Microsoft.WindowsSoundRecorder", # Voice Recorder
59-
"Microsoft.Xbox.TCUI", # Xbox Live in-game experience
60-
"Microsoft.XboxApp", # Xbox Console Companion (formerly Xbox)
61-
"Microsoft.XboxGameOverlay", # Xbox Game Bar Plug-in
62-
"Microsoft.XboxGamingOverlay", # Xbox Game Bar
63-
"Microsoft.XboxIdentityProvider", # Xbox Identity Provider
64-
"Microsoft.XboxSpeechToTextOverlay", # Xbox Captioning
65-
"Microsoft.YourPhone", # Phone Link, formerly Your Phone
66-
"Microsoft.ZuneMusic", # Media Player, formerly Groove
67-
"Microsoft.ZuneVideo", # Movies & TV
68-
"Windows.ContactSupport", # Contact Support
69-
"ActiproSoftwareLLC.562882FEEB491", # Code Writer
70-
"46928bounde.EclipseManager", # Eclipse Manager
71-
"PandoraMediaInc.29680B314EFC2", # Pandora
72-
"AdobeSystemsIncorporated.AdobePhotoshopExpress", # Adobe Photoshop Express
73-
"D5EA27B7.Duolingo-LearnLanguagesforFree", # Duolingo
74-
"Microsoft.NetworkSpeedTest", # Network Speed Test
75-
"Microsoft.BingNews", # Bing News
76-
"Microsoft.Office.Sway" # Office Sway
43+
"Microsoft.People", # "People"
44+
"Microsoft.Print3D", # "Print 3D"
45+
"Windows.Print3D", # "Print 3D backend"
46+
"Microsoft.ScreenSketch", # "Snip & Sketch"
47+
"Microsoft.SkypeApp", # "Skype"
48+
"Microsoft.StorePurchaseApp", # "Store Purchase App"
49+
"Microsoft.VP9VideoExtensions", # "VP9 Video Extensions"
50+
"Microsoft.Wallet", # "Pay"
51+
"Microsoft.WebMediaExtensions", # "Web Media Extensions"
52+
"Microsoft.Windows.Photos", # "Photos"
53+
"Microsoft.WindowsAlarms", # "Clock" (formerly "Alarms & Clock")
54+
"Microsoft.WindowsCalculator", # "Calculator"
55+
"Microsoft.WindowsCamera", # "Camera"
56+
"microsoft.windowscommunicationsapps", # "Mail and Calendar"
57+
"Microsoft.WindowsFeedbackHub", # "Feedback Hub"
58+
"Microsoft.WindowsMaps", # "Maps"
59+
"Microsoft.WindowsSoundRecorder", # "Voice Recorder"
60+
"Microsoft.Xbox.TCUI", # "Xbox Live in-game experience"
61+
"Microsoft.XboxApp", # "Xbox Console Companion" (formerly "Xbox")
62+
"Microsoft.XboxGameOverlay", # "Xbox Game Bar Plug-in"
63+
"Microsoft.XboxGamingOverlay", # "Xbox Game Bar"
64+
"Microsoft.XboxIdentityProvider", # "Xbox Identity Provider"
65+
"Microsoft.XboxSpeechToTextOverlay", # "Xbox Captioning"
66+
"Microsoft.YourPhone", # "Phone Link" (formerly "Your Phone")
67+
"Microsoft.ZuneMusic", # "Media Player" (formerly "Groove")
68+
"Microsoft.ZuneVideo", # "Movies & TV"
69+
"Windows.ContactSupport", # "Contact Support"
70+
"ActiproSoftwareLLC.562882FEEB491", # "Code Writer"
71+
"46928bounde.EclipseManager", # "Eclipse Manager"
72+
"PandoraMediaInc.29680B314EFC2", # "Pandora"
73+
"AdobeSystemsIncorporated.AdobePhotoshopExpress", # "Adobe Photoshop Express"
74+
"D5EA27B7.Duolingo-LearnLanguagesforFree", # "Duolingo"
75+
"Microsoft.NetworkSpeedTest", # "Network Speed Test"
76+
"Microsoft.BingNews", # "Bing News"
77+
"Microsoft.Office.Sway" # "Office Sway"
7778
)
7879

7980
foreach ($app in $applist) {

Changelog.markdown

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Change log
22

3+
## February
4+
5+
Changed:
6+
7+
- `Apps\Remove AppX packages.ps1`: Added "Outlook (new)" to list; minor superficial changes
8+
- `Shell\Wallpaper\Find current wallpaper (Windows 7).ps1`: Fixed the version-checking code
9+
- `Shell\Wallpaper\Find current wallpaper.ps1`: Fixed the version-checking code
10+
311
## January 2025
412

513
### New

Code snippets/PS1 template.ps1

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,4 @@ using namespace System.Management.Automation
2121
[CmdletBinding()]
2222
param()
2323

24-
function PublicStaticVoidMain {
25-
# No [CmdletBinding()] or param() allowed here!
26-
# Define parameter is in the main param() block above.
27-
28-
# Your code goes here.
29-
30-
}
31-
32-
PublicStaticVoidMain @args
24+
# Your code goes here.

Shell/Wallpaper/Find current wallpaper (Windows 7).ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ function PublicStaticVoidMain {
5151
$ErrorActionPreference = 'Continue'
5252

5353
try {
54-
# Check Windows verison
55-
if ([Environment]::OSVersion.Version -ne [Version]"6.1") {
54+
# Check Windows version
55+
if ([Environment]::OSVersion.Version.Build -notin (7600, 7601, 8400)) {
5656
Write-ErrorMessage "This script only supports Windows 7 or Windows Server 2008 R2. (They identify themselves as Windows NT 6.1.) You seem to be running:`r`r$([Environment]::OSVersion.VersionString)"
5757
break
5858
}

Shell/Wallpaper/Find current wallpaper.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ function PublicStaticVoidMain {
5858
$ErrorActionPreference = 'Continue'
5959

6060
try {
61-
# Check Windows verison
62-
If ([Environment]::OSVersion.Version -lt [Version]"6.2") {
61+
# Check Windows version
62+
If ([Environment]::OSVersion.Version.Build -lt 9200) {
6363
Write-ErrorMessage "This script only supports Windows 8, 10, and 11, as well as their Windows Server siblings. (They identify themselves as Windows NT 6.2, 6.3 or 10.0.) You seem to be running:`r`r$([Environment]::OSVersion.VersionString)"
6464
break
6565
}
@@ -68,7 +68,7 @@ function PublicStaticVoidMain {
6868
[UnicodeEncoding]$UnicodeObject = [UnicodeEncoding]::new()
6969

7070
# Read and decode
71-
[HashSet[String]]$PathList = [HashSet[String]]::new()
71+
[HashSet[String]]$PathList = New-Object -TypeName 'HashSet[String]' -ArgumentList ([StringComparer]::CurrentCultureIgnoreCase)
7272
$RegKey = Get-Item -LiteralPath $RegKeyPath -ErrorAction 'Stop'
7373
$RegValueList = $RegKey.Property -match $RegValue
7474
$RegValueList | ForEach-Object {

0 commit comments

Comments
 (0)