Skip to content

Instantly share code, notes, and snippets.

@leachim6
Forked from jessfraz/boxstarter.ps1
Last active December 19, 2017 17:21
Show Gist options
  • Save leachim6/cbcc0bcf3de65e35fecf8b1cdbc0a733 to your computer and use it in GitHub Desktop.
Save leachim6/cbcc0bcf3de65e35fecf8b1cdbc0a733 to your computer and use it in GitHub Desktop.

Revisions

  1. leachim6 revised this gist Dec 19, 2017. 1 changed file with 3 additions and 4 deletions.
    7 changes: 3 additions & 4 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -28,8 +28,8 @@ Disable-BingSearch
    Disable-GameBarTips

    Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
    Set-TaskbarOptions -Size Small -Dock Top -Combine Full -Lock
    Set-TaskbarOptions -Size Small -Dock Top -Combine Full -AlwaysShowIconsOn
    Set-TaskbarOptions -Size Small -Dock Top -Combine Always -Lock
    Set-TaskbarOptions -Size Small -Dock Top -Combine Always -AlwaysShowIconsOn

    #--- Windows Subsystems/Features ---
    #choco install --yes Microsoft-Hyper-V-All -source windowsFeatures
    @@ -48,12 +48,11 @@ choco install --yes sumatrapdf
    choco install --yes IrfanView
    choco install --yes irfanviewplugins
    choco install --yes dropbox
    choco discord.install
    choco install --yes discord.install

    #--- Apps ---
    choco install --yes googlechrome
    choco install --yes firefox
    choco install --yes sharex
    choco install --yes msys2
    choco install --yes cmder
    choco install --yes steam
  2. leachim6 revised this gist Dec 19, 2017. 1 changed file with 24 additions and 24 deletions.
    48 changes: 24 additions & 24 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -21,7 +21,7 @@
    Disable-UAC

    #--- Fonts ---
    choco install inconsolata -y
    choco install --yes inconsolata

    #--- Windows Settings ---
    Disable-BingSearch
    @@ -32,42 +32,42 @@ Set-TaskbarOptions -Size Small -Dock Top -Combine Full -Lock
    Set-TaskbarOptions -Size Small -Dock Top -Combine Full -AlwaysShowIconsOn

    #--- Windows Subsystems/Features ---
    #choco install Microsoft-Hyper-V-All -source windowsFeatures
    choco install Microsoft-Windows-Subsystem-Linux -source windowsfeatures
    #choco install --yes Microsoft-Hyper-V-All -source windowsFeatures
    choco install --yes Microsoft-Windows-Subsystem-Linux -source windowsfeatures


    #--- Drivers ---

    choco install geforce-game-ready-driver
    choco install --yes geforce-game-ready-driver

    #--- Tools ---
    choco install sysinternals -y
    choco install winscp
    choco install launchy-beta
    choco install sumatrapdf
    choco install IrfanView
    choco install irfanviewplugins
    choco install dropbox
    choco install --yes sysinternals
    choco install --yes winscp
    choco install --yes launchy-beta
    choco install --yes sumatrapdf
    choco install --yes IrfanView
    choco install --yes irfanviewplugins
    choco install --yes dropbox
    choco discord.install

    #--- Apps ---
    choco install googlechrome
    choco install firefox
    choco install sharex
    choco install msys2
    choco install cmder
    choco install steam
    choco install virtualbox
    choco install skype
    choco install --yes googlechrome
    choco install --yes firefox
    choco install --yes sharex
    choco install --yes msys2
    choco install --yes cmder
    choco install --yes steam
    choco install --yes virtualbox
    choco install --yes skype

    #--- Media ---
    choco install vlc
    choco install foobar2000
    choco install --yes vlc
    choco install --yes foobar2000

    #--- Text Editors ---
    choco install sublimetext3
    choco install sublimetext3.packagecontrol
    choco install vim
    choco install --yes sublimetext3
    choco install --yes sublimetext3.packagecontrol
    choco install --yes vim



  3. leachim6 revised this gist Dec 19, 2017. 1 changed file with 25 additions and 25 deletions.
    50 changes: 25 additions & 25 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -21,7 +21,7 @@
    Disable-UAC

    #--- Fonts ---
    choco -y install inconsolata -y
    choco install inconsolata -y

    #--- Windows Settings ---
    Disable-BingSearch
    @@ -32,42 +32,42 @@ Set-TaskbarOptions -Size Small -Dock Top -Combine Full -Lock
    Set-TaskbarOptions -Size Small -Dock Top -Combine Full -AlwaysShowIconsOn

    #--- Windows Subsystems/Features ---
    #choco -y install Microsoft-Hyper-V-All -source windowsFeatures
    choco -y install Microsoft-Windows-Subsystem-Linux -source windowsfeatures
    #choco install Microsoft-Hyper-V-All -source windowsFeatures
    choco install Microsoft-Windows-Subsystem-Linux -source windowsfeatures


    #--- Drivers ---

    choco -y install geforce-game-ready-driver
    choco install geforce-game-ready-driver

    #--- Tools ---
    choco -y install sysinternals -y
    choco -y install winscp
    choco -y install launchy-beta
    choco -y install sumatrapdf
    choco -y install IrfanView
    choco -y install irfanviewplugins
    choco -y install dropbox
    choco -y discord.install
    choco install sysinternals -y
    choco install winscp
    choco install launchy-beta
    choco install sumatrapdf
    choco install IrfanView
    choco install irfanviewplugins
    choco install dropbox
    choco discord.install

    #--- Apps ---
    choco -y install googlechrome
    choco -y install firefox
    choco -y install sharex
    choco -y install msys2
    choco -y install cmder
    choco -y install steam
    choco -y install virtualbox
    choco -y install skype
    choco install googlechrome
    choco install firefox
    choco install sharex
    choco install msys2
    choco install cmder
    choco install steam
    choco install virtualbox
    choco install skype

    #--- Media ---
    choco -y install vlc
    choco -y install foobar2000
    choco install vlc
    choco install foobar2000

    #--- Text Editors ---
    choco -y install sublimetext3
    choco -y install sublimetext3.packagecontrol
    choco -y install vim
    choco install sublimetext3
    choco install sublimetext3.packagecontrol
    choco install vim



  4. leachim6 revised this gist Dec 19, 2017. 1 changed file with 39 additions and 15 deletions.
    54 changes: 39 additions & 15 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,8 @@
    # Description: Boxstarter Script
    # Author: Jess Frazelle <[email protected]>
    # Last Updated: 2017-09-11
    # Customized by: Mike Donaghy
    # Last Modified: 12/19/2017 9:04:01 AM
    #
    # Install boxstarter:
    #Set Set-ExecutionPolicy RemoteSigned
    @@ -19,7 +21,7 @@
    Disable-UAC

    #--- Fonts ---
    choco install inconsolata -y
    choco -y install inconsolata -y

    #--- Windows Settings ---
    Disable-BingSearch
    @@ -30,24 +32,46 @@ Set-TaskbarOptions -Size Small -Dock Top -Combine Full -Lock
    Set-TaskbarOptions -Size Small -Dock Top -Combine Full -AlwaysShowIconsOn

    #--- Windows Subsystems/Features ---
    #choco install Microsoft-Hyper-V-All -source windowsFeatures
    choco install Microsoft-Windows-Subsystem-Linux -source windowsfeatures
    #choco -y install Microsoft-Hyper-V-All -source windowsFeatures
    choco -y install Microsoft-Windows-Subsystem-Linux -source windowsfeatures


    #--- Drivers ---

    choco -y install geforce-game-ready-driver

    #--- Tools ---
    # choco install git -params '"/GitAndUnixToolsOnPath /WindowsTerminal"' -y
    # choco install poshgit
    choco install sysinternals -y
    # choco install vim
    choco -y install sysinternals -y
    choco -y install winscp
    choco -y install launchy-beta
    choco -y install sumatrapdf
    choco -y install IrfanView
    choco -y install irfanviewplugins
    choco -y install dropbox
    choco -y discord.install

    #--- Apps ---
    choco install googlechrome
    #choco install docker-for-windows
    choco install sharex
    choco install msys2
    choco install cmder
    choco install steam
    # choco install microsoft-teams
    # choco install vcxsrv
    choco -y install googlechrome
    choco -y install firefox
    choco -y install sharex
    choco -y install msys2
    choco -y install cmder
    choco -y install steam
    choco -y install virtualbox
    choco -y install skype

    #--- Media ---
    choco -y install vlc
    choco -y install foobar2000

    #--- Text Editors ---
    choco -y install sublimetext3
    choco -y install sublimetext3.packagecontrol
    choco -y install vim





    #--- Uninstall unecessary applications that come with Windows out of the box ---

  5. leachim6 revised this gist Dec 19, 2017. 1 changed file with 13 additions and 9 deletions.
    22 changes: 13 additions & 9 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,8 @@
    # Last Updated: 2017-09-11
    #
    # Install boxstarter:
    # . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
    #Set Set-ExecutionPolicy RemoteSigned
    #. { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
    #
    # You might need to set: Set-ExecutionPolicy RemoteSigned
    #
    @@ -25,11 +26,11 @@ Disable-BingSearch
    Disable-GameBarTips

    Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
    Set-TaskbarOptions -Size Small -Dock Bottom -Combine Full -Lock
    Set-TaskbarOptions -Size Small -Dock Bottom -Combine Full -AlwaysShowIconsOn
    Set-TaskbarOptions -Size Small -Dock Top -Combine Full -Lock
    Set-TaskbarOptions -Size Small -Dock Top -Combine Full -AlwaysShowIconsOn

    #--- Windows Subsystems/Features ---
    choco install Microsoft-Hyper-V-All -source windowsFeatures
    #choco install Microsoft-Hyper-V-All -source windowsFeatures
    choco install Microsoft-Windows-Subsystem-Linux -source windowsfeatures

    #--- Tools ---
    @@ -40,8 +41,11 @@ choco install sysinternals -y

    #--- Apps ---
    choco install googlechrome
    choco install docker-for-windows
    #choco install docker-for-windows
    choco install sharex
    choco install msys2
    choco install cmder
    choco install steam
    # choco install microsoft-teams
    # choco install vcxsrv

    @@ -125,7 +129,7 @@ Get-AppxPackage Microsoft.MicrosoftOfficeHub | Remove-AppxPackage
    Get-AppxPackage Microsoft.OneConnect | Remove-AppxPackage

    # OneNote
    Get-AppxPackage Microsoft.Office.OneNote | Remove-AppxPackage
    #Get-AppxPackage Microsoft.Office.OneNote | Remove-AppxPackage

    # People
    Get-AppxPackage Microsoft.People | Remove-AppxPackage
    @@ -146,7 +150,7 @@ Get-AppxPackage Microsoft.SkypeApp | Remove-AppxPackage
    Get-AppxPackage Microsoft.WindowsSoundRecorder | Remove-AppxPackage

    # Solitaire
    Get-AppxPackage *Solitaire* | Remove-AppxPackage
    #Get-AppxPackage *Solitaire* | Remove-AppxPackage

    # Sticky Notes
    Get-AppxPackage Microsoft.MicrosoftStickyNotes | Remove-AppxPackage
    @@ -190,8 +194,8 @@ Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search -N

    # Disable Telemetry (requires a reboot to take effect)
    # Note this may break Insider builds for your organization
    # Set-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name AllowTelemetry -Type DWord -Value 0
    # Get-Service DiagTrack,Dmwappushservice | Stop-Service | Set-Service -StartupType Disabled
    Set-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name AllowTelemetry -Type DWord -Value 0
    Get-Service DiagTrack,Dmwappushservice | Stop-Service | Set-Service -StartupType Disabled

    # Change Explorer home screen back to "This PC"
    Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name LaunchTo -Type DWord -Value 1
  6. @jessfraz jessfraz revised this gist Sep 20, 2017. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -172,11 +172,13 @@ Get-AppxPackage Microsoft.ZuneVideo | Remove-AppxPackage
    If (-Not (Test-Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo")) {
    New-Item -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo | Out-Null
    }
    Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0

    # WiFi Sense: HotSpot Sharing: Disable
    If (-Not (Test-Path "HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting")) {
    New-Item -Path HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting | Out-Null
    }
    Set-ItemProperty -Path HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting -Name value -Type DWord -Value 0

    # WiFi Sense: Shared HotSpot Auto-Connect: Disable
    Set-ItemProperty -Path HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots -Name value -Type DWord -Value 0
  7. @jessfraz jessfraz revised this gist Sep 20, 2017. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -236,6 +236,9 @@ Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR"
    Set-ItemProperty -Path "HKCU:\System\GameConfigStore" -Name GameDVR_Enabled -Type DWord -Value 0

    # Turn off People in Taskbar
    If (-Not (Test-Path "HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People")) {
    New-Item -Path HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People | Out-Null
    }
    Set-ItemProperty -Path "HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" -Name PeopleBand -Type DWord -Value 0

    #--- Restore Temporary Settings ---
  8. @jessfraz jessfraz revised this gist Sep 20, 2017. 1 changed file with 12 additions and 0 deletions.
    12 changes: 12 additions & 0 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -53,12 +53,18 @@ Get-AppxPackage Microsoft.3DBuilder | Remove-AppxPackage
    # Alarms
    Get-AppxPackage Microsoft.WindowsAlarms | Remove-AppxPackage

    # Autodesk
    Get-AppxPackage *Autodesk* | Remove-AppxPackage

    # Bing Weather, News, Sports, and Finance (Money):
    Get-AppxPackage Microsoft.BingFinance | Remove-AppxPackage
    Get-AppxPackage Microsoft.BingNews | Remove-AppxPackage
    Get-AppxPackage Microsoft.BingSports | Remove-AppxPackage
    Get-AppxPackage Microsoft.BingWeather | Remove-AppxPackage

    # BubbleWitch
    Get-AppxPackage *BubbleWitch* | Remove-AppxPackage

    # Candy Crush
    Get-AppxPackage king.com.CandyCrush* | Remove-AppxPackage

    @@ -80,6 +86,9 @@ Get-AppxPackage Microsoft.WindowsFeedbackHub | Remove-AppxPackage
    # Get Started
    Get-AppxPackage Microsoft.Getstarted | Remove-AppxPackage

    # Keeper
    Get-AppxPackage *Keeper* | Remove-AppxPackage

    # Mail & Calendar
    Get-AppxPackage microsoft.windowscommunicationsapps | Remove-AppxPackage

    @@ -127,6 +136,9 @@ Get-AppxPackage Microsoft.WindowsPhone | Remove-AppxPackage
    # Photos
    Get-AppxPackage Microsoft.Windows.Photos | Remove-AppxPackage

    # Plex
    Get-AppxPackage *Plex* | Remove-AppxPackage

    # Skype (Metro version)
    Get-AppxPackage Microsoft.SkypeApp | Remove-AppxPackage

  9. @jessfraz jessfraz revised this gist Sep 19, 2017. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -223,6 +223,9 @@ Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\MTCUV
    Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR" -Name AppCaptureEnabled -Type DWord -Value 0
    Set-ItemProperty -Path "HKCU:\System\GameConfigStore" -Name GameDVR_Enabled -Type DWord -Value 0

    # Turn off People in Taskbar
    Set-ItemProperty -Path "HKCU:SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced\People" -Name PeopleBand -Type DWord -Value 0

    #--- Restore Temporary Settings ---
    Enable-UAC
    Enable-MicrosoftUpdate
  10. @jessfraz jessfraz revised this gist Sep 18, 2017. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -41,6 +41,7 @@ choco install sysinternals -y
    #--- Apps ---
    choco install googlechrome
    choco install docker-for-windows
    choco install sharex
    # choco install microsoft-teams
    # choco install vcxsrv

  11. @jessfraz jessfraz revised this gist Sep 18, 2017. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -33,16 +33,16 @@ choco install Microsoft-Hyper-V-All -source windowsFeatures
    choco install Microsoft-Windows-Subsystem-Linux -source windowsfeatures

    #--- Tools ---
    choco install git -params '"/GitAndUnixToolsOnPath /WindowsTerminal"' -y
    choco install poshgit
    # choco install git -params '"/GitAndUnixToolsOnPath /WindowsTerminal"' -y
    # choco install poshgit
    choco install sysinternals -y
    choco install vim
    # choco install vim

    #--- Apps ---
    choco install googlechrome
    choco install docker-for-windows
    choco install microsoft-teams
    choco install vcxsrv
    # choco install microsoft-teams
    # choco install vcxsrv

    #--- Uninstall unecessary applications that come with Windows out of the box ---

  12. @jessfraz jessfraz revised this gist Sep 18, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -194,7 +194,7 @@ Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
    # Disable Quick Access: Frequent Folders
    Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name ShowFrequent -Type DWord -Value 0
    # To Restore:
    #Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name ShowRecent -Type DWord -Value 1
    # Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name ShowRecent -Type DWord -Value 1
    # Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name ShowFrequent -Type DWord -Value 1

    # Disable the Lock Screen (the one before password prompt - to prevent dropping the first character)
  13. @jessfraz jessfraz revised this gist Sep 18, 2017. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -153,7 +153,7 @@ Get-AppxPackage Microsoft.ZuneMusic | Remove-AppxPackage
    Get-AppxPackage Microsoft.ZuneVideo | Remove-AppxPackage

    #--- Windows Settings ---
    # Most from: @NickCraver's gist https://gist.github.com/NickCraver/7ebf9efbfd0c3eab72e9
    # Some from: @NickCraver's gist https://gist.github.com/NickCraver/7ebf9efbfd0c3eab72e9

    # Privacy: Let apps use my advertising ID: Disable
    If (-Not (Test-Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo")) {
    @@ -181,7 +181,7 @@ Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search -N
    # Change Explorer home screen back to "This PC"
    Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name LaunchTo -Type DWord -Value 1
    # Change it back to "Quick Access" (Windows 10 default)
    #Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name LaunchTo -Type DWord -Value 2
    # Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name LaunchTo -Type DWord -Value 2

    # Better File Explorer
    Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name NavPaneExpandToCurrentFolder -Value 1
    @@ -195,28 +195,28 @@ Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer
    Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name ShowFrequent -Type DWord -Value 0
    # To Restore:
    #Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name ShowRecent -Type DWord -Value 1
    #Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name ShowFrequent -Type DWord -Value 1
    # Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name ShowFrequent -Type DWord -Value 1

    # Disable the Lock Screen (the one before password prompt - to prevent dropping the first character)
    If (-Not (Test-Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Personalization)) {
    New-Item -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows -Name Personalization | Out-Null
    }
    Set-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Personalization -Name NoLockScreen -Type DWord -Value 1
    # To Restore:
    #Set-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Personalization -Name NoLockScreen -Type DWord -Value 1
    # Set-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Personalization -Name NoLockScreen -Type DWord -Value 1

    # Lock screen (not sleep) on lid close
    Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Power' -Name AwayModeEnabled -Type DWord -Value 1
    # To Restore:
    #Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Power' -Name AwayModeEnabled -Type DWord -Value 0
    # Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Power' -Name AwayModeEnabled -Type DWord -Value 0

    # Use the Windows 7-8.1 Style Volume Mixer
    If (-Not (Test-Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\MTCUVC")) {
    New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name MTCUVC | Out-Null
    }
    Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\MTCUVC" -Name EnableMtcUvc -Type DWord -Value 0
    # To Restore (Windows 10 Style Volume Control):
    #Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\MTCUVC" -Name EnableMtcUvc -Type DWord -Value 1
    # Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\MTCUVC" -Name EnableMtcUvc -Type DWord -Value 1

    # Disable Xbox Gamebar
    Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR" -Name AppCaptureEnabled -Type DWord -Value 0
  14. @jessfraz jessfraz revised this gist Sep 16, 2017. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -230,6 +230,6 @@ Install-WindowsUpdate -acceptEula
    #--- Rename the Computer ---
    # Requires restart, or add the -Restart flag
    $computername = "acidburn"
    if ($env:computername -ne "acidburn") {
    Rename-Computer -NewName "acidburn"
    if ($env:computername -ne $computername) {
    Rename-Computer -NewName $computername
    }
  15. @jessfraz jessfraz revised this gist Sep 16, 2017. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -229,4 +229,7 @@ Install-WindowsUpdate -acceptEula

    #--- Rename the Computer ---
    # Requires restart, or add the -Restart flag
    Rename-Computer -NewName "acidburn"
    $computername = "acidburn"
    if ($env:computername -ne "acidburn") {
    Rename-Computer -NewName "acidburn"
    }
  16. @jessfraz jessfraz revised this gist Sep 16, 2017. 1 changed file with 6 additions and 4 deletions.
    10 changes: 6 additions & 4 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -92,10 +92,12 @@ Get-AppxPackage *MarchofEmpires* | Remove-AppxPackage
    Get-AppxPackage *McAfee* | Remove-AppxPackage

    # Uninstall McAfee Security App
    $uninstall = gci "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall" | foreach { gp $_.PSPath } | ? { $_ -match "McAfee Security" } | select UninstallString
    $uninstall = $uninstall.UninstallString -Replace "C:\Program Files\McAfee\MSC\mcuihost.exe",""
    Write "Uninstalling McAfee..."
    start-process "C:\Program Files\McAfee\MSC\mcuihost.exe" -arg "$uninstall" -Wait
    $mcafee = gci "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall" | foreach { gp $_.PSPath } | ? { $_ -match "McAfee Security" } | select UninstallString
    if ($mcafee) {
    $mcafee = $mcafee.UninstallString -Replace "C:\Program Files\McAfee\MSC\mcuihost.exe",""
    Write "Uninstalling McAfee..."
    start-process "C:\Program Files\McAfee\MSC\mcuihost.exe" -arg "$mcafee" -Wait
    }

    # Messaging
    Get-AppxPackage Microsoft.Messaging | Remove-AppxPackage
  17. @jessfraz jessfraz revised this gist Sep 16, 2017. 1 changed file with 7 additions and 2 deletions.
    9 changes: 7 additions & 2 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -2,10 +2,15 @@
    # Author: Jess Frazelle <[email protected]>
    # Last Updated: 2017-09-11
    #
    # Install boxstarter:
    # . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
    #
    # You might need to set: Set-ExecutionPolicy RemoteSigned
    #
    # Run this boxstarter by calling the following from an **elevated** command-prompt:
    # start http://boxstarter.org/package/nr/url?<URL-TO-RAW-GIST>
    # start http://boxstarter.org/package/nr/url?<URL-TO-RAW-GIST>
    # OR
    # Install-BoxstarterPackage -PackageName <URL-TO-RAW-GIST> -DisableReboots
    # Install-BoxstarterPackage -PackageName <URL-TO-RAW-GIST> -DisableReboots
    #
    # Learn more: http://boxstarter.org/Learn/WebLauncher

  18. @jessfraz jessfraz revised this gist Sep 16, 2017. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -221,4 +221,5 @@ Enable-MicrosoftUpdate
    Install-WindowsUpdate -acceptEula

    #--- Rename the Computer ---
    # Requires restart, or add the -Restart flag
    Rename-Computer -NewName "acidburn"
  19. @jessfraz jessfraz revised this gist Sep 16, 2017. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -218,4 +218,7 @@ Set-ItemProperty -Path "HKCU:\System\GameConfigStore" -Name GameDVR_Enabled -Typ
    #--- Restore Temporary Settings ---
    Enable-UAC
    Enable-MicrosoftUpdate
    Install-WindowsUpdate -acceptEula
    Install-WindowsUpdate -acceptEula

    #--- Rename the Computer ---
    Rename-Computer -NewName "acidburn"
  20. @jessfraz jessfraz revised this gist Sep 16, 2017. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -86,6 +86,12 @@ Get-AppxPackage *MarchofEmpires* | Remove-AppxPackage
    # McAfee Security
    Get-AppxPackage *McAfee* | Remove-AppxPackage

    # Uninstall McAfee Security App
    $uninstall = gci "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall" | foreach { gp $_.PSPath } | ? { $_ -match "McAfee Security" } | select UninstallString
    $uninstall = $uninstall.UninstallString -Replace "C:\Program Files\McAfee\MSC\mcuihost.exe",""
    Write "Uninstalling McAfee..."
    start-process "C:\Program Files\McAfee\MSC\mcuihost.exe" -arg "$uninstall" -Wait

    # Messaging
    Get-AppxPackage Microsoft.Messaging | Remove-AppxPackage

  21. @jessfraz jessfraz revised this gist Sep 16, 2017. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -205,6 +205,9 @@ Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\MTCUV
    # To Restore (Windows 10 Style Volume Control):
    #Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\MTCUVC" -Name EnableMtcUvc -Type DWord -Value 1

    # Disable Xbox Gamebar
    Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\GameDVR" -Name AppCaptureEnabled -Type DWord -Value 0
    Set-ItemProperty -Path "HKCU:\System\GameConfigStore" -Name GameDVR_Enabled -Type DWord -Value 0

    #--- Restore Temporary Settings ---
    Enable-UAC
  22. @jessfraz jessfraz revised this gist Sep 16, 2017. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -193,9 +193,9 @@ Set-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Personalization
    #Set-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Personalization -Name NoLockScreen -Type DWord -Value 1

    # Lock screen (not sleep) on lid close
    Set-ItemProperty -Path HKLM:\SOFTWARE\CurrentControlSet\Control\SessionManager\Power -Name AwayModeEnabled -Type DWord -Value 1
    Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Power' -Name AwayModeEnabled -Type DWord -Value 1
    # To Restore:
    #Set-ItemProperty -Path HKLM:\SOFTWARE\CurrentControlSet\Control\SessionManager\Power -Name AwayModeEnabled -Type DWord -Value 0
    #Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Power' -Name AwayModeEnabled -Type DWord -Value 0

    # Use the Windows 7-8.1 Style Volume Mixer
    If (-Not (Test-Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\MTCUVC")) {
  23. @jessfraz jessfraz revised this gist Sep 16, 2017. 1 changed file with 8 additions and 2 deletions.
    10 changes: 8 additions & 2 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -161,8 +161,9 @@ Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search -N
    # Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search -Name BingSearchEnabled -Type DWord -Value 1

    # Disable Telemetry (requires a reboot to take effect)
    Set-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name AllowTelemetry -Type DWord -Value 0
    Get-Service DiagTrack,Dmwappushservice | Stop-Service | Set-Service -StartupType Disabled
    # Note this may break Insider builds for your organization
    # Set-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection -Name AllowTelemetry -Type DWord -Value 0
    # Get-Service DiagTrack,Dmwappushservice | Stop-Service | Set-Service -StartupType Disabled

    # Change Explorer home screen back to "This PC"
    Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name LaunchTo -Type DWord -Value 1
    @@ -191,6 +192,11 @@ Set-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Personalization
    # To Restore:
    #Set-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\Personalization -Name NoLockScreen -Type DWord -Value 1

    # Lock screen (not sleep) on lid close
    Set-ItemProperty -Path HKLM:\SOFTWARE\CurrentControlSet\Control\SessionManager\Power -Name AwayModeEnabled -Type DWord -Value 1
    # To Restore:
    #Set-ItemProperty -Path HKLM:\SOFTWARE\CurrentControlSet\Control\SessionManager\Power -Name AwayModeEnabled -Type DWord -Value 0

    # Use the Windows 7-8.1 Style Volume Mixer
    If (-Not (Test-Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\MTCUVC")) {
    New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -Name MTCUVC | Out-Null
  24. @jessfraz jessfraz revised this gist Sep 16, 2017. 1 changed file with 46 additions and 9 deletions.
    55 changes: 46 additions & 9 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -41,14 +41,23 @@ choco install vcxsrv

    #--- Uninstall unecessary applications that come with Windows out of the box ---

    # Candy Crush
    Get-AppxPackage king.com.CandyCrush* | Remove-AppxPackage
    # 3D Builder
    Get-AppxPackage Microsoft.3DBuilder | Remove-AppxPackage

    # Alarms
    Get-AppxPackage Microsoft.WindowsAlarms | Remove-AppxPackage

    # Bing Weather, News, Sports, and Finance (Money):
    Get-AppxPackage Microsoft.BingWeather | Remove-AppxPackage
    Get-AppxPackage Microsoft.BingFinance | Remove-AppxPackage
    Get-AppxPackage Microsoft.BingNews | Remove-AppxPackage
    Get-AppxPackage Microsoft.BingSports | Remove-AppxPackage
    Get-AppxPackage Microsoft.BingFinance | Remove-AppxPackage
    Get-AppxPackage Microsoft.BingWeather | Remove-AppxPackage

    # Candy Crush
    Get-AppxPackage king.com.CandyCrush* | Remove-AppxPackage

    # Comms Phone
    Get-AppxPackage Microsoft.CommsPhone | Remove-AppxPackage

    # Dell
    Get-AppxPackage *Dell* | Remove-AppxPackage
    @@ -59,31 +68,48 @@ Get-AppxPackage *Dropbox* | Remove-AppxPackage
    # Facebook
    Get-AppxPackage *Facebook* | Remove-AppxPackage

    # Feedback Hub
    Get-AppxPackage Microsoft.WindowsFeedbackHub | Remove-AppxPackage

    # Get Started
    Get-AppxPackage Microsoft.Getstarted | Remove-AppxPackage

    # Mail & Calendar
    Get-AppxPackage microsoft.windowscommunicationsapps | Remove-AppxPackage

    # Maps
    Get-AppxPackage Microsoft.WindowsMaps | Remove-AppxPackage

    # March of Empires
    Get-AppxPackage *MarchofEmpires* | Remove-AppxPackage

    # McAfee Security
    Get-AppxPackage *McAfee* | Remove-AppxPackage

    # Messaging
    Get-AppxPackage Microsoft.Messaging | Remove-AppxPackage

    # Minecraft
    Get-AppxPackage *Minecraft* | Remove-AppxPackage

    # Music, Movies & TV
    Get-AppxPackage Microsoft.ZuneVideo | Remove-AppxPackage
    Get-AppxPackage Microsoft.ZuneMusic | Remove-AppxPackage

    # Netflix
    Get-AppxPackage *Netflix* | Remove-AppxPackage

    # Office Hub
    Get-AppxPackage Microsoft.MicrosoftOfficeHub | Remove-AppxPackage

    # One Connect
    Get-AppxPackage Microsoft.OneConnect | Remove-AppxPackage

    # OneNote
    Get-AppxPackage Microsoft.Office.OneNote | Remove-AppxPackage

    # People
    Get-AppxPackage Microsoft.People | Remove-AppxPackage

    # Phone
    Get-AppxPackage Microsoft.WindowsPhone | Remove-AppxPackage

    # Photos
    Get-AppxPackage Microsoft.Windows.Photos | Remove-AppxPackage

    @@ -96,11 +122,22 @@ Get-AppxPackage Microsoft.WindowsSoundRecorder | Remove-AppxPackage
    # Solitaire
    Get-AppxPackage *Solitaire* | Remove-AppxPackage

    # Sticky Notes
    Get-AppxPackage Microsoft.MicrosoftStickyNotes | Remove-AppxPackage

    # Sway
    Get-AppxPackage Microsoft.Office.Sway | Remove-AppxPackage

    # Twitter
    Get-AppxPackage *Twitter* | Remove-AppxPackage

    # Xbox
    Get-AppxPackage *Xbox* | Remove-AppxPackage
    Get-AppxPackage Microsoft.XboxApp | Remove-AppxPackage
    Get-AppxPackage Microsoft.XboxIdentityProvider | Remove-AppxPackage

    # Zune Music, Movies & TV
    Get-AppxPackage Microsoft.ZuneMusic | Remove-AppxPackage
    Get-AppxPackage Microsoft.ZuneVideo | Remove-AppxPackage

    #--- Windows Settings ---
    # Most from: @NickCraver's gist https://gist.github.com/NickCraver/7ebf9efbfd0c3eab72e9
  25. @jessfraz jessfraz revised this gist Sep 16, 2017. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -50,6 +50,9 @@ Get-AppxPackage Microsoft.BingNews | Remove-AppxPackage
    Get-AppxPackage Microsoft.BingSports | Remove-AppxPackage
    Get-AppxPackage Microsoft.BingFinance | Remove-AppxPackage

    # Dell
    Get-AppxPackage *Dell* | Remove-AppxPackage

    # Dropbox
    Get-AppxPackage *Dropbox* | Remove-AppxPackage

    @@ -97,7 +100,7 @@ Get-AppxPackage *Solitaire* | Remove-AppxPackage
    Get-AppxPackage *Twitter* | Remove-AppxPackage

    # Xbox
    Get-AppxPackage Microsoft.XboxApp | Remove-AppxPackage
    Get-AppxPackage *Xbox* | Remove-AppxPackage

    #--- Windows Settings ---
    # Most from: @NickCraver's gist https://gist.github.com/NickCraver/7ebf9efbfd0c3eab72e9
  26. @jessfraz jessfraz revised this gist Sep 16, 2017. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -63,6 +63,7 @@ Get-AppxPackage microsoft.windowscommunicationsapps | Remove-AppxPackage
    Get-AppxPackage *MarchofEmpires* | Remove-AppxPackage

    # McAfee Security
    Get-AppxPackage *McAfee* | Remove-AppxPackage

    # Minecraft
    Get-AppxPackage *Minecraft* | Remove-AppxPackage
  27. @jessfraz jessfraz revised this gist Sep 16, 2017. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -64,6 +64,9 @@ Get-AppxPackage *MarchofEmpires* | Remove-AppxPackage

    # McAfee Security

    # Minecraft
    Get-AppxPackage *Minecraft* | Remove-AppxPackage

    # Music, Movies & TV
    Get-AppxPackage Microsoft.ZuneVideo | Remove-AppxPackage
    Get-AppxPackage Microsoft.ZuneMusic | Remove-AppxPackage
  28. @jessfraz jessfraz revised this gist Sep 16, 2017. 1 changed file with 10 additions and 1 deletion.
    11 changes: 10 additions & 1 deletion boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -53,11 +53,17 @@ Get-AppxPackage Microsoft.BingFinance | Remove-AppxPackage
    # Dropbox
    Get-AppxPackage *Dropbox* | Remove-AppxPackage

    # McAfee Security
    # Facebook
    Get-AppxPackage *Facebook* | Remove-AppxPackage

    # Mail & Calendar
    Get-AppxPackage microsoft.windowscommunicationsapps | Remove-AppxPackage

    # March of Empires
    Get-AppxPackage *MarchofEmpires* | Remove-AppxPackage

    # McAfee Security

    # Music, Movies & TV
    Get-AppxPackage Microsoft.ZuneVideo | Remove-AppxPackage
    Get-AppxPackage Microsoft.ZuneMusic | Remove-AppxPackage
    @@ -83,6 +89,9 @@ Get-AppxPackage Microsoft.WindowsSoundRecorder | Remove-AppxPackage
    # Solitaire
    Get-AppxPackage *Solitaire* | Remove-AppxPackage

    # Twitter
    Get-AppxPackage *Twitter* | Remove-AppxPackage

    # Xbox
    Get-AppxPackage Microsoft.XboxApp | Remove-AppxPackage

  29. @jessfraz jessfraz revised this gist Sep 16, 2017. 1 changed file with 17 additions and 0 deletions.
    17 changes: 17 additions & 0 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -4,6 +4,8 @@
    #
    # Run this boxstarter by calling the following from an **elevated** command-prompt:
    # start http://boxstarter.org/package/nr/url?<URL-TO-RAW-GIST>
    # OR
    # Install-BoxstarterPackage -PackageName <URL-TO-RAW-GIST> -DisableReboots
    #
    # Learn more: http://boxstarter.org/Learn/WebLauncher

    @@ -28,6 +30,7 @@ choco install Microsoft-Windows-Subsystem-Linux -source windowsfeatures
    #--- Tools ---
    choco install git -params '"/GitAndUnixToolsOnPath /WindowsTerminal"' -y
    choco install poshgit
    choco install sysinternals -y
    choco install vim

    #--- Apps ---
    @@ -37,6 +40,10 @@ choco install microsoft-teams
    choco install vcxsrv

    #--- Uninstall unecessary applications that come with Windows out of the box ---

    # Candy Crush
    Get-AppxPackage king.com.CandyCrush* | Remove-AppxPackage

    # Bing Weather, News, Sports, and Finance (Money):
    Get-AppxPackage Microsoft.BingWeather | Remove-AppxPackage
    Get-AppxPackage Microsoft.BingNews | Remove-AppxPackage
    @@ -82,6 +89,16 @@ Get-AppxPackage Microsoft.XboxApp | Remove-AppxPackage
    #--- Windows Settings ---
    # Most from: @NickCraver's gist https://gist.github.com/NickCraver/7ebf9efbfd0c3eab72e9

    # Privacy: Let apps use my advertising ID: Disable
    If (-Not (Test-Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo")) {
    New-Item -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo | Out-Null
    }

    # WiFi Sense: HotSpot Sharing: Disable
    If (-Not (Test-Path "HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting")) {
    New-Item -Path HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowWiFiHotSpotReporting | Out-Null
    }

    # WiFi Sense: Shared HotSpot Auto-Connect: Disable
    Set-ItemProperty -Path HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots -Name value -Type DWord -Value 0

  30. @jessfraz jessfraz revised this gist Sep 16, 2017. 1 changed file with 0 additions and 5 deletions.
    5 changes: 0 additions & 5 deletions boxstarter.ps1
    Original file line number Diff line number Diff line change
    @@ -82,11 +82,6 @@ Get-AppxPackage Microsoft.XboxApp | Remove-AppxPackage
    #--- Windows Settings ---
    # Most from: @NickCraver's gist https://gist.github.com/NickCraver/7ebf9efbfd0c3eab72e9

    # Privacy: SmartScreen Filter for Store Apps: Disable
    Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 0
    # To Restore:
    #Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 1

    # WiFi Sense: Shared HotSpot Auto-Connect: Disable
    Set-ItemProperty -Path HKLM:\Software\Microsoft\PolicyManager\default\WiFi\AllowAutoConnectToWiFiSenseHotspots -Name value -Type DWord -Value 0