Functions
Functions
Function None3{
}
#
Function InstallFTTProgs {
Write-Output "Installing Chocolatey"
Set-ExecutionPolicy Bypass -Scope Process -Force;
[System.Net.ServicePointManager]::SecurityProtocol =
[System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object
System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install chocolatey-core.extension -y
Write-Output "Running O&O Shutup with Recommended Settings"
Import-Module BitsTransfer
Start-BitsTransfer -Source "https://dl5.oo-
software.com/files/ooshutup10/OOSU10.exe" -Destination OOSU10.exe
.\OOSU10.exe ooshutup10.cfg /quiet
}
#
Function InstallAdobe {
Write-Output "Installing Adobe Acrobat Reader"
choco install adobereader -y
}
#
Function DoNotInstallAdobe {
Write-Output "Not installing Adobe Acrobat Reader"
}
#
Function InstallJava {
Write-Output "Installing Java"
choco install jre8 -y
}
#
Function DoInstallJava {
Write-Output "Not installing Java"
}
#
Function Install7Zip {
Write-Output "Installing 7-Zip"
choco install 7zip -y
}
#
Function DoNotInstall7Zip {
Write-Output "Not installing 7-Zip"
}
#
Function InstallIrfanview {
Write-Output "Installing Irfanview"
choco install irfanview -y
}
#
Function DoNotInstallIrfanview {
Write-Output "Not installing Irfanview"
}
#
Function InstallNotepadplusplus {
Write-Output "Installing Notepad++"
choco install notepadplusplus -y
}
#
Function DoNotInstallNotepadplusplus {
Write-Output "Not installing Notepad++"
}
#
Function InstallMediaPlayerClassic {
Write-Output "Installing Media Player Classic (VLC Alternative)"
choco install mpc-hc -y
}
#
Function DoNotInstallMediaPlayerClassic {
Write-Output "Not installing Media Player Classic (VLC Alternative)"
}
#
Function InstallVLCMediaPlayer {
Write-Output "Installing VLC"
choco install vlc -y
}
#
Function DoNotInstallVLCMediaPlayer {
Write-Output "Not installing VLC"
}
#
Function InstallBrave {
Write-Output "Installing Brave"
Invoke-WebRequest -Uri "https://laptop-updates.brave.com/download/CHR253"
-OutFile $env:USERPROFILE\Downloads\brave.exe
~/Downloads/brave.exe
}
#
Function DoNotInstallBrave {
Write-Output "Not installing Brave"
}
#
Function FTTRegistryTweaks {
Write-Output "Improving Windows Update to delay Feature updates and only
install Security Updates"
$UpdatesPath = "HKLM:\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings"
If (!(Get-ItemProperty $UpdatesPath BranchReadinessLevel)) { New-
ItemProperty -Path $UpdatesPath -Name "BranchReadinessLevel" -Type DWord -Value
20 }
Set-ItemProperty -Path $UpdatesPath -Name "BranchReadinessLevel" -Type DWord
-Value 20
If (!(Get-ItemProperty $UpdatesPath DeferFeatureUpdatesPeriodInDays)) { New-
ItemProperty -Path $UpdatesPath -Name "DeferFeatureUpdatesPeriodInDays" -Type DWord
-Value 365 }
Set-ItemProperty -Path $UpdatesPath -Name "DeferFeatureUpdatesPeriodInDays"
-Type DWord -Value 365
If (!(Get-ItemProperty $UpdatesPath DeferQualityUpdatesPeriodInDays)) { New-
ItemProperty -Path $UpdatesPath -Name "DeferQualityUpdatesPeriodInDays" -Type DWord
-Value 4 }
Set-ItemProperty -Path $UpdatesPath -Name "DeferQualityUpdatesPeriodInDays"
-Type DWord -Value 4
If (!(Get-ItemProperty $UpdatesPath ActiveHoursEnd)) { New-ItemProperty
-Path $UpdatesPath -Name "ActiveHoursEnd" -Type DWord -Value 2 }
Set-ItemProperty -Path $UpdatesPath -Name "ActiveHoursEnd" -Type DWord -Value
2
If (!(Get-ItemProperty $UpdatesPath DeferQualityUpdatesPeriodInDays)) { New-
ItemProperty -Path $UpdatesPath -Name "ActiveHoursStart" -Type DWord -Value 8 }
Set-ItemProperty -Path $UpdatesPath -Name "ActiveHoursStart" -Type DWord
-Value 8
}
#
Function NoFTTRegistryTweaks{
Write-Output "No Registry Tweaks"
}
#
Function ChangeDefaultApps {
Write-Output "Setting Default Programs - Notepad++ Brave VLC IrFanView"
Import-Module BitsTransfer
Start-BitsTransfer -Source .\MyDefaultAppAssociations.xml -Destination
$HOME\Desktop\MyDefaultAppAssociations.xml
dism /online /Import-DefaultAppAssociations:"%UserProfile
%\Desktop\MyDefaultAppAssociations.xml"
}
#
Function DoNotChangeDefaultApps{
Write-Output "Do Not Change DefaultApps"
}
# Disable Telemetry
Function DisableTelemetry {
Write-Output "Disabling Telemetry..."
Set-ItemProperty -Path
"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" -Name
"AllowTelemetry" -Type DWord -Value 0
Set-ItemProperty -Path
"HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Policies\DataCollectio
n" -Name "AllowTelemetry" -Type DWord -Value 0
Set-ItemProperty -Path
"HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection" -Name "AllowTelemetry"
-Type DWord -Value 0
Disable-ScheduledTask -TaskName "Microsoft\Windows\Application
Experience\Microsoft Compatibility Appraiser" | Out-Null
Disable-ScheduledTask -TaskName "Microsoft\Windows\Application
Experience\ProgramDataUpdater" | Out-Null
Disable-ScheduledTask -TaskName "Microsoft\Windows\Autochk\Proxy" | Out-Null
Disable-ScheduledTask -TaskName "Microsoft\Windows\Customer Experience
Improvement Program\Consolidator" | Out-Null
Disable-ScheduledTask -TaskName "Microsoft\Windows\Customer Experience
Improvement Program\UsbCeip" | Out-Null
Disable-ScheduledTask -TaskName "Microsoft\Windows\DiskDiagnostic\Microsoft-
Windows-DiskDiagnosticDataCollector" | Out-Null
}
# Enable Telemetry
Function EnableTelemetry {
Write-Output "Enabling Telemetry..."
Set-ItemProperty -Path
"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\DataCollection" -Name
"AllowTelemetry" -Type DWord -Value 3
Set-ItemProperty -Path
"HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Policies\DataCollectio
n" -Name "AllowTelemetry" -Type DWord -Value 3
Remove-ItemProperty -Path
"HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection" -Name "AllowTelemetry"
-ErrorAction SilentlyContinue
Enable-ScheduledTask -TaskName "Microsoft\Windows\Application
Experience\Microsoft Compatibility Appraiser" | Out-Null
Enable-ScheduledTask -TaskName "Microsoft\Windows\Application
Experience\ProgramDataUpdater" | Out-Null
Enable-ScheduledTask -TaskName "Microsoft\Windows\Autochk\Proxy" | Out-Null
Enable-ScheduledTask -TaskName "Microsoft\Windows\Customer Experience
Improvement Program\Consolidator" | Out-Null
Enable-ScheduledTask -TaskName "Microsoft\Windows\Customer Experience
Improvement Program\UsbCeip" | Out-Null
Enable-ScheduledTask -TaskName "Microsoft\Windows\DiskDiagnostic\Microsoft-
Windows-DiskDiagnosticDataCollector" | Out-Null
}
# Disable Activity History feed in Task View - Note: The checkbox "Let Windows
collect my activities from this PC" remains checked even when the function is
disabled
Function DisableActivityHistory {
Write-Output "Disabling Activity History..."
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System"
-Name "EnableActivityFeed" -Type DWord -Value 0
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System"
-Name "PublishUserActivities" -Type DWord -Value 0
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System"
-Name "UploadUserActivities" -Type DWord -Value 0
}
# Disable Background application access - ie. if apps can download or update when
they aren't used - Cortana is excluded as its inclusion breaks start menu search
Function DisableBackgroundApps {
Write-Output "Disabling Background application access..."
Get-ChildItem -Path
"HKCU:\Software\Microsoft\Windows\CurrentVersion\BackgroundAccessApplications"
-Exclude "Microsoft.Windows.Cortana*" | ForEach {
Set-ItemProperty -Path $_.PsPath -Name "Disabled" -Type DWord -Value 1
Set-ItemProperty -Path $_.PsPath -Name "DisabledByUser" -Type DWord
-Value 1
}
}
# Disable Feedback
Function DisableFeedback {
Write-Output "Disabling Feedback..."
If (!(Test-Path "HKCU:\SOFTWARE\Microsoft\Siuf\Rules")) {
New-Item -Path "HKCU:\SOFTWARE\Microsoft\Siuf\Rules" -Force | Out-Null
}
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Siuf\Rules" -Name
"NumberOfSIUFInPeriod" -Type DWord -Value 0
Set-ItemProperty -Path
"HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection" -Name
"DoNotShowFeedbackNotifications" -Type DWord -Value 1
Disable-ScheduledTask -TaskName "Microsoft\Windows\Feedback\Siuf\DmClient"
-ErrorAction SilentlyContinue | Out-Null
Disable-ScheduledTask -TaskName
"Microsoft\Windows\Feedback\Siuf\DmClientOnScenarioDownload" -ErrorAction
SilentlyContinue | Out-Null
}
# Enable Feedback
Function EnableFeedback {
Write-Output "Enabling Feedback..."
Remove-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Siuf\Rules" -Name
"NumberOfSIUFInPeriod" -ErrorAction SilentlyContinue
Remove-ItemProperty -Path
"HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection" -Name
"DoNotShowFeedbackNotifications" -ErrorAction SilentlyContinue
Enable-ScheduledTask -TaskName "Microsoft\Windows\Feedback\Siuf\DmClient"
-ErrorAction SilentlyContinue | Out-Null
Enable-ScheduledTask -TaskName
"Microsoft\Windows\Feedback\Siuf\DmClientOnScenarioDownload" -ErrorAction
SilentlyContinue | Out-Null
}
# Disable Advertising ID
Function DisableAdvertisingID {
Write-Output "Disabling Advertising ID..."
If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo"))
{
New-Item -Path
"HKLM:\SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo" | Out-Null
}
Set-ItemProperty -Path
"HKLM:\SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo" -Name
"DisabledByGroupPolicy" -Type DWord -Value 1
}
# Enable Advertising ID
Function EnableAdvertisingID {
Write-Output "Enabling Advertising ID..."
Remove-ItemProperty -Path
"HKLM:\SOFTWARE\Policies\Microsoft\Windows\AdvertisingInfo" -Name
"DisabledByGroupPolicy" -ErrorAction SilentlyContinue
}
# Disable Cortana
Function DisableCortana {
Write-Output "Disabling 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
}
# Enable Cortana
Function EnableCortana {
Write-Output "Enabling Cortana..."
Remove-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Personalization\Settings"
-Name "AcceptedPrivacyPolicy" -ErrorAction SilentlyContinue
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" -Name
"RestrictImplicitTextCollection" -Type DWord -Value 0
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\InputPersonalization" -Name
"RestrictImplicitInkCollection" -Type DWord -Value 0
Remove-ItemProperty -Path
"HKCU:\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore" -Name
"HarvestContacts" -ErrorAction SilentlyContinue
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows
Search" -Name "AllowCortana" -ErrorAction SilentlyContinue
}
# Disable SMB Server - Completely disables file and printer sharing, but leaves the
system able to connect to another SMB server as a client
Function DisableSMBServer {
Write-Output "Disabling SMB Server..."
Set-SmbServerConfiguration -EnableSMB1Protocol $false -Force
Set-SmbServerConfiguration -EnableSMB2Protocol $false -Force
}
# Set current network profile to private (allow file sharing, device discovery,
etc.)
Function SetCurrentNetworkPrivate {
Write-Output "Setting current network profile to private..."
Set-NetConnectionProfile -NetworkCategory Private
}
# Set current network profile to public (deny file sharing, device discovery, etc.)
Function SetCurrentNetworkPublic {
Write-Output "Setting current network profile to public..."
Set-NetConnectionProfile -NetworkCategory Public
}
# Set unknown networks profile to private (allow file sharing, device discovery,
etc.)
Function SetUnknownNetworksPrivate {
Write-Output "Setting unknown networks profile to private..."
If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows
NT\CurrentVersion\NetworkList\Signatures\010103000F0000F0010000000F0000F0C967A3643C
3AD745950DA7859209176EF5B87C875FA20DF21951640E807D7C24")) {
New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows
NT\CurrentVersion\NetworkList\Signatures\010103000F0000F0010000000F0000F0C967A3643C
3AD745950DA7859209176EF5B87C875FA20DF21951640E807D7C24" -Force | Out-Null
}
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows
NT\CurrentVersion\NetworkList\Signatures\010103000F0000F0010000000F0000F0C967A3643C
3AD745950DA7859209176EF5B87C875FA20DF21951640E807D7C24" -Name "Category" -Type
DWord -Value 1
}
# Set unknown networks profile to public (deny file sharing, device discovery,
etc.)
Function SetUnknownNetworksPublic {
Write-Output "Setting unknown networks profile to public..."
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows
NT\CurrentVersion\NetworkList\Signatures\010103000F0000F0010000000F0000F0C967A3643C
3AD745950DA7859209176EF5B87C875FA20DF21951640E807D7C24" -Name "Category"
-ErrorAction SilentlyContinue
}
# Disable Firewall
Function DisableFirewall {
Write-Output "Disabling Firewall..."
If (!(Test-Path
"HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile")) {
New-Item -Path
"HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile" -Force | Out-
Null
}
Set-ItemProperty -Path
"HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile" -Name
"EnableFirewall" -Type DWord -Value 0
}
# Enable Firewall
Function EnableFirewall {
Write-Output "Enabling Firewall..."
Remove-ItemProperty -Path
"HKLM:\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile" -Name
"EnableFirewall" -ErrorAction SilentlyContinue
}
# Enable Core Isolation Memory Integrity - Part of Windows Defender System Guard
virtualization-based security - Supported from 1803
Function EnableCIMemoryIntegrity {
Write-Output "Enabling Core Isolation Memory Integrity..."
If (!(Test-Path
"HKLM:\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCod
eIntegrity")) {
New-Item -Path
"HKLM:\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCod
eIntegrity" -Force | Out-Null
}
Set-ItemProperty -Path
"HKLM:\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCod
eIntegrity" -Name "Enabled" -Type DWord -Value 1
}
# Stop and disable Home Groups services - Not applicable to 1803 and newer or
Server
Function DisableHomeGroups {
Write-Output "Stopping and disabling Home Groups services..."
Stop-Service "HomeGroupListener" -WarningAction SilentlyContinue
Set-Service "HomeGroupListener" -StartupType Disabled
Stop-Service "HomeGroupProvider" -WarningAction SilentlyContinue
Set-Service "HomeGroupProvider" -StartupType Disabled
}
# Enable and start Home Groups services - Not applicable to 1803 and newer or
Server
Function EnableHomeGroups {
Write-Output "Starting and enabling Home Groups services..."
Set-Service "HomeGroupListener" -StartupType Manual
Set-Service "HomeGroupProvider" -StartupType Manual
Start-Service "HomeGroupProvider" -WarningAction SilentlyContinue
}
# Disable Autoplay
Function DisableAutoplay {
Write-Output "Disabling Autoplay..."
Set-ItemProperty -Path
"HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers" -Name
"DisableAutoplay" -Type DWord -Value 1
}
# Enable Autoplay
Function EnableAutoplay {
Write-Output "Enabling Autoplay..."
Set-ItemProperty -Path
"HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers" -Name
"DisableAutoplay" -Type DWord -Value 0
}
# Disable Hibernation
Function DisableHibernation {
Write-Output "Disabling Hibernation..."
Set-ItemProperty -Path "HKLM:\System\CurrentControlSet\Control\Session
Manager\Power" -Name "HibernteEnabled" -Type Dword -Value 0
If (!(Test-Path
"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FlyoutMenuSettings")) {
New-Item -Path
"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FlyoutMenuSettings" |
Out-Null
}
Set-ItemProperty -Path
"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FlyoutMenuSettings" -Name
"ShowHibernateOption" -Type Dword -Value 0
}
# Show Task Manager details - Applicable to 1607 and later - Although this
functionality exist even in earlier versions, the Task Manager's behavior is
different there and is not compatible with this tweak
Function ShowTaskManagerDetails {
Write-Output "Showing task manager details..."
$taskmgr = Start-Process -WindowStyle Hidden -FilePath taskmgr.exe -PassThru
Do {
Start-Sleep -Milliseconds 100
$preferences = Get-ItemProperty -Path
"HKCU:\Software\Microsoft\Windows\CurrentVersion\TaskManager" -Name "Preferences"
-ErrorAction SilentlyContinue
} Until ($preferences)
Stop-Process $taskmgr
$preferences.Preferences[28] = 0
Set-ItemProperty -Path
"HKCU:\Software\Microsoft\Windows\CurrentVersion\TaskManager" -Name "Preferences"
-Type Binary -Value $preferences.Preferences
}
# Hide Desktop icon from This PC - The icon remains in personal folders and
open/save dialogs
Function HideDesktopFromThisPC {
Write-Output "Hiding Desktop icon from This PC..."
Remove-Item -Path
"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\
{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}" -Recurse -ErrorAction SilentlyContinue
}
# Hide Desktop icon from Explorer namespace - Hides the icon also from personal
folders and open/save dialogs
Function HideDesktopFromExplorer {
Write-Output "Hiding Desktop icon from Explorer namespace..."
Set-ItemProperty -Path
"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\
{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}\PropertyBag" -Name "ThisPCPolicy" -Type
String -Value "Hide"
Set-ItemProperty -Path
"HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescrip
tions\{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}\PropertyBag" -Name "ThisPCPolicy"
-Type String -Value "Hide"
}
# Hide Documents icon from This PC - The icon remains in personal folders and
open/save dialogs
Function HideDocumentsFromThisPC {
Write-Output "Hiding Documents icon from This PC..."
Remove-Item -Path
"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\
{d3162b92-9365-467a-956b-92703aca08af}" -Recurse -ErrorAction SilentlyContinue
Remove-Item -Path
"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\
{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}" -Recurse -ErrorAction SilentlyContinue
}
# Hide Documents icon from Explorer namespace - Hides the icon also from personal
folders and open/save dialogs
Function HideDocumentsFromExplorer {
Write-Output "Hiding Documents icon from Explorer namespace..."
Set-ItemProperty -Path
"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\
{f42ee2d3-909f-4907-8871-4c22fc0bf756}\PropertyBag" -Name "ThisPCPolicy" -Type
String -Value "Hide"
Set-ItemProperty -Path
"HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescrip
tions\{f42ee2d3-909f-4907-8871-4c22fc0bf756}\PropertyBag" -Name "ThisPCPolicy"
-Type String -Value "Hide"
}
# Hide Downloads icon from This PC - The icon remains in personal folders and
open/save dialogs
Function HideDownloadsFromThisPC {
Write-Output "Hiding Downloads icon from This PC..."
Remove-Item -Path
"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\
{088e3905-0323-4b02-9826-5d99428e115f}" -Recurse -ErrorAction SilentlyContinue
Remove-Item -Path
"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\
{374DE290-123F-4565-9164-39C4925E467B}" -Recurse -ErrorAction SilentlyContinue
}
# Hide Downloads icon from Explorer namespace - Hides the icon also from personal
folders and open/save dialogs
Function HideDownloadsFromExplorer {
Write-Output "Hiding Downloads icon from Explorer namespace..."
Set-ItemProperty -Path
"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\
{7d83ee9b-2244-4e70-b1f5-5393042af1e4}\PropertyBag" -Name "ThisPCPolicy" -Type
String -Value "Hide"
Set-ItemProperty -Path
"HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescrip
tions\{7d83ee9b-2244-4e70-b1f5-5393042af1e4}\PropertyBag" -Name "ThisPCPolicy"
-Type String -Value "Hide"
}
# Hide Music icon from This PC - The icon remains in personal folders and open/save
dialogs
Function HideMusicFromThisPC {
Write-Output "Hiding Music icon from 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
}
# Hide Music icon from Explorer namespace - Hides the icon also from personal
folders and open/save dialogs
Function HideMusicFromExplorer {
Write-Output "Hiding Music icon from Explorer namespace..."
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\FolderDescrip
tions\{a0c69a99-21c8-4671-8703-7934162fcf1d}\PropertyBag" -Name "ThisPCPolicy"
-Type String -Value "Hide"
}
# Hide Pictures icon from This PC - The icon remains in personal folders and
open/save dialogs
Function HidePicturesFromThisPC {
Write-Output "Hiding Pictures icon from This PC..."
Remove-Item -Path
"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\
{24ad3ad4-a569-4530-98e1-ab02f9417aa8}" -Recurse -ErrorAction SilentlyContinue
Remove-Item -Path
"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\
{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}" -Recurse -ErrorAction SilentlyContinue
}
# Hide Pictures icon from Explorer namespace - Hides the icon also from personal
folders and open/save dialogs
Function HidePicturesFromExplorer {
Write-Output "Hiding Pictures icon from Explorer namespace..."
Set-ItemProperty -Path
"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions\
{0ddd015d-b06c-45d5-8c4c-f59713854639}\PropertyBag" -Name "ThisPCPolicy" -Type
String -Value "Hide"
Set-ItemProperty -Path
"HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\FolderDescrip
tions\{0ddd015d-b06c-45d5-8c4c-f59713854639}\PropertyBag" -Name "ThisPCPolicy"
-Type String -Value "Hide"
}
# Hide Videos icon from This PC - The icon remains in personal folders and
open/save dialogs
Function HideVideosFromThisPC {
Write-Output "Hiding Videos icon 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
}
# Hide Videos icon from Explorer namespace - Hides the icon also from personal
folders and open/save dialogs
Function HideVideosFromExplorer {
Write-Output "Hiding Videos icon from Explorer namespace..."
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\FolderDescrip
tions\{35286a68-3c57-41a1-bbb1-0eae73d76c95}\PropertyBag" -Name "ThisPCPolicy"
-Type String -Value "Hide"
}
# Hide 3D Objects icon from This PC - The icon remains in personal folders and
open/save dialogs
Function Hide3DObjectsFromThisPC {
Write-Output "Hiding 3D Objects icon from This PC..."
Remove-Item -Path
"HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\
{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" -Recurse -ErrorAction SilentlyContinue
}
# Enable thumbnails
Function EnableThumbnails {
Write-Output "Enabling thumbnails..."
Set-ItemProperty -Path
"HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name
"IconsOnly" -Type DWord -Value 0
}
# Disable OneDrive
Function DisableOneDrive {
Write-Output "Disabling 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
}
# Enable OneDrive
Function EnableOneDrive {
Write-Output "Enabling OneDrive..."
Remove-ItemProperty -Path
"HKLM:\SOFTWARE\Policies\Microsoft\Windows\OneDrive" -Name "DisableFileSyncNGSC"
-ErrorAction SilentlyContinue
}
# Set Photo Viewer association for bmp, gif, jpg, png and tif
Function SetPhotoViewerAssociation {
Write-Output "Setting Photo Viewer association for bmp, gif, jpg, png and
tif..."
If (!(Test-Path "HKCR:")) {
New-PSDrive -Name HKCR -PSProvider Registry -Root HKEY_CLASSES_ROOT |
Out-Null
}
ForEach ($type in @("Paint.Picture", "giffile", "jpegfile", "pngfile")) {
New-Item -Path $("HKCR:\$type\shell\open") -Force | Out-Null
New-Item -Path $("HKCR:\$type\shell\open\command") | Out-Null
Set-ItemProperty -Path $("HKCR:\$type\shell\open") -Name "MuiVerb"
-Type ExpandString -Value "@%ProgramFiles%\Windows Photo Viewer\photoviewer.dll,-
3043"
Set-ItemProperty -Path $("HKCR:\$type\shell\open\command") -Name
"(Default)" -Type ExpandString -Value "%SystemRoot%\System32\rundll32.exe
`"%ProgramFiles%\Windows Photo Viewer\PhotoViewer.dll`", ImageView_Fullscreen %1"
}
}
# Unset Photo Viewer association for bmp, gif, jpg, png and tif
Function UnsetPhotoViewerAssociation {
Write-Output "Unsetting Photo Viewer association for bmp, gif, jpg, png and
tif..."
If (!(Test-Path "HKCR:")) {
New-PSDrive -Name HKCR -PSProvider Registry -Root HKEY_CLASSES_ROOT |
Out-Null
}
Remove-Item -Path "HKCR:\Paint.Picture\shell\open" -Recurse -ErrorAction
SilentlyContinue
Remove-ItemProperty -Path "HKCR:\giffile\shell\open" -Name "MuiVerb"
-ErrorAction SilentlyContinue
Set-ItemProperty -Path "HKCR:\giffile\shell\open" -Name "CommandId" -Type
String -Value "IE.File"
Set-ItemProperty -Path "HKCR:\giffile\shell\open\command" -Name "(Default)"
-Type String -Value "`"$env:SystemDrive\Program Files\Internet
Explorer\iexplore.exe`" %1"
Set-ItemProperty -Path "HKCR:\giffile\shell\open\command" -Name
"DelegateExecute" -Type String -Value "{17FE9752-0B5A-4665-84CD-569794602F5C}"
Remove-Item -Path "HKCR:\jpegfile\shell\open" -Recurse -ErrorAction
SilentlyContinue
Remove-Item -Path "HKCR:\pngfile\shell\open" -Recurse -ErrorAction
SilentlyContinue
}
# Enable Audio
Function EnableAudio {
Write-Output "Enabling Audio..."
Set-Service "Audiosrv" -StartupType Automatic
Start-Service "Audiosrv" -WarningAction SilentlyContinue
}
# Disable Audio
Function DisableAudio {
Write-Output "Disabling Audio..."
Stop-Service "Audiosrv" -WarningAction SilentlyContinue
Set-Service "Audiosrv" -StartupType Manual
}
# Unpin all Start Menu tiles - Note: This function has no counterpart. You have to
pin the tiles back manually.
Function UnpinStartMenuTiles {
Write-Output "Unpinning all Start Menu tiles..."
If ([System.Environment]::OSVersion.Version.Build -ge 15063 -And
[System.Environment]::OSVersion.Version.Build -le 16299) {
Get-ChildItem -Path
"HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\CloudStore\Store\Cache\DefaultAcco
unt" -Include "*.group" -Recurse | ForEach-Object {
$data = (Get-ItemProperty -Path "$($_.PsPath)\Current" -Name
"Data").Data -Join ","
$data = $data.Substring(0, $data.IndexOf(",0,202,30") + 9) +
",0,202,80,0,0"
Set-ItemProperty -Path "$($_.PsPath)\Current" -Name "Data" -Type
Binary -Value $data.Split(",")
}
} ElseIf ([System.Environment]::OSVersion.Version.Build -eq 17133) {
$key = Get-ChildItem -Path
"HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\CloudStore\Store\Cache\DefaultAcco
unt" -Recurse | Where-Object { $_ -like
"*start.tilegrid`$windows.data.curatedtilecollection.tilecollection\Current" }
$data = (Get-ItemProperty -Path $key.PSPath -Name "Data").Data[0..25] +
([byte[]](202,50,0,226,44,1,1,0,0))
Set-ItemProperty -Path $key.PSPath -Name "Data" -Type Binary -Value
$data
}
}
# Unpin all Taskbar icons - Note: This function has no counterpart. You have to pin
the icons back manually.
Function UnpinTaskbarIcons {
Write-Output "Unpinning all Taskbar icons..."
Set-ItemProperty -Path
"HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Taskband" -Name
"Favorites" -Type Binary -Value ([byte[]](255))
Remove-ItemProperty -Path
"HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Taskband" -Name
"FavoritesResolve" -ErrorAction SilentlyContinue
}
# Restart computer
Function Restart {
Write-Output "Restarting..."
Restart-Computer
}
#
Function EnableDarkMode {
Write-Output "Enabling Dark Mode"
Set-ItemProperty -Path
HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name
AppsUseLightTheme -Value 0
}
#
Function DisableDarkMode {
Write-Output "Disabling Dark Mode"
Remove-ItemProperty -Path
HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name
AppsUseLightTheme
}
#
Function Stop_EdgePDF {
#
Function CreateRestorePoint {
Write-Output "Creating Restore Point incase something bad happens"
Enable-ComputerRestore -Drive "C:\"
Checkpoint-Computer -Description "RestorePoint1" -RestorePointType
"MODIFY_SETTINGS"
}
#
Function DebloatAll {
$Bloatware = @(
"Microsoft.BingNews"
"Microsoft.GetHelp"
"Microsoft.Getstarted"
"Microsoft.Messaging"
"Microsoft.Microsoft3DViewer"
"Microsoft.MicrosoftSolitaireCollection"
"Microsoft.NetworkSpeedTest"
"Microsoft.News"
"Microsoft.Office.Lens"
"Microsoft.Office.Sway"
"Microsoft.OneConnect"
"Microsoft.People"
"Microsoft.Print3D"
"Microsoft.SkypeApp"
"Microsoft.StorePurchaseApp"
"Microsoft.Whiteboard"
"Microsoft.WindowsAlarms"
"microsoft.windowscommunicationsapps"
"Microsoft.WindowsFeedbackHub"
"Microsoft.WindowsMaps"
"Microsoft.WindowsSoundRecorder"
"Microsoft.ZuneMusic"
"Microsoft.ZuneVideo"
"*EclipseManager*"
"*ActiproSoftwareLLC*"
"*AdobeSystemsIncorporated.AdobePhotoshopExpress*"
"*Duolingo-LearnLanguagesforFree*"
"*PandoraMediaInc*"
"*CandyCrush*"
"*BubbleWitch3Saga*"
"*Wunderlist*"
"*Flipboard*"
"*Twitter*"
"*Facebook*"
"*Spotify*"
"*Royal Revolt*"
"*Sway*"
"*Speed Test*"
"*Dolby*"
#"*Microsoft.Advertising.Xaml_10.1712.5.0_x64__8wekyb3d8bbwe*"
#"*Microsoft.Advertising.Xaml_10.1712.5.0_x86__8wekyb3d8bbwe*"
#"*Microsoft.BingWeather*"
#"*Microsoft.MSPaint*"
#"*Microsoft.MicrosoftStickyNotes*"
#"*Microsoft.Windows.Photos*"
#"*Microsoft.WindowsCalculator*"
#"*Microsoft.WindowsStore*"
)
foreach ($Bloat in $Bloatware) {
Get-AppxPackage -Name $Bloat| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like $Bloat
| Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove $Bloat."
}
}
#
Function DoNotDebloatAll {
Write-Output "Do Not Debloat All"
}
#
Function MicrosoftBingNews {
Get-AppxPackage -Name Microsoft.BingNews| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
Microsoft.BingNews | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove Microsoft.BingNews."
}
#
Function MicrosoftGetHelp {
Get-AppxPackage -Name Microsoft.GetHelp| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
Microsoft.GetHelp | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove Microsoft.GetHelp."
}
#
Function MicrosoftGetstarted {
Get-AppxPackage -Name Microsoft.Getstarted| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
Microsoft.Getstarted | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove Microsoft.Getstarted."
}
#
Function MicrosoftMessaging {
Get-AppxPackage -Name Microsoft.Messaging"| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
Microsoft.Messaging" | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove Microsoft.Messaging."
}
#
Function MicrosoftMicrosoft3DViewer {
Get-AppxPackage -Name Microsoft.Microsoft3DViewer| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
Microsoft.Microsoft3DViewer | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove Microsoft.Microsoft3DViewer."
}
#
Function MicrosoftMicrosoftSolitaireCollection {
Get-AppxPackage -Name Microsoft.MicrosoftSolitaireCollection| Remove-
AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
Microsoft.MicrosoftSolitaireCollection | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove Microsoft.MicrosoftSolitaireCollection."
}
#
Function MicrosoftNetworkSpeedTest {
Get-AppxPackage -Name Microsoft.NetworkSpeedTest| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
Microsoft.NetworkSpeedTest | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove Microsoft.NetworkSpeedTest."
}
#
Function MicrosoftNews {
Get-AppxPackage -Name Microsoft.News| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
Microsoft.News | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove Microsoft.News."
}
#
Function MicrosoftOfficeLens {
Get-AppxPackage -Name Microsoft.Office.Lens| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
Microsoft.Office.Lens | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove Microsoft.Office.Lens."
}
#
Function MicrosoftOfficeSway {
Get-AppxPackage -Name Microsoft.Office.Sway| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
Microsoft.Office.Sway | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove Microsoft.Office.Sway."
}
#
Function MicrosoftOneConnect {
Get-AppxPackage -Name Microsoft.OneConnect| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
Microsoft.OneConnect | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove Microsoft.OneConnect."
}
#
Function MicrosoftPeople {
Get-AppxPackage -Name Microsoft.People| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
Microsoft.People | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove Microsoft.People."
}
#
Function MicrosoftPrint3D {
Get-AppxPackage -Name Microsoft.Print3D| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
Microsoft.Print3D | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove Microsoft.Print3D."
}
#
Function MicrosoftSkypeApp {
Get-AppxPackage -Name Microsoft.SkypeApp| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
Microsoft.SkypeApp | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove Microsoft.SkypeApp."
}
#
Function MicrosoftStorePurchaseApp {
Get-AppxPackage -Name Microsoft.StorePurchaseApp| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
Microsoft.StorePurchaseApp | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove Microsoft.StorePurchaseApp."
}
#
Function MicrosoftWhiteboard {
Get-AppxPackage -Name Microsoft.Whiteboard| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
Microsoft.Whiteboard | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove Microsoft.Whiteboard."
}
#
Function MicrosoftWindowsAlarms {
Get-AppxPackage -Name Microsoft.WindowsAlarms| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
Microsoft.WindowsAlarms | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove Microsoft.WindowsAlarms."
}
#
Function microsoftwindowscommunicationsapps {
Get-AppxPackage -Name microsoft.windowscommunicationsapps| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
microsoft.windowscommunicationsapps | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove microsoft.windowscommunicationsapps."
}
#
Function MicrosoftWindowsFeedbackHub {
Get-AppxPackage -Name Microsoft.WindowsFeedbackHub| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
Microsoft.WindowsFeedbackHub | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove Microsoft.WindowsFeedbackHub."
}
#
Function MicrosoftWindowsMaps {
Get-AppxPackage -Name Microsoft.WindowsMaps| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
Microsoft.WindowsMaps | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove Microsoft.WindowsMaps."
}
#
Function MicrosoftWindowsSoundRecorder {
Get-AppxPackage -Name Microsoft.WindowsSoundRecorder| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
Microsoft.WindowsSoundRecorder | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove Microsoft.WindowsSoundRecorder."
}
#
Function MicrosoftZuneMusic {
Get-AppxPackage -Name Microsoft.ZuneMusic| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
Microsoft.ZuneMusic | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove Microsoft.ZuneMusic."
}
#
Function MicrosoftZuneVideo {
Get-AppxPackage -Name Microsoft.ZuneVideo| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
Microsoft.ZuneVideo | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove Microsoft.ZuneVideo."
}
#
Function EclipseManager {
Get-AppxPackage -Name *EclipseManager*| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
*EclipseManager* | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove *EclipseManager*."
}
#
Function ActiproSoftwareLLC {
Get-AppxPackage -Name *ActiproSoftwareLLC*| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
*ActiproSoftwareLLC* | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove *ActiproSoftwareLLC*."
}
#
Function AdobeSystemsIncorporatedAdobePhotoshopExpress {
Get-AppxPackage -Name *AdobeSystemsIncorporated.AdobePhotoshopExpress*| Remove-
AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
*AdobeSystemsIncorporated.AdobePhotoshopExpress* | Remove-AppxProvisionedPackage
-Online
Write-Output "Trying to remove
*AdobeSystemsIncorporated.AdobePhotoshopExpress*."
}
#
Function Duolingo_LearnLanguagesforFree {
Get-AppxPackage -Name *Duolingo-LearnLanguagesforFree*| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Duolingo-
LearnLanguagesforFree* | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove *Duolingo-LearnLanguagesforFree*."
}
#
Function PandoraMediaInc {
Get-AppxPackage -Name *PandoraMediaInc*| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
*PandoraMediaInc* | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove *PandoraMediaInc*."
}
#
Function CandyCrush {
Get-AppxPackage -Name *CandyCrush*| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
*CandyCrush* | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove *CandyCrush*."
}
#
Function BubbleWitch3Saga {
Get-AppxPackage -Name *BubbleWitch3Saga*| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
*BubbleWitch3Saga* | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove *BubbleWitch3Saga*."
}
#
Function Wunderlist {
Get-AppxPackage -Name *Wunderlist*| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
*Wunderlist* | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove *Wunderlist*."
}
#
Function Flipboard {
Get-AppxPackage -Name *Flipboard*| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Flipboard*
| Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove *Flipboard*."
}
#
Function Twitter {
Get-AppxPackage -Name *Twitter*| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Twitter* |
Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove *Twitter*."
}
#
Function Facebook {
Get-AppxPackage -Name *Facebook*| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Facebook*
| Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove *Facebook*."
}
#
Function Spotify {
Get-AppxPackage -Name *Spotify*| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Spotify* |
Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove *Spotify*."
}
#
Function RoyalRevolt {
Get-AppxPackage -Name *RoyalRevolt*| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
*RoyalRevolt* | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove *RoyalRevolt*."
}
#
Function Sway {
Get-AppxPackage -Name *Sway*| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Sway* |
Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove *Sway*."
}
#
Function SpeedTest {
Get-AppxPackage -Name *SpeedTest*| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *SpeedTest*
| Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove *SpeedTest*."
}
#
Function Dolby {
Get-AppxPackage -Name *Dolby*| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like *Dolby* |
Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove *Dolby*."
}
#
Function MicrosoftAdvertisingXaml_10171250_x64__8wekyb3d8bbwe {
Get-AppxPackage -Name
*Microsoft.Advertising.Xaml_10.1712.5.0_x64__8wekyb3d8bbwe*| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
*Microsoft.Advertising.Xaml_10.1712.5.0_x64__8wekyb3d8bbwe* | Remove-
AppxProvisionedPackage -Online
Write-Output "Trying to remove
*Microsoft.Advertising.Xaml_10.1712.5.0_x64__8wekyb3d8bbwe*."
}
#
Function MicrosoftAdvertisingXaml_10171250_x86__8wekyb3d8bbwe {
Get-AppxPackage -Name
*Microsoft.Advertising.Xaml_10.1712.5.0_x86__8wekyb3d8bbwe*| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
*Microsoft.Advertising.Xaml_10.1712.5.0_x86__8wekyb3d8bbwe* | Remove-
AppxProvisionedPackage -Online
Write-Output "Trying to remove
*Microsoft.Advertising.Xaml_10.1712.5.0_x86__8wekyb3d8bbwe*."
}
#
Function MicrosoftBingWeather {
Get-AppxPackage -Name *Microsoft.BingWeather*| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
*Microsoft.BingWeather* | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove *Microsoft.BingWeather*."
}
#
Function MicrosoftMSPaint {
Get-AppxPackage -Name *Microsoft.MSPaint*| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
*Microsoft.MSPaint* | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove *Microsoft.MSPaint*."
}
#
Function MicrosoftMicrosoftStickyNotes {
Get-AppxPackage -Name *Microsoft.MicrosoftStickyNotes*| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
*Microsoft.MicrosoftStickyNotes* | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove *Microsoft.MicrosoftStickyNotes*."
}
#
Function MicrosoftWindowsPhotos {
Get-AppxPackage -Name *Microsoft.Windows.Photos*| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
*Microsoft.Windows.Photos* | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove *Microsoft.Windows.Photos*."
}
#
Function MicrosoftWindowsCalculator {
Get-AppxPackage -Name *Microsoft.WindowsCalculator*| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
*Microsoft.WindowsCalculator* | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove *Microsoft.WindowsCalculator*."
}
#
Function MicrosoftWindowsStore {
Get-AppxPackage -Name *Microsoft.WindowsStore*| Remove-AppxPackage
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like
*Microsoft.WindowsStore* | Remove-AppxProvisionedPackage -Online
Write-Output "Trying to remove *Microsoft.WindowsStore*."
}
#
Function None {
}
#
Function None2 {
}