mirror of
https://github.com/Disassembler0/Win10-Initial-Setup-Script.git
synced 2026-01-11 15:08:00 -05:00
Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f49b932407 | ||
|
|
159626f45b | ||
|
|
3b582a1f59 | ||
|
|
53058b1322 | ||
|
|
031848fcb9 | ||
|
|
e9d329f3d2 | ||
|
|
7062510cc1 | ||
|
|
0f26a47e0d | ||
|
|
95c66ecf21 | ||
|
|
6ce0765a03 | ||
|
|
12c2c533d5 | ||
|
|
8c9053cabc |
@@ -1,7 +1,7 @@
|
||||
##########
|
||||
# Win 10 / Server 2016 / Server 2019 Initial Setup Script - Default preset
|
||||
# Author: Disassembler <disassembler@dasm.cz>
|
||||
# Version: v3.4, 2018-12-19
|
||||
# Version: v3.6, 2019-01-28
|
||||
# Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
|
||||
##########
|
||||
|
||||
@@ -27,7 +27,8 @@ DisableErrorReporting # EnableErrorReporting
|
||||
# SetP2PUpdateLocal # SetP2PUpdateInternet # SetP2PUpdateDisable
|
||||
DisableDiagTrack # EnableDiagTrack
|
||||
DisableWAPPush # EnableWAPPush
|
||||
# HideRecentJumplists # ShowRecentJumplists
|
||||
# EnableClearRecentFiles # DisableClearRecentFiles
|
||||
# DisableRecentFiles # EnableRecentFiles
|
||||
|
||||
### Security Tweaks ###
|
||||
# SetUACLow # SetUACHigh
|
||||
@@ -72,6 +73,7 @@ DisableAutorun # EnableAutorun
|
||||
# DisableDefragmentation # EnableDefragmentation
|
||||
# DisableSuperfetch # EnableSuperfetch
|
||||
# DisableIndexing # EnableIndexing
|
||||
# DisableSwapFile # EnableSwapFile
|
||||
# DisableNTFSLastAccess # EnableNTFSLastAccess
|
||||
# SetBIOSTimeUTC # SetBIOSTimeLocal
|
||||
# EnableHibernation # DisableHibernation
|
||||
@@ -100,6 +102,7 @@ ShowTrayIcons # HideTrayIcons
|
||||
DisableSearchAppInStore # EnableSearchAppInStore
|
||||
DisableNewAppPrompt # EnableNewAppPrompt
|
||||
# HideRecentlyAddedApps # ShowRecentlyAddedApps
|
||||
# HideMostUsedApps # ShowMostUsedApps
|
||||
# SetControlPanelSmallIcons # SetControlPanelLargeIcons # SetControlPanelCategories
|
||||
DisableShortcutInName # EnableShortcutInName
|
||||
# HideShortcutArrow # ShowShortcutArrow
|
||||
@@ -108,6 +111,7 @@ SetVisualFXPerformance # SetVisualFXAppearance
|
||||
# EnableDarkTheme # DisableDarkTheme
|
||||
# AddENKeyboard # RemoveENKeyboard
|
||||
# EnableNumlock # DisableNumlock
|
||||
# DisableEnhPointerPrecision # EnableEnhPointerPrecision
|
||||
# SetSoundSchemeNone # SetSoundSchemeDefault
|
||||
# DisableStartupSound # EnableStartupSound
|
||||
# DisableChangingSoundScheme # EnableChangingSoundScheme
|
||||
@@ -158,6 +162,7 @@ DisableXboxFeatures # EnableXboxFeatures
|
||||
DisableAdobeFlash # EnableAdobeFlash
|
||||
DisableEdgePreload # EnableEdgePreload
|
||||
DisableEdgeShortcutCreation # EnableEdgeShortcutCreation
|
||||
DisableIEFirstRun # EnableIEFirstRun
|
||||
# UninstallMediaPlayer # InstallMediaPlayer
|
||||
# UninstallInternetExplorer # InstallInternetExplorer
|
||||
# UninstallWorkFolders # InstallWorkFolders
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
##########
|
||||
# Win 10 / Server 2016 / Server 2019 Initial Setup Script - Main execution loop
|
||||
# Author: Disassembler <disassembler@dasm.cz>
|
||||
# Version: v3.4, 2018-12-19
|
||||
# Version: v3.6, 2019-01-28
|
||||
# Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
|
||||
##########
|
||||
|
||||
@@ -19,10 +19,10 @@ $PSCommandArgs = @()
|
||||
Function AddOrRemoveTweak($tweak) {
|
||||
If ($tweak[0] -eq "!") {
|
||||
# If the name starts with exclamation mark (!), exclude the tweak from selection
|
||||
$global:tweaks = $global:tweaks | Where-Object { $_ -ne $tweak.Substring(1) }
|
||||
$script:tweaks = $script:tweaks | Where-Object { $_ -ne $tweak.Substring(1) }
|
||||
} ElseIf ($tweak -ne "") {
|
||||
# Otherwise add the tweak
|
||||
$global:tweaks += $tweak
|
||||
$script:tweaks += $tweak
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
129
Win10.psm1
129
Win10.psm1
@@ -1,7 +1,7 @@
|
||||
##########
|
||||
# Win 10 / Server 2016 / Server 2019 Initial Setup Script - Tweak library
|
||||
# Author: Disassembler <disassembler@dasm.cz>
|
||||
# Version: v3.4, 2018-12-19
|
||||
# Version: v3.6, 2019-01-28
|
||||
# Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
|
||||
##########
|
||||
|
||||
@@ -23,6 +23,10 @@ Function DisableTelemetry {
|
||||
New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\PreviewBuilds" -Force | Out-Null
|
||||
}
|
||||
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\PreviewBuilds" -Name "AllowBuildPreview" -Type DWord -Value 0
|
||||
If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\Software Protection Platform")) {
|
||||
New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\Software Protection Platform" -Force | Out-Null
|
||||
}
|
||||
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\Software Protection Platform" -Name "NoGenTicket" -Type DWord -Value 1
|
||||
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
|
||||
@@ -38,6 +42,7 @@ Function EnableTelemetry {
|
||||
Set-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Policies\DataCollection" -Name "AllowTelemetry" -Type DWord -Value 3
|
||||
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DataCollection" -Name "AllowTelemetry" -ErrorAction SilentlyContinue
|
||||
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\PreviewBuilds" -Name "AllowBuildPreview" -ErrorAction SilentlyContinue
|
||||
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\Software Protection Platform" -Name "NoGenTicket" -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
|
||||
@@ -432,16 +437,36 @@ Function EnableWAPPush {
|
||||
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\dmwappushservice" -Name "DelayedAutoStart" -Type DWord -Value 1
|
||||
}
|
||||
|
||||
# Hide recently opened items in Jump Lists on Start or the taskbar
|
||||
Function HideRecentJumplists {
|
||||
Write-Output "Hiding recently opened items in Jump Lists..."
|
||||
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "Start_TrackDocs" -Type DWord -Value 0
|
||||
# Enable clearing of recent files on exit
|
||||
# Empties most recently used (MRU) items lists such as 'Recent Items' menu on the Start menu, jump lists, and shortcuts at the bottom of the 'File' menu in applications during every logout.
|
||||
Function EnableClearRecentFiles {
|
||||
Write-Output "Enabling clearing of recent files on exit..."
|
||||
If (!(Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer")) {
|
||||
New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" | Out-Null
|
||||
}
|
||||
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" -Name "ClearRecentDocsOnExit" -Type DWord -Value 1
|
||||
}
|
||||
|
||||
# Show recently opened items in Jump Lists on Start or the taskbar
|
||||
Function ShowRecentJumplists {
|
||||
Write-Output "Showing recently opened items in Jump Lists..."
|
||||
Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "Start_TrackDocs" -ErrorAction SilentlyContinue
|
||||
# Disable clearing of recent files on exit
|
||||
Function DisableClearRecentFiles {
|
||||
Write-Output "Disabling clearing of recent files on exit..."
|
||||
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" -Name "ClearRecentDocsOnExit" -ErrorAction SilentlyContinue
|
||||
}
|
||||
|
||||
# Disable recent files lists
|
||||
# Stops creating most recently used (MRU) items lists such as 'Recent Items' menu on the Start menu, jump lists, and shortcuts at the bottom of the 'File' menu in applications.
|
||||
Function DisableRecentFiles {
|
||||
Write-Output "Disabling recent files lists..."
|
||||
If (!(Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer")) {
|
||||
New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" | Out-Null
|
||||
}
|
||||
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" -Name "NoRecentDocsHistory" -Type DWord -Value 1
|
||||
}
|
||||
|
||||
# Enable recent files lists
|
||||
Function EnableRecentFiles {
|
||||
Write-Output "Enabling recent files lists..."
|
||||
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" -Name "NoRecentDocsHistory" -ErrorAction SilentlyContinue
|
||||
}
|
||||
|
||||
##########
|
||||
@@ -876,10 +901,6 @@ Function DisableUpdateDriver {
|
||||
New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Device Metadata" -Force | Out-Null
|
||||
}
|
||||
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Device Metadata" -Name "PreventDeviceMetadataFromNetwork" -Type DWord -Value 1
|
||||
If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions")) {
|
||||
New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions" -Force | Out-Null
|
||||
}
|
||||
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions" -Name "DenyUnspecified" -Type DWord -Value 1
|
||||
If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching")) {
|
||||
New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Force | Out-Null
|
||||
}
|
||||
@@ -896,7 +917,6 @@ Function DisableUpdateDriver {
|
||||
Function EnableUpdateDriver {
|
||||
Write-Output "Enabling driver offering through Windows Update..."
|
||||
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Device Metadata" -Name "PreventDeviceMetadataFromNetwork" -ErrorAction SilentlyContinue
|
||||
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceInstall\Restrictions" -Name "DenyUnspecified" -ErrorAction SilentlyContinue
|
||||
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DontPromptForWindowsUpdate" -ErrorAction SilentlyContinue
|
||||
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DontSearchWindowsUpdate" -ErrorAction SilentlyContinue
|
||||
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" -Name "DriverUpdateWizardWuSearchEnabled" -ErrorAction SilentlyContinue
|
||||
@@ -1086,6 +1106,19 @@ Function EnableIndexing {
|
||||
Start-Service "WSearch" -WarningAction SilentlyContinue
|
||||
}
|
||||
|
||||
# Disable Modern UI swap file
|
||||
# This disables creation and use of swapfile.sys and frees 256 MB of disk space. Swapfile.sys is used only by Modern UI apps. The tweak has no effect on the real swap in pagefile.sys.
|
||||
Function DisableSwapFile {
|
||||
Write-Output "Disabling Modern UI swap file..."
|
||||
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "SwapfileControl" -Type Dword -Value 0
|
||||
}
|
||||
|
||||
# Enable Modern UI swap file
|
||||
Function EnableSwapFile {
|
||||
Write-Output "Enabling Modern UI swap file..."
|
||||
Remove-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" -Name "SwapfileControl" -ErrorAction SilentlyContinue
|
||||
}
|
||||
|
||||
# Disable the updating of the NTFS Last Access Time stamps
|
||||
Function DisableNTFSLastAccess {
|
||||
Write-Output "Disabling the updating of the Last Access Time stamps..."
|
||||
@@ -1203,7 +1236,6 @@ Function EnableAutoRebootOnCrash {
|
||||
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\CrashControl" -Name "AutoReboot" -Type DWord -Value 1
|
||||
}
|
||||
|
||||
|
||||
##########
|
||||
#endregion Service Tweaks
|
||||
##########
|
||||
@@ -1498,21 +1530,36 @@ Function EnableNewAppPrompt {
|
||||
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer" -Name "NoNewAppAlert" -ErrorAction SilentlyContinue
|
||||
}
|
||||
|
||||
# Hide 'Recently added' list from Start Menu
|
||||
# Hide 'Recently added' list from the Start Menu
|
||||
Function HideRecentlyAddedApps {
|
||||
Write-Output "Hiding 'Recently added' list from Start Menu..."
|
||||
Write-Output "Hiding 'Recently added' list from the Start Menu..."
|
||||
If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer")) {
|
||||
New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer" | Out-Null
|
||||
}
|
||||
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer" -Name "HideRecentlyAddedApps" -Type DWord -Value 1
|
||||
}
|
||||
|
||||
# Show 'Recently added' list in Start Menu
|
||||
# Show 'Recently added' list in the Start Menu
|
||||
Function ShowRecentlyAddedApps {
|
||||
Write-Output "Showing 'Recently added' list in Start Menu..."
|
||||
Write-Output "Showing 'Recently added' list in the Start Menu..."
|
||||
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Explorer" -Name "HideRecentlyAddedApps" -ErrorAction SilentlyContinue
|
||||
}
|
||||
|
||||
# Hide 'Most used' apps list from the Start Menu - Applicable until 1703 (hidden by default since then)
|
||||
Function HideMostUsedApps {
|
||||
Write-Output "Hiding 'Most used' apps list from the Start Menu..."
|
||||
If (!(Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer")) {
|
||||
New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" | Out-Null
|
||||
}
|
||||
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" -Name "NoStartMenuMFUprogramsList" -Type DWord -Value 1
|
||||
}
|
||||
|
||||
# Show 'Most used' apps list in the Start Menu - Applicable until 1703 (GPO broken since then)
|
||||
Function ShowMostUsedApps {
|
||||
Write-Output "Showing 'Most used' apps list in the Start Menu..."
|
||||
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" -Name "NoStartMenuMFUprogramsList" -ErrorAction SilentlyContinue
|
||||
}
|
||||
|
||||
# Set Control Panel view to Small icons (Classic)
|
||||
Function SetControlPanelSmallIcons {
|
||||
Write-Output "Setting Control Panel view to small icons..."
|
||||
@@ -1558,17 +1605,13 @@ Function HideShortcutArrow {
|
||||
If (!(Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons")) {
|
||||
New-Item -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" | Out-Null
|
||||
}
|
||||
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" -Name "29" -Type String -Value "%windir%\System32\shell32.dll,-50"
|
||||
# Clean icon cache to prevent black squares showing in place of arrows
|
||||
Remove-Item -Path "$env:LOCALAPPDATA\Microsoft\Windows\Explorer\iconcache*" -Force -ErrorAction SilentlyContinue
|
||||
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" -Name "29" -Type String -Value "%SystemRoot%\System32\imageres.dll,-1015"
|
||||
}
|
||||
|
||||
# Show shortcut icon arrow
|
||||
Function ShowShortcutArrow {
|
||||
Write-Output "Showing shortcut icon arrow..."
|
||||
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" -Name "29" -ErrorAction SilentlyContinue
|
||||
# Clean icon cache
|
||||
Remove-Item -Path "$env:LOCALAPPDATA\Microsoft\Windows\Explorer\iconcache*" -Force -ErrorAction SilentlyContinue
|
||||
}
|
||||
|
||||
# Adjusts visual effects for performance - Disables animations, transparency etc. but leaves font smoothing and miniatures enabled
|
||||
@@ -1668,6 +1711,22 @@ Function DisableNumlock {
|
||||
}
|
||||
}
|
||||
|
||||
# Disable enhanced pointer precision
|
||||
Function DisableEnhPointerPrecision {
|
||||
Write-Output "Disabling enhanced pointer precision..."
|
||||
Set-ItemProperty -Path "HKCU:\Control Panel\Mouse" -Name "MouseSpeed" -Type String -Value "0"
|
||||
Set-ItemProperty -Path "HKCU:\Control Panel\Mouse" -Name "MouseThreshold1" -Type String -Value "0"
|
||||
Set-ItemProperty -Path "HKCU:\Control Panel\Mouse" -Name "MouseThreshold2" -Type String -Value "0"
|
||||
}
|
||||
|
||||
# Enable enhanced pointer precision
|
||||
Function EnableEnhPointerPrecision {
|
||||
Write-Output "Enabling enhanced pointer precision..."
|
||||
Set-ItemProperty -Path "HKCU:\Control Panel\Mouse" -Name "MouseSpeed" -Type String -Value "1"
|
||||
Set-ItemProperty -Path "HKCU:\Control Panel\Mouse" -Name "MouseThreshold1" -Type String -Value "6"
|
||||
Set-ItemProperty -Path "HKCU:\Control Panel\Mouse" -Name "MouseThreshold2" -Type String -Value "10"
|
||||
}
|
||||
|
||||
# Set sound scheme to No Sounds
|
||||
Function SetSoundSchemeNone {
|
||||
Write-Output "Setting sound scheme to No Sounds..."
|
||||
@@ -1846,15 +1905,16 @@ Function ShowSyncNotifications {
|
||||
}
|
||||
|
||||
# Hide recently and frequently used item shortcuts in Explorer
|
||||
# Note: This is only UI tweak to hide the shortcuts. In order to stop creating most recently used (MRU) items lists everywhere, use privacy tweak 'DisableRecentFiles' instead.
|
||||
Function HideRecentShortcuts {
|
||||
Write-Output "Hiding recent shortcuts..."
|
||||
Write-Output "Hiding recent shortcuts in Explorer..."
|
||||
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer" -Name "ShowRecent" -Type DWord -Value 0
|
||||
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer" -Name "ShowFrequent" -Type DWord -Value 0
|
||||
}
|
||||
|
||||
# Show recently and frequently used item shortcuts in Explorer
|
||||
Function ShowRecentShortcuts {
|
||||
Write-Output "Showing recent shortcuts..."
|
||||
Write-Output "Showing recent shortcuts in Explorer..."
|
||||
Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer" -Name "ShowRecent" -ErrorAction SilentlyContinue
|
||||
Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer" -Name "ShowFrequent" -ErrorAction SilentlyContinue
|
||||
}
|
||||
@@ -2374,7 +2434,6 @@ Function UninstallMsftBloat {
|
||||
Get-AppxPackage "Microsoft.WebMediaExtensions" | Remove-AppxPackage
|
||||
Get-AppxPackage "Microsoft.MixedReality.Portal" | Remove-AppxPackage
|
||||
Get-AppxPackage "Microsoft.YourPhone" | Remove-AppxPackage
|
||||
Get-AppxPackage "Microsoft.ScreenSketch" | Remove-AppxPackage
|
||||
}
|
||||
|
||||
# Install default Microsoft applications
|
||||
@@ -2424,7 +2483,6 @@ Function InstallMsftBloat {
|
||||
Get-AppxPackage -AllUsers "Microsoft.WebMediaExtensions" | ForEach-Object {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
|
||||
Get-AppxPackage -AllUsers "Microsoft.MixedReality.Portal" | ForEach-Object {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
|
||||
Get-AppxPackage -AllUsers "Microsoft.YourPhone" | ForEach-Object {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
|
||||
Get-AppxPackage -AllUsers "Microsoft.ScreenSketch" | ForEach-Object {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
|
||||
}
|
||||
# In case you have removed them for good, you can try to restore the files using installation medium as follows
|
||||
# New-Item C:\Mnt -Type Directory | Out-Null
|
||||
@@ -2610,6 +2668,21 @@ Function EnableEdgeShortcutCreation {
|
||||
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" -Name "DisableEdgeDesktopShortcutCreation" -ErrorAction SilentlyContinue
|
||||
}
|
||||
|
||||
# Disable Internet Explorer first run wizard
|
||||
Function DisableIEFirstRun {
|
||||
Write-Output "Disabling Internet Explorer first run wizard..."
|
||||
If (!(Test-Path "HKLM:\SOFTWARE\Policies\Microsoft\Internet Explorer\Main")) {
|
||||
New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Internet Explorer\Main" -Force | Out-Null
|
||||
}
|
||||
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Internet Explorer\Main" -Name "DisableFirstRunCustomize" -Type DWord -Value 1
|
||||
}
|
||||
|
||||
# Enable Internet Explorer first run wizard
|
||||
Function EnableIEFirstRun {
|
||||
Write-Output "Disabling Internet Explorer first run wizard..."
|
||||
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Internet Explorer\Main" -Name "DisableFirstRunCustomize" -ErrorAction SilentlyContinue
|
||||
}
|
||||
|
||||
# Uninstall Windows Media Player
|
||||
Function UninstallMediaPlayer {
|
||||
Write-Output "Uninstalling Windows Media Player..."
|
||||
|
||||
Reference in New Issue
Block a user