4 Commits
3.4 ... 3.5

Author SHA1 Message Date
Disassembler
95c66ecf21 v3.5, 2018-12-23
- Fix "DisableUpdateDriver" to not block driver installation entirely (thx Nick for pointing this out)
 - Fix "HideShortcutArrow" to not show black squares over the icons (thx @Ozgood for helping me debug)
2018-12-23 17:09:31 +01:00
Disassembler
6ce0765a03 Update "HideShortcutArrow" to use RGBA icon, closes for #186 2018-12-22 14:22:34 +01:00
Disassembler
12c2c533d5 Revert "Update "DisableUpdateDriver" to add one more GPO, closes #178 (thx @kukubau)"
This reverts commit daa5da122e.
2018-12-21 09:30:00 +01:00
Disassembler
8c9053cabc Update "HideShortcutArrow" to restart explorer process, tryfix for #186 2018-12-19 22:53:27 +01:00
3 changed files with 4 additions and 14 deletions

View File

@@ -1,7 +1,7 @@
##########
# Win 10 / Server 2016 / Server 2019 Initial Setup Script - Default preset
# Author: Disassembler <disassembler@dasm.cz>
# Version: v3.4, 2018-12-19
# Version: v3.5, 2018-12-23
# Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
##########

View File

@@ -1,7 +1,7 @@
##########
# Win 10 / Server 2016 / Server 2019 Initial Setup Script - Main execution loop
# Author: Disassembler <disassembler@dasm.cz>
# Version: v3.4, 2018-12-19
# Version: v3.5, 2018-12-23
# Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
##########

View File

@@ -1,7 +1,7 @@
##########
# Win 10 / Server 2016 / Server 2019 Initial Setup Script - Tweak library
# Author: Disassembler <disassembler@dasm.cz>
# Version: v3.4, 2018-12-19
# Version: v3.5, 2018-12-23
# Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
##########
@@ -876,10 +876,6 @@ Function DisableUpdateDriver {
New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Device Metadata" -Force | Out-Null
}
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Device Metadata" -Name "PreventDeviceMetadataFromNetwork" -Type DWord -Value 1
If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions")) {
New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions" -Force | Out-Null
}
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions" -Name "DenyUnspecified" -Type DWord -Value 1
If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching")) {
New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Force | Out-Null
}
@@ -896,7 +892,6 @@ Function DisableUpdateDriver {
Function EnableUpdateDriver {
Write-Output "Enabling driver offering through Windows Update..."
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Device Metadata" -Name "PreventDeviceMetadataFromNetwork" -ErrorAction SilentlyContinue
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions" -Name "DenyUnspecified" -ErrorAction SilentlyContinue
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DontPromptForWindowsUpdate" -ErrorAction SilentlyContinue
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DontSearchWindowsUpdate" -ErrorAction SilentlyContinue
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DriverUpdateWizardWuSearchEnabled" -ErrorAction SilentlyContinue
@@ -1203,7 +1198,6 @@ Function EnableAutoRebootOnCrash {
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\CrashControl" -Name "AutoReboot" -Type DWord -Value 1
}
##########
#endregion Service Tweaks
##########
@@ -1558,17 +1552,13 @@ Function HideShortcutArrow {
If (!(Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons")) {
New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" | Out-Null
}
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" -Name "29" -Type String -Value "%windir%\System32\shell32.dll,-50"
# Clean icon cache to prevent black squares showing in place of arrows
Remove-Item -Path "$env:LOCALAPPDATA\Microsoft\Windows\Explorer\iconcache*" -Force -ErrorAction SilentlyContinue
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" -Name "29" -Type String -Value "%SystemRoot%\System32\imageres.dll,-1015"
}
# Show shortcut icon arrow
Function ShowShortcutArrow {
Write-Output "Showing shortcut icon arrow..."
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" -Name "29" -ErrorAction SilentlyContinue
# Clean icon cache
Remove-Item -Path "$env:LOCALAPPDATA\Microsoft\Windows\Explorer\iconcache*" -Force -ErrorAction SilentlyContinue
}
# Adjusts visual effects for performance - Disables animations, transparency etc. but leaves font smoothing and miniatures enabled