Dword by default for modify_shitty_reg_value

This commit is contained in:
Yorick Barbanneau 2017-01-06 13:53:23 +01:00
parent b64d737a45
commit 5aca99c453

View file

@ -97,7 +97,7 @@ function modify_shitty_reg_value {
Set-ItemProperty -Path $path -Name $key -Value $value -Type $type -Force Set-ItemProperty -Path $path -Name $key -Value $value -Type $type -Force
} }
else { else {
Set-ItemProperty -Path $path -Name $key -Value $value -Force Set-ItemProperty -Path $path -Name $key -Value $value -Type Dword -Force
} }
} }
catch [System.Security.SecurityException]{ catch [System.Security.SecurityException]{
@ -183,23 +183,30 @@ foreach ($line in Get-Content "lib\services.txt") { disable_shitty_featureServic
foreach ($line in Get-Content "lib\apps.txt") { disable_shitty_modern_app $line } foreach ($line in Get-Content "lib\apps.txt") { disable_shitty_modern_app $line }
foreach ($line in Get-Content "lib\tasks.txt") {remove_shitty_tasks $line } foreach ($line in Get-Content "lib\tasks.txt") {remove_shitty_tasks $line }
#Advertiging...
modify_shitty_reg_value "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo" "Enabled" "0" "Dword"
#smartscreen filter
modify_shitty_reg_value "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost" "EnableWebContentEvaluation"
# AllowTelemetry # AllowTelemetry
modify_shitty_reg_value "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection" "AllowTelemetry" "0" "Dword" modify_shitty_reg_value "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection" "AllowTelemetry" "0"
# Windows Defender Delivery Optimization Download # Windows Defender Delivery Optimization Download
modify_shitty_reg_value "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" "DODownloadMode" "0" modify_shitty_reg_value "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" "DODownloadMode" "0"
# WifiSense Credential Share # WifiSense Credential Share
modify_shitty_reg_value "HKLM:\SOFTWARE\Microsoft\WcmSvc\wifinetworkmanager\features" "WiFiSenseCredShared" "0" "Dword" modify_shitty_reg_value "HKLM:\SOFTWARE\Microsoft\WcmSvc\wifinetworkmanager\features" "WiFiSenseCredShared" "0"
# WifiSense Open-ness # WifiSense Open-ness
modify_shitty_reg_value "HKLM:\SOFTWARE\Microsoft\WcmSvc\wifinetworkmanager\features" "WiFiSenseOpen" "0" "Dword" modify_shitty_reg_value "HKLM:\SOFTWARE\Microsoft\WcmSvc\wifinetworkmanager\features" "WiFiSenseOpen" "0"
# Windows Defender Spynet # Windows Defender Spynet
modify_shitty_reg_value "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" "SpynetReporting" "0" "Dword" modify_shitty_reg_value "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" "SpynetReporting" "0"
# Windows Defender Sample Submission # Windows Defender Sample Submission
modify_shitty_reg_value "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" "SubmitSamplesConsent" "2" "Dword" modify_shitty_reg_value "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" "SubmitSamplesConsent" "2"
# Disable Cortana # Disable Cortana
modify_shitty_reg_value "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search\" "AllowCortana" "0" "Dword" modify_shitty_reg_value "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search\" "AllowCortana" "0"