|
|
@ -103,10 +103,13 @@ Takeown-Registry("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Spynet" |
|
|
|
Set-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows Defender\Spynet" "SpyNetReporting" 0 # write-protected even after takeown ?! |
|
|
|
Set-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows Defender\Spynet" "SubmitSamplesConsent" 0 |
|
|
|
|
|
|
|
Write-Output "Do not share wifi networks" |
|
|
|
$user = New-Object System.Security.Principal.NTAccount($env:UserName) |
|
|
|
$sid = $user.Translate([System.Security.Principal.SecurityIdentifier]).value |
|
|
|
force-mkdir ("HKLM:\SOFTWARE\Microsoft\WcmSvc\wifinetworkmanager\features\" + $sid) |
|
|
|
Set-ItemProperty ("HKLM:\SOFTWARE\Microsoft\WcmSvc\wifinetworkmanager\features\" + $sid) "FeatureStates" 0x33c |
|
|
|
Set-ItemProperty "HKLM:\SOFTWARE\Microsoft\WcmSvc\wifinetworkmanager\features" "WiFiSenseCredShared" 0 |
|
|
|
Set-ItemProperty "HKLM:\SOFTWARE\Microsoft\WcmSvc\wifinetworkmanager\features" "WiFiSenseOpen" 0 |
|
|
|
# The following section can cause problems with network / internet connectivity |
|
|
|
# in generel. See the corresponding issue: |
|
|
|
# https://github.com/W4RH4WK/Debloat-Windows-10/issues/270 |
|
|
|
#Write-Output "Do not share wifi networks" |
|
|
|
#$user = New-Object System.Security.Principal.NTAccount($env:UserName) |
|
|
|
#$sid = $user.Translate([System.Security.Principal.SecurityIdentifier]).value |
|
|
|
#force-mkdir ("HKLM:\SOFTWARE\Microsoft\WcmSvc\wifinetworkmanager\features\" + $sid) |
|
|
|
#Set-ItemProperty ("HKLM:\SOFTWARE\Microsoft\WcmSvc\wifinetworkmanager\features\" + $sid) "FeatureStates" 0x33c |
|
|
|
#Set-ItemProperty "HKLM:\SOFTWARE\Microsoft\WcmSvc\wifinetworkmanager\features" "WiFiSenseCredShared" 0 |
|
|
|
#Set-ItemProperty "HKLM:\SOFTWARE\Microsoft\WcmSvc\wifinetworkmanager\features" "WiFiSenseOpen" 0 |
|
|
|