Created
September 3, 2015 02:59
-
-
Save trodemaster/5bbeb2cc0badf432eafd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install powershellget | |
Get-PackageProvider -Name NuGet -ForceBootstrap | |
# allow repo install | |
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted | |
# install PolicyFileEditor | |
Install-Module -Name PolicyFileEditor -Confirm:$false | |
# disable web results search bar | |
Set-PolicyFileEntry -Path $env:systemroot\system32\GroupPolicy\Machine\registry.pol -Key "Software\Policies\Microsoft\Windows\Windows Search" -ValueName ConnectedSearchUseWeb -Data 0 -Type DWord | |
# disable windows defender | |
Set-PolicyFileEntry -Path $env:systemroot\system32\GroupPolicy\Machine\registry.pol -Key "Software\Policies\Microsoft\Windows Defender" -ValueName DisableAntiSpyware -Data 1 -Type DWord | |
# disable Cortana | |
Set-PolicyFileEntry -Path $env:systemroot\system32\GroupPolicy\Machine\registry.pol -Key "SOFTWARE\Policies\Microsoft\Windows\Windows Search" -ValueName AllowCortana -Data 0 -Type DWord | |
# show results | |
write-host Listing configured local windows policies | |
Get-PolicyFileEntry -Path $env:systemroot\system32\GroupPolicy\Machine\registry.pol -All |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment