mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2025-11-17 02:56:17 +00:00
Merge branch 'master' of https://github.com/Raphire/Win11Debloat
This commit is contained in:
1
Get.ps1
1
Get.ps1
@@ -64,6 +64,7 @@ param (
|
|||||||
[switch]$ExplorerToThisPC,
|
[switch]$ExplorerToThisPC,
|
||||||
[switch]$ExplorerToDownloads,
|
[switch]$ExplorerToDownloads,
|
||||||
[switch]$ExplorerToOneDrive,
|
[switch]$ExplorerToOneDrive,
|
||||||
|
[switch]$NoRestartExplorer,
|
||||||
[switch]$DisableOnedrive, [switch]$HideOnedrive,
|
[switch]$DisableOnedrive, [switch]$HideOnedrive,
|
||||||
[switch]$Disable3dObjects, [switch]$Hide3dObjects,
|
[switch]$Disable3dObjects, [switch]$Hide3dObjects,
|
||||||
[switch]$DisableMusic, [switch]$HideMusic,
|
[switch]$DisableMusic, [switch]$HideMusic,
|
||||||
|
|||||||
@@ -66,6 +66,7 @@ param (
|
|||||||
[switch]$ExplorerToThisPC,
|
[switch]$ExplorerToThisPC,
|
||||||
[switch]$ExplorerToDownloads,
|
[switch]$ExplorerToDownloads,
|
||||||
[switch]$ExplorerToOneDrive,
|
[switch]$ExplorerToOneDrive,
|
||||||
|
[switch]$NoRestartExplorer,
|
||||||
[switch]$DisableOnedrive, [switch]$HideOnedrive,
|
[switch]$DisableOnedrive, [switch]$HideOnedrive,
|
||||||
[switch]$Disable3dObjects, [switch]$Hide3dObjects,
|
[switch]$Disable3dObjects, [switch]$Hide3dObjects,
|
||||||
[switch]$DisableMusic, [switch]$HideMusic,
|
[switch]$DisableMusic, [switch]$HideMusic,
|
||||||
@@ -641,7 +642,7 @@ function RegImport {
|
|||||||
|
|
||||||
# Restart the Windows Explorer process
|
# Restart the Windows Explorer process
|
||||||
function RestartExplorer {
|
function RestartExplorer {
|
||||||
if ($script:Params.ContainsKey("Sysprep") -or $script:Params.ContainsKey("User")) {
|
if ($script:Params.ContainsKey("Sysprep") -or $script:Params.ContainsKey("User") -or $script:Params.ContainsKey("NoRestartExplorer")) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user