Skip to content

Commit 55bbca5

Browse files
committed
Add Maximum version
1 parent 1e6e47a commit 55bbca5

13 files changed

+221
-73
lines changed

ci/New-Docs.ps1

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
$OutFile = [System.IO.Path]::Combine("docs/registry.md")
2+
$markdown = New-MDHeader -Text "Registry Settings" -Level 1
3+
$markdown += "`n"
4+
5+
foreach ($file in (Get-ChildItem -Path "*.json")) {
6+
7+
$json = Get-Content -Path $file.FullName | ConvertFrom-Json
8+
if ($Null -ne $json.Registry.Set) {
9+
$markdown += New-MDHeader -Text $file.Name -Level 2
10+
$markdown += "`n"
11+
$markdown += "Minimum build: $($json.MinimumBuild)`n"
12+
$markdown += "Maximum build: $($json.MaximumBuild)`n"
13+
if ($Null -ne $json.Registry.Type) {
14+
$markdown += "Type: $($json.Registry.Type)`n"
15+
}
16+
$markdown += "`n"
17+
$markdown += $json.Registry.Set | Select-Object -Property "path", "name", "value" | New-MDTable
18+
$markdown += "`n"
19+
}
20+
}
21+
22+
($markdown.TrimEnd("`n")) | Out-File -FilePath $OutFile -Force -Encoding "Utf8"

docs/registry.md

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
# Registry Settings
2+
3+
## Machine.All.json
4+
5+
Minimum build: 10.0.14393
6+
Maximum build: 10.0.99999
7+
Type: Direct
8+
9+
| path | name | value |
10+
| ------------------------------------------------------------------ | ---------------------------------- | ------ |
11+
| HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes | MS Shell Dlg | Tahoma |
12+
| HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes | MS Shell Dlg 2 | Tahoma |
13+
| HKLM:\Software\Microsoft\Windows\CurrentVersion\Explorer | DisableEdgeDesktopShortcutCreation | 1 |
14+
15+
## Machine.Client.json
16+
17+
Minimum build: 10.0.14393
18+
Maximum build: 10.0.99999
19+
| path | name | value |
20+
| -------------------------------------------------------- | ---------------------------------- | ----- |
21+
| HKLM:\Software\Microsoft\Windows\CurrentVersion\Explorer | DisableEdgeDesktopShortcutCreation | 1 |
22+
23+
## User-Windows10.All.json
24+
25+
Minimum build: 10.0.14393
26+
Maximum build: 10.0.19044
27+
Type: DefaultProfile
28+
29+
| path | name | value |
30+
| --------------------------------------------------------------- | --------------------- | ---------------------------------------------------------------- |
31+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Accent | AccentColor | 4289992518 |
32+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Accent | AccentPalette | 86CAFF005FB2F2001E91EA000063B10000427500002D4F000020380000CC6A00 |
33+
| HKCU:\Software\Microsoft\Windows\DWM | AccentColor | 4289815296 |
34+
| HKCU:\Software\Microsoft\Windows\DWM | ColorizationAfterglow | 3288359857 |
35+
| HKCU:\Software\Microsoft\Windows\DWM | ColorizationColor | 3288359857 |
36+
| HKCU:\Software\Microsoft\Windows\DWM | ColorPrevalence | 1 |
37+
38+
## User.All.json
39+
40+
Minimum build: 10.0.14393
41+
Maximum build: 10.0.99999
42+
Type: DefaultProfile
43+
44+
| path | name | value |
45+
| --------------------------------------------------------------------------------- | ----------------------------------- | ----- |
46+
| HKCU:\Software\Microsoft\TabletTip\1.7 | TipbandDesiredVisibility | 0 |
47+
| HKCU:\Software\Microsoft\Windows NT\CurrentVersion\Network\Persistent Connections | SaveConnections | No |
48+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\AdvertisingInfo | Enabled | 0 |
49+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\AppHost | EnableWebContentEvaluation | 1 |
50+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager | SystemPaneSuggestionsEnabled | 0 |
51+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced | LaunchTo | 1 |
52+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced | MMTaskbarGlomLevel | 1 |
53+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced | SeparateProcess | 1 |
54+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced | TaskbarGlomLevel | 1 |
55+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced | TaskbarDa | 0 |
56+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced | TaskbarMn | 0 |
57+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People | PeopleBand | 0 |
58+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\PenWorkspace | PenWorkspaceButtonDesiredVisibility | 0 |
59+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\Search | SearchboxTaskbarMode | 1 |
60+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize | EnableTransparency | 0 |
61+
62+
## User.Server.json
63+
64+
Minimum build: 10.0.14393
65+
Maximum build: 10.0.99999
66+
Type: DefaultProfile
67+
68+
| path | name | value |
69+
| ------------------------------------------------------------------ | ----------------------------- | ----- |
70+
| HKCU:\Software\Microsoft\ServerManager | DoNotOpenServerManagerAtLogon | 1 |
71+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize | EnableBlurBehind | 1 |
72+
73+
## User.Virtual.json
74+
75+
Minimum build: 10.0.14393
76+
Maximum build: 10.0.99999
77+
Type: DefaultProfile
78+
79+
| path | name | value |
80+
| ------------------------------------------------------------------------------------------------------------------- | ------------------------------- | -------------------------------- |
81+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize | EnableBlurBehind | 0 |
82+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer | ShellState | 240000003C2800000000000000000000 |
83+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced | IconsOnly | 1 |
84+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced | ListviewAlphaSelect | 0 |
85+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced | ListviewShadow | 0 |
86+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced | ShowCompColor | 1 |
87+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced | ShowInfoTip | 1 |
88+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced | TaskbarAnimations | 0 |
89+
| HKCU:\Software\Microsoft\Windows\DWM | EnableAeroPeek | 0 |
90+
| HKCU:\Software\Microsoft\Windows\DWM | AlwaysHibernateThumbnails | 0 |
91+
| HKCU:\Control Panel\Desktop | DragFullWindows | 0 |
92+
| HKCU:\Control Panel\Desktop | FontSmoothing | 2 |
93+
| HKCU:\Control Panel\Desktop | FontSmoothingType | 2 |
94+
| HKCU:\Control Panel\Desktop\WindowMetrics | MinAnimate | 0 |
95+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager | SubscribedContent-338393Enabled | 0 |
96+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager | SubscribedContent-353694Enabled | 0 |
97+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager | SubscribedContent-353696Enabled | 0 |
98+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager | SubscribedContent-338388Enabled | 0 |
99+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager | SubscribedContent-338389Enabled | 0 |
100+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager | SystemPaneSuggestionsEnabled | 0 |
101+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.Windows.Photos_8wekyb3d8bbwe | Disabled | 1 |
102+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.Windows.Photos_8wekyb3d8bbwe | DisabledByUser | 1 |
103+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.SkypeApp_kzf8qxf38zg5c | Disabled | 1 |
104+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.SkypeApp_kzf8qxf38zg5c | DisabledByUser | 1 |
105+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.YourPhone_8wekyb3d8bbwe | Disabled | 1 |
106+
| HKCU:\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications\Microsoft.YourPhone_8wekyb3d8bbwe | DisabledByUser | 1 |

mkdocs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,5 @@ nav:
124124
- User settings: profile.md
125125
- Customise: custom.md
126126
- Known issues: issues.md
127+
- Settings:
128+
- Registry: registry.md

src/Build.All.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"MinimumBuild": "10.0.19041",
3+
"MaximumBuild": "10.0.99999",
34
"Capabilities": {
45
"Remove": [
56
"Microsoft.Windows.WordPad~~~~0.0.1.0",

src/Install-Defaults.ps1

Lines changed: 38 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -507,53 +507,54 @@ try {
507507

508508
# Implement the settings only if the local build is greater or equal that what's specified in the JSON
509509
if ([System.Version]$Version -ge [System.Version]$Settings.MinimumBuild) {
510-
511-
# Implement each setting in the JSON
512-
switch ($Settings.Registry.Type) {
513-
"DefaultProfile" {
514-
$Results = Set-DefaultUserProfile -Setting $Settings.Registry.Set; break
515-
}
516-
"Direct" {
517-
$Results = Set-Registry -Setting $Settings.Registry.Set; break
518-
}
519-
default {
520-
$Results = ([PSCustomObject]@{Name = "Registry"; Value = "Skipped"; Status = 0 })
521-
Write-Verbose -Message "Skip registry."
510+
if ([System.Version]$Version -le [System.Version]$Settings.MaximumBuild) {
511+
# Implement each setting in the JSON
512+
switch ($Settings.Registry.Type) {
513+
"DefaultProfile" {
514+
$Results = Set-DefaultUserProfile -Setting $Settings.Registry.Set; break
515+
}
516+
"Direct" {
517+
$Results = Set-Registry -Setting $Settings.Registry.Set; break
518+
}
519+
default {
520+
$Results = ([PSCustomObject]@{Name = "Registry"; Value = "Skipped"; Status = 0 })
521+
Write-Verbose -Message "Skip registry."
522+
}
522523
}
523-
}
524-
Write-ToEventLog -EventLog $Project -Property "Registry" -Object $Results
525-
526-
switch ($Settings.StartMenu.Type) {
527-
"Server" {
528-
if ((Get-WindowsFeature -Name $Settings.StartMenu.Feature).InstallState -eq "Installed") {
529-
$Results = Copy-File -Path $Settings.StartMenu.Exists -Parent $WorkingPath
530-
Write-ToEventLog -EventLog $Project -Property "StartMenu" -Object $Results
524+
Write-ToEventLog -EventLog $Project -Property "Registry" -Object $Results
525+
526+
switch ($Settings.StartMenu.Type) {
527+
"Server" {
528+
if ((Get-WindowsFeature -Name $Settings.StartMenu.Feature).InstallState -eq "Installed") {
529+
$Results = Copy-File -Path $Settings.StartMenu.Exists -Parent $WorkingPath
530+
Write-ToEventLog -EventLog $Project -Property "StartMenu" -Object $Results
531+
}
532+
else {
533+
$Results = Copy-File -Path $Settings.StartMenu.NotExists -Parent $WorkingPath
534+
Write-ToEventLog -EventLog $Project -Property "StartMenu" -Object $Results
535+
}
531536
}
532-
else {
533-
$Results = Copy-File -Path $Settings.StartMenu.NotExists -Parent $WorkingPath
537+
"Client" {
538+
$Results = Copy-File -Path $Settings.StartMenu.$OSName -Parent $WorkingPath
534539
Write-ToEventLog -EventLog $Project -Property "StartMenu" -Object $Results
535540
}
536541
}
537-
"Client" {
538-
$Results = Copy-File -Path $Settings.StartMenu.$OSName -Parent $WorkingPath
539-
Write-ToEventLog -EventLog $Project -Property "StartMenu" -Object $Results
540-
}
541-
}
542542

543-
$Results = Copy-File -Path $Settings.Files.Copy -Parent $WorkingPath
544-
Write-ToEventLog -EventLog $Project -Property "Paths" -Object $Results
543+
$Results = Copy-File -Path $Settings.Files.Copy -Parent $WorkingPath
544+
Write-ToEventLog -EventLog $Project -Property "Paths" -Object $Results
545545

546-
$Results = Remove-Path -Path $Settings.Paths.Remove
547-
Write-ToEventLog -EventLog $Project -Property "Paths" -Object $Results
546+
$Results = Remove-Path -Path $Settings.Paths.Remove
547+
Write-ToEventLog -EventLog $Project -Property "Paths" -Object $Results
548548

549-
$Results = Remove-Feature -Feature $Settings.Features.Disable
550-
Write-ToEventLog -EventLog $Project -Property "Features" -Object $Results
549+
$Results = Remove-Feature -Feature $Settings.Features.Disable
550+
Write-ToEventLog -EventLog $Project -Property "Features" -Object $Results
551551

552-
$Results = Remove-Capability -Capability $Settings.Capabilities.Remove
553-
Write-ToEventLog -EventLog $Project -Property "Capabilities" -Object $Results
552+
$Results = Remove-Capability -Capability $Settings.Capabilities.Remove
553+
Write-ToEventLog -EventLog $Project -Property "Capabilities" -Object $Results
554554

555-
$Results = Remove-Package -Package $Settings.Packages.Remove
556-
Write-ToEventLog -EventLog $Project -Property "Packages" -Object $Results
555+
$Results = Remove-Package -Package $Settings.Packages.Remove
556+
Write-ToEventLog -EventLog $Project -Property "Packages" -Object $Results
557+
}
557558
}
558559
else {
559560
Write-ToEventLog -EventLog $Project -Property "General" -Object ([PSCustomObject]@{Name = $Config.FullName; Value = "Skipped"; Status = 0 })

src/Machine.All.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"MinimumBuild": "10.0.14393",
3+
"MaximumBuild": "10.0.99999",
34
"Registry": {
45
"Type": "Direct",
56
"Set": [

src/Machine.Client.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"MinimumBuild": "10.0.14393",
3+
"MaximumBuild": "10.0.99999",
34
"Registry": {
45
"Set": [
56
{

src/Machine.Server.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"MinimumBuild": "10.0.14393",
3+
"MaximumBuild": "10.0.99999",
34
"Services": {
45
"Feature": "RDS-RD-Server",
56
"Enable": [

src/User-Windows10.All.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"MinimumBuild": "10.0.14393",
3+
"MaximumBuild": "10.0.19044",
4+
"Registry": {
5+
"Type": "DefaultProfile",
6+
"Set": [
7+
{
8+
"path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Accent",
9+
"name": "AccentColor",
10+
"value": 4289992518,
11+
"type": "DWord"
12+
},
13+
{
14+
"path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Accent",
15+
"name": "AccentPalette",
16+
"value": "86CAFF005FB2F2001E91EA000063B10000427500002D4F000020380000CC6A00",
17+
"Type": "String"
18+
},
19+
{
20+
"path": "HKCU:\\Software\\Microsoft\\Windows\\DWM",
21+
"name": "AccentColor",
22+
"value": 4289815296,
23+
"type": "DWord"
24+
},
25+
{
26+
"path": "HKCU:\\Software\\Microsoft\\Windows\\DWM",
27+
"name": "ColorizationAfterglow",
28+
"value": 3288359857,
29+
"type": "DWord"
30+
},
31+
{
32+
"path": "HKCU:\\Software\\Microsoft\\Windows\\DWM",
33+
"name": "ColorizationColor",
34+
"value": 3288359857,
35+
"type": "DWord"
36+
},
37+
{
38+
"path": "HKCU:\\Software\\Microsoft\\Windows\\DWM",
39+
"name": "ColorPrevalence",
40+
"value": 1,
41+
"type": "DWord"
42+
}
43+
]
44+
}
45+
}

0 commit comments

Comments
 (0)