Dword by default for modify_shitty_reg_value
This commit is contained in:
parent
b64d737a45
commit
5aca99c453
1 changed files with 14 additions and 7 deletions
21
cleanW10.ps1
21
cleanW10.ps1
|
@ -97,7 +97,7 @@ function modify_shitty_reg_value {
|
|||
Set-ItemProperty -Path $path -Name $key -Value $value -Type $type -Force
|
||||
}
|
||||
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]{
|
||||
|
@ -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\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
|
||||
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
|
||||
modify_shitty_reg_value "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" "DODownloadMode" "0"
|
||||
|
||||
# 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
|
||||
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
|
||||
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
|
||||
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
|
||||
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"
|
||||
|
|
Reference in a new issue