Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge Development #104

Open
wants to merge 47 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
04f7000
Create BasicApplications.ps1
AndyAdelman Dec 24, 2023
80a1007
Update BasicApplications.ps1
AndyAdelman Dec 24, 2023
8dedbd7
Update BasicApplications.ps1
AndyAdelman Dec 24, 2023
158c6a9
Update BasicApplications.ps1
AndyAdelman Dec 24, 2023
7535ba7
Create PrivacySettings
AndyAdelman Dec 26, 2023
4af3eef
Rename PrivacySettings to PrivacySettings.ps1
AndyAdelman Dec 26, 2023
be7781a
Create SecuritySettings.ps1
AndyAdelman Dec 26, 2023
c8a0898
Update FileExplorerSettings.ps1
AndyAdelman Dec 26, 2023
2ec6197
Create GeneralSettings.ps1
AndyAdelman Dec 26, 2023
892f6e6
Create WiFiSettings.ps1
AndyAdelman Dec 26, 2023
d4e898d
Create StartMenuSettings.ps1
AndyAdelman Dec 26, 2023
6cef2c1
Create LockScreenSettings.ps1
AndyAdelman Dec 26, 2023
bde6284
Create TaskbarSettings.ps1
AndyAdelman Dec 26, 2023
4f3a5f8
Update RemoveDefaultApps.ps1
AndyAdelman Dec 26, 2023
53f7f0b
Update GeneralSettings.ps1
AndyAdelman Dec 26, 2023
fdee5a7
Init - Update Run Script
AndyAdelman Jan 6, 2024
40d190c
Disable Application Launch Tracking
AndyAdelman Jan 6, 2024
03b6f6f
Disable Windows Feedback
AndyAdelman Jan 6, 2024
c49dcef
Update Boxstarter Settings & UAC
AndyAdelman Jan 6, 2024
18f1fd5
Delete scripts/Browsers.ps1
AndyAdelman Jan 6, 2024
d55f8a3
Delete scripts/CommonDevTools.ps1
AndyAdelman Jan 6, 2024
d41b3c1
Delete scripts/Docker.ps1
AndyAdelman Jan 6, 2024
562f17c
Delete scripts/GetMLIDEAndTooling.ps1
AndyAdelman Jan 6, 2024
7023929
Delete scripts/GetUwpSamplesOffGithub.ps1
AndyAdelman Jan 6, 2024
ca35ba8
Delete scripts/PythonMLTools.ps1
AndyAdelman Jan 6, 2024
e551dcb
Delete scripts/WindowsTemplateStudio.ps1
AndyAdelman Jan 6, 2024
aaac554
Recreate CommonDevTools.ps1
AndyAdelman Jan 6, 2024
e88c94a
Update CommonDevTools.ps1
AndyAdelman Jan 6, 2024
5c46de6
Change URL Link to My Repo
AndyAdelman Jan 6, 2024
8ab4002
Create GistScript
AndyAdelman Jan 30, 2024
702a2f9
Change File Extension
AndyAdelman Jan 30, 2024
fbf5088
Update Gist Privacy Settings
AndyAdelman Jan 30, 2024
db687d5
Update Gist Security Settings
AndyAdelman Jan 30, 2024
6feda8e
Disable Gist Tips
AndyAdelman Jan 30, 2024
7e5eae1
Gist Lock Screen
AndyAdelman Jan 30, 2024
21c7b88
Gist Start Menu
AndyAdelman Jan 30, 2024
7db2375
Gist Taskbar
AndyAdelman Jan 30, 2024
e0f7f44
Gist Disable Telemetry
AndyAdelman Jan 30, 2024
eac8be8
Gist Startup
AndyAdelman Jan 30, 2024
8ca5873
Gist File Explorer
AndyAdelman Jan 30, 2024
a73af51
Gist WiFi Settings
AndyAdelman Jan 30, 2024
9c8eb61
Gist Allow/Deny Applications
AndyAdelman Jan 30, 2024
b25e08a
Gist Application Permissions
AndyAdelman Jan 30, 2024
95c79c6
Gist Uninstall Default Apps
AndyAdelman Jan 30, 2024
a93fb97
Unpinning Tiles and Icons
AndyAdelman Jan 31, 2024
9c84de1
Gist Cleaning Up
AndyAdelman Jan 31, 2024
7cc731c
Power Automate / Sketch
AndyAdelman Feb 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
958 changes: 958 additions & 0 deletions demos/GistScript.ps1

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion demos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ These scripts should cover a lot of what you need but will not likely match your

|Click link to run |Description |
|---------|---------|
|<a href='http://boxstarter.org/package/url?https://raw.githubusercontent.com/Microsoft/windows-dev-box-setup-scripts/master/demos/chocolateyfest2018.ps1'>ChocolateyFest 2018</a> | DevOps tools and some examples of personalization |
|<a href='http://boxstarter.org/package/url?https://raw.githubusercontent.com/AndyAdelman/windows-dev-box-setup-scripts/master/demos/chocolateyfest2018.ps1'>ChocolateyFest 2018</a> | DevOps tools and some examples of personalization |
| | Add to this list by submitting a PR with your example configuration! |

# Contributing
Expand Down
60 changes: 23 additions & 37 deletions demos/chocolateyfest2018.ps1
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
# Description: Boxstarter Script
# Description: Boxstarter Script: 1.0.0.2
# Author: Microsoft
# chocolatey fest demo

#--- Boxstarter options ---
$Boxstarter.RebootOk=$true # Allow reboots?
$Boxstarter.NoPassword=$false # Is this a machine with no login password?
$Boxstarter.AutoLogin=$true # Save my password securely and auto-login after a reboot

#--- Basic setup ---
Update-ExecutionPolicy -Policy RemoteSigned
Disable-UAC
Enable-RemoteDesktop
choco feature enable -n=allowGlobalConfirmation
$ConfirmPreference = "None" #ensure installing powershell modules don't prompt on needed dependencies

# Get the base URI path from the ScriptToCall value
Expand All @@ -24,47 +33,24 @@ function executeScript {
}

#--- Setting up Windows ---
executeScript "PrivacySettings.ps1";
executeScript "SecuritySettings.ps1";
executeScript "GeneralSettings.ps1";
executeScript "LockScreenSettings.ps1";
executeScript "StartMenuSettings.ps1";
executeScript "TaskbarSettings.ps1";
executeScript "FileExplorerSettings.ps1";
executeScript "SystemConfiguration.ps1";
executeScript "WiFiSettings.ps1";
executeScript "RemoveDefaultApps.ps1";
executeScript "CommonDevTools.ps1";
executeScript "Browsers.ps1";

executeScript "HyperV.ps1";
RefreshEnv
executeScript "WSL.ps1";
executeScript "BasicApplications.ps1";
RefreshEnv
executeScript "Docker.ps1";

choco install -y powershell-core
choco install -y azure-cli
Install-Module -Force Az
Install-Module -Force posh-git
choco install -y microsoftazurestorageexplorer
choco install -y terraform

# Install tools in WSL instance
write-host "Installing tools inside the WSL distro..."
Ubuntu1804 run apt install ansible -y
Ubuntu1804 run apt install nodejs -y

# personalize
choco install -y microsoft-teams
choco install -y office365business

# checkout recent projects
mkdir C:\github
cd C:\github
git.exe clone https://github.com/microsoft/windows-dev-box-setup-scripts
git.exe clone https://github.com/microsoft/winappdriver
git.exe clone https://github.com/microsoft/wsl
git.exe clone https://github.com/PowerShell/PowerShell

# set desktop wallpaper
Invoke-WebRequest -Uri 'http://chocolateyfest.com/wp-content/uploads/2018/05/img-bg-front-page-header-NO_logo-opt.jpg' -Method Get -ContentType image/jpeg -OutFile 'C:\github\chocofest.jpg'
Set-ItemProperty -path 'HKCU:\Control Panel\Desktop\' -name wallpaper -value 'C:\github\chocofest.jpg'
rundll32.exe user32.dll, UpdatePerUserSystemParameters
RefreshEnv
## set desktop wallpaper
#Invoke-WebRequest -Uri 'http://chocolateyfest.com/wp-content/uploads/2018/05/img-bg-front-page-header-NO_logo-opt.jpg' -Method Get -ContentType image/jpeg -OutFile 'C:\github\chocofest.jpg'
#Set-ItemProperty -path 'HKCU:\Control Panel\Desktop\' -name wallpaper -value 'C:\github\chocofest.jpg'
#rundll32.exe user32.dll, UpdatePerUserSystemParameters
#RefreshEnv

Enable-UAC
Enable-MicrosoftUpdate
Expand Down
62 changes: 62 additions & 0 deletions scripts/BasicApplications.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@

# Common
choco install -y 7zip
choco install -y notepadplusplus
choco install -y sumatrapdf

# Browsers
choco install -y googlechrome
choco install -y firefox
choco install -y tor-browser

# Media
choco install -y vlc
choco install -y audacity
choco install -y imageglass
choco install -y qbittorrent


# Management
choco install -y treesizefree
choco install -y crystaldiskinfo

# Research sysinternals more
choco install -y sysinternals

# Networking
choco install -y nordvpn

# Dev
choco install -y git
choco install -y microsoft-windows-terminal
choco install -y putty
# For managing Linux and MacOS systems
choco install -y powershell-core

# --- Maybe ---
# choco install -y autohotkey
# choco install -y docker-desktop
# choco install -y virtualbox

# All Media Related
# choco install -y handbrake
# choco install -y makemkv
# choco install -y imgburn
# choco install -y filebot
# choco install -y bulkrenameutility

# I normally just use the browser extension
# choco install -y bitwarden

# --- Install Manually ---
# BackBlaze
# Winbox
# TP-Link Easy Config

# --- Not Found ---
# gitbash
# magic jellybean keyfinder




3 changes: 0 additions & 3 deletions scripts/Browsers.ps1

This file was deleted.

14 changes: 7 additions & 7 deletions scripts/CommonDevTools.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# tools we expect devs across many scenarios will want
choco install -y vscode
choco install -y git --package-parameters="'/GitAndUnixToolsOnPath /WindowsTerminal'"
choco install -y python
choco install -y 7zip.install
choco install -y sysinternals

# tools we expect devs across many scenarios will want
choco install -y vscode
choco install -y git --package-parameters="'/GitAndUnixToolsOnPath /WindowsTerminal'"
choco install -y python
choco install -y 7zip.install
choco install -y sysinternals
4 changes: 0 additions & 4 deletions scripts/Docker.ps1

This file was deleted.

88 changes: 83 additions & 5 deletions scripts/FileExplorerSettings.ps1
Original file line number Diff line number Diff line change
@@ -1,15 +1,93 @@

#Example Provided:

#--- Configuring Windows properties ---
#--- Windows Features ---
# Show hidden files, Show protected OS files, Show file extensions
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
#Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions

#--- File Explorer Settings ---
# will expand explorer to the actual folder you're in
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name NavPaneExpandToCurrentFolder -Value 1
#Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name NavPaneExpandToCurrentFolder -Value 1
#adds things back in your left pane like recycle bin
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name NavPaneShowAllFolders -Value 1
#Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name NavPaneShowAllFolders -Value 1
#opens PC to This PC, not quick access
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name LaunchTo -Value 1
#Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name LaunchTo -Value 1
#taskbar where window is open for multi-monitor
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name MMTaskbarMode -Value 2
#Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name MMTaskbarMode -Value 2

#############################
# Explorer
#############################

Write-Host "Configuring Explorer..." -ForegroundColor "Yellow"

# Prerequisite: Ensure necessary registry paths
if (!(Test-Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer")) {New-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" -Type Folder | Out-Null}
if (!(Test-Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState")) {New-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState" -Type Folder | Out-Null}
if (!(Test-Path "HKLM:\Software\Policies\Microsoft\Windows\Windows Search")) {New-Item -Path "HKLM:\Software\Policies\Microsoft\Windows\Windows Search" -Type Folder | Out-Null}

# Explorer: Show hidden files by default: Show Files: 1, Hide Files: 2
Set-ItemProperty "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" "Hidden" 1

# Explorer: Show file extensions by default: Hide: 1, Show: 0
Set-ItemProperty "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" "HideFileExt" 0

# Explorer: Show path in title bar: Hide: 0, Show: 1
Set-ItemProperty "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState" "FullPath" 0

# Explorer: Disable Quick Access: Recent Files
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name ShowRecent -Type DWord -Value 0

# Explorer: Quick Access: Frequent Folders
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer -Name ShowFrequent -Type DWord -Value 0

# Explorer: Expand explorer to the actual folder you're in
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name NavPaneExpandToCurrentFolder -Value 1

# Explorer: Adds things back in your left pane like recycle bin
Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name NavPaneShowAllFolders -Value 1

# Explorer: Set Explorer view to This PC
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "LaunchTo" -Type DWord -Value 1

# Explorer: Hide Music icon in This PC
Remove-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}" -Recurse -ErrorAction SilentlyContinue
Remove-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{1CF1260C-4DD0-4ebb-811F-33C572699FDE}" -Recurse -ErrorAction SilentlyContinue

# Explorer: Hide Music in Explorer
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{a0c69a99-21c8-4671-8703-7934162fcf1d}\PropertyBag" -Name "ThisPCPolicy" -Type String -Value "Hide"
Set-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{a0c69a99-21c8-4671-8703-7934162fcf1d}\PropertyBag" -Name "ThisPCPolicy" -Type String -Value "Hide"

# Explorer: Hide Videos from This PC
Remove-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}" -Recurse -ErrorAction SilentlyContinue
Remove-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{A0953C92-50DC-43bf-BE83-3742FED03C9C}" -Recurse -ErrorAction SilentlyContinue

# Explorer: Hide Videos from Explorer
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{35286a68-3c57-41a1-bbb1-0eae73d76c95}\PropertyBag" -Name "ThisPCPolicy" -Type String -Value "Hide"
Set-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{35286a68-3c57-41a1-bbb1-0eae73d76c95}\PropertyBag" -Name "ThisPCPolicy" -Type String -Value "Hide"

# Explorer: Hide 3D Objects from This PC
Remove-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" -Recurse -ErrorAction SilentlyContinue

# Explorer: Hide 3D Objects from Explorer
If (!(Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{31C0DD25-9439-4F12-BF41-7FF4EDA38722}\PropertyBag")) {
New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{31C0DD25-9439-4F12-BF41-7FF4EDA38722}\PropertyBag" -Force | Out-Null
}
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{31C0DD25-9439-4F12-BF41-7FF4EDA38722}\PropertyBag" -Name "ThisPCPolicy" -Type String -Value "Hide"
If (!(Test-Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{31C0DD25-9439-4F12-BF41-7FF4EDA38722}\PropertyBag")) {
New-Item -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{31C0DD25-9439-4F12-BF41-7FF4EDA38722}\PropertyBag" -Force | Out-Null
}
Set-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\{31C0DD25-9439-4F12-BF41-7FF4EDA38722}\PropertyBag" -Name "ThisPCPolicy" -Type String -Value "Hide"

# Explorer: Disable Recycle Bin Delete Confirmation Dialog: Enable: 1, Disable: 0
Set-ItemProperty "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" "ConfirmFileDelete" 1

# Explorer: Show File Operation details
If (!(Test-Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager")) {
New-Item -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager" | Out-Null
}
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\OperationStatusManager" -Name "EnthusiastMode" -Type DWord -Value 1



99 changes: 99 additions & 0 deletions scripts/GeneralSettings.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@

#############################
# General Settings
#############################

Write-Host "Configuring General Settings..." -ForegroundColor "Yellow"

# General: Disable Sticky Keys
Set-ItemProperty -Path "HKCU:\Control Panel\Accessibility\StickyKeys" -Name "Flags" -Type String -Value "506"

# General: Enable NumLock After Startup
If (!(Test-Path "HKU:")) {
New-PSDrive -Name HKU -PSProvider Registry -Root HKEY_USERS | Out-Null
}
Set-ItemProperty -Path "HKU:\.DEFAULT\Control Panel\Keyboard" -Name "InitialKeyboardIndicators" -Type DWord -Value 2147483650
Add-Type -AssemblyName System.Windows.Forms
If (!([System.Windows.Forms.Control]::IsKeyLocked('NumLock'))) {
$wsh = New-Object -ComObject WScript.Shell
$wsh.SendKeys('{NUMLOCK}')
}

# General: Permanently Delete Edge Shortcut From Desktop
Write-Host "Removing Edge browser shortcut from desktop..."
If (!(Test-Path "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\EdgeUpdate")) {
New-Item -Path "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\EdgeUpdate" | Out-Null
}
Set-ItemProperty -Path "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\EdgeUpdate" -Name "CreateDesktopShortcutDefault" -Type DWord -Value 0

# General: Windows should never ask for my feedback
if (!(Test-Path "HKCU:\SOFTWARE\Microsoft\Siuf")) {New-Item -Path "HKCU:\SOFTWARE\Microsoft\Siuf" -Type Folder | Out-Null}
if (!(Test-Path "HKCU:\SOFTWARE\Microsoft\Siuf\Rules")) {New-Item -Path "HKCU:\SOFTWARE\Microsoft\Siuf\Rules" -Type Folder | Out-Null}
Set-ItemProperty "HKCU:\SOFTWARE\Microsoft\Siuf\Rules" "NumberOfSIUFInPeriod" 0

# General: Disable Autoplay
Write-Host "Disabling Autoplay..."
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers" -Name "DisableAutoplay" -Type DWord -Value 1

# General: Disable Shared Experiences
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\CDP" -Name "RomeSdkChannelUserAuthzPolicy" -Type DWord -Value 0

# General: Show Task Manager Details
If (!(Test-Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\TaskManager")) {
New-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\TaskManager" -Force | Out-Null
}
$preferences = Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\TaskManager" -Name "Preferences" -ErrorAction SilentlyContinue
If (!($preferences)) {
$taskmgr = Start-Process -WindowStyle Hidden -FilePath taskmgr.exe -PassThru
While (!($preferences)) {
Start-Sleep -m 250
$preferences = Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\TaskManager" -Name "Preferences" -ErrorAction SilentlyContinue
}
Stop-Process $taskmgr
}
$preferences.Preferences[28] = 0
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\TaskManager" -Name "Preferences" -Type Binary -Value $preferences.Preferences

# General: Disable OneDrive
If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\OneDrive")) {
New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\OneDrive" | Out-Null
}
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\OneDrive" -Name "DisableFileSyncNGSC" -Type DWord -Value 1

# General: Disable Cortana
If (!(Test-Path "HKCU:\SOFTWARE\Microsoft\Personalization\Settings")) {
New-Item -Path "HKCU:\SOFTWARE\Microsoft\Personalization\Settings" -Force | Out-Null
}
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Personalization\Settings" -Name "AcceptedPrivacyPolicy" -Type DWord -Value 0
If (!(Test-Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization")) {
New-Item -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization" -Force | Out-Null
}
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization" -Name "RestrictImplicitTextCollection" -Type DWord -Value 1
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization" -Name "RestrictImplicitInkCollection" -Type DWord -Value 1
If (!(Test-Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore")) {
New-Item -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore" -Force | Out-Null
}
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore" -Name "HarvestContacts" -Type DWord -Value 0
If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search")) {
New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Force | Out-Null
}
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Name "AllowCortana" -Type DWord -Value 0

## AndyA: I use these
# Remove Default Printers
# Remove-Printer -Name "Microsoft XPS Document Writer" -ErrorAction:SilentlyContinue
# Remove-Printer -Name "Microsoft Print to PDF" -ErrorAction:SilentlyContinue
# Remove-Printer -Name "Fax" -ErrorAction:SilentlyContinue
#
# Set-Checkpoint -CheckpointName $checkpoint -CheckpointValue 1
#
# }
#
# function Remove-SystemBloat {
# $checkpoint = 'SystemBloat'
# $done = Get-Checkpoint -CheckpointName $checkpoint
#
# if ($done) {
# Write-BoxstarterMessage "$checkpoint is already removed"
# return
# }
3 changes: 0 additions & 3 deletions scripts/GetMLIDEAndTooling.ps1

This file was deleted.

5 changes: 0 additions & 5 deletions scripts/GetUwpSamplesOffGithub.ps1

This file was deleted.

Loading