Skip to content

Commit

Permalink
v4.15.3
Browse files Browse the repository at this point in the history
- 24h2 compatibility
  • Loading branch information
caglaryalcin committed Oct 7, 2024
1 parent 6bbbf71 commit 89f3927
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions set.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,20 @@ Function SystemSettings {
DisableGallery

Function ExplorerView {
# Set the separator setting in explorer
param (
[byte[]]$newColInfoValue = @(
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xFD, 0xDF, 0xDF, 0xFD, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x04, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x30, 0xF1, 0x25, 0xB7, 0xEF, 0x47, 0x1A, 0x10,
0xA5, 0xF1, 0x02, 0x60, 0x8C, 0x9E, 0xEB, 0xAC, 0x0A, 0x00, 0x00, 0x00, 0x17, 0x01, 0x00, 0x00,
0xB4, 0x74, 0xDB, 0xF7, 0x87, 0x42, 0x03, 0x41, 0xAF, 0xBA, 0xF1, 0xB1, 0x3D, 0xCD, 0x75, 0xCF,
0x64, 0x00, 0x00, 0x00, 0xA0, 0x00, 0x00, 0x00, 0x30, 0xF1, 0x25, 0xB7, 0xEF, 0x47, 0x1A, 0x10,
0xA5, 0xF1, 0x02, 0x60, 0x8C, 0x9E, 0xEB, 0xAC, 0x04, 0x00, 0x00, 0x00, 0x78, 0x00, 0x00, 0x00,
0x30, 0xF1, 0x25, 0xB7, 0xEF, 0x47, 0x1A, 0x10, 0xA5, 0xF1, 0x02, 0x60, 0x8C, 0x9E, 0xEB, 0xAC,
0x0C, 0x00, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00
)
)
Write-Host `n"Do you want to all folder views in explorer to be selected as " -NoNewline
Write-Host "details" -ForegroundColor Red -BackgroundColor Black -NoNewline
Write-Host " and set to separate?" -NoNewline
Expand All @@ -485,9 +499,9 @@ Function SystemSettings {
foreach ($bag in $bags) {

# Exclude the "1" bag (This PC)
if ($bag.PSChildName -eq "1") {
if ($bag.PSChildName -eq "1" -or $bag.PSChildName -eq "4") {
continue
}
}

$shellPath = Join-Path $bag.PSPath "Shell"

Expand All @@ -506,21 +520,6 @@ Function SystemSettings {
}
}

# Set the separator setting in explorer
param (
[byte[]]$newColInfoValue = @(
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xFD, 0xDF, 0xDF, 0xFD, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x04, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x30, 0xF1, 0x25, 0xB7, 0xEF, 0x47, 0x1A, 0x10,
0xA5, 0xF1, 0x02, 0x60, 0x8C, 0x9E, 0xEB, 0xAC, 0x0A, 0x00, 0x00, 0x00, 0x17, 0x01, 0x00, 0x00,
0xB4, 0x74, 0xDB, 0xF7, 0x87, 0x42, 0x03, 0x41, 0xAF, 0xBA, 0xF1, 0xB1, 0x3D, 0xCD, 0x75, 0xCF,
0x64, 0x00, 0x00, 0x00, 0xA0, 0x00, 0x00, 0x00, 0x30, 0xF1, 0x25, 0xB7, 0xEF, 0x47, 0x1A, 0x10,
0xA5, 0xF1, 0x02, 0x60, 0x8C, 0x9E, 0xEB, 0xAC, 0x04, 0x00, 0x00, 0x00, 0x78, 0x00, 0x00, 0x00,
0x30, 0xF1, 0x25, 0xB7, 0xEF, 0x47, 0x1A, 0x10, 0xA5, 0xF1, 0x02, 0x60, 0x8C, 0x9E, 0xEB, 0xAC,
0x0C, 0x00, 0x00, 0x00, 0x50, 0x00, 0x00, 0x00
)
)

$bagsPath = "HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags"

Get-ChildItem -Path $bagsPath -Recurse -ErrorAction SilentlyContinue | ForEach-Object {
Expand Down

0 comments on commit 89f3927

Please sign in to comment.