mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2025-11-17 11:06:18 +00:00
Minor improvements & changes
* The script now clearly states no changes were made if the user doesn't select any during setup. * Updated info page inside the script. * Silent parameter now suppresses more prompts.
This commit is contained in:
@@ -3,8 +3,8 @@
|
|||||||
-------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------
|
||||||
Win11Debloat is a simple and lightweight powershell script that removes pre-installed
|
Win11Debloat is a simple and lightweight powershell script that removes pre-installed
|
||||||
windows bloatware apps, disables telemetry and declutters the experience by disabling
|
windows bloatware apps, disables telemetry and declutters the experience by disabling
|
||||||
or removing intrusive interface elements, ads and context menu items. No need to
|
or removing intrusive interface elements, ads and more. No need to painstakingly go
|
||||||
painstakingly go through all the settings yourself, or removing apps one by one!
|
through all the settings yourself, or removing apps one by one!
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------
|
||||||
Using the default configuration the script will
|
Using the default configuration the script will
|
||||||
@@ -12,12 +12,11 @@ painstakingly go through all the settings yourself, or removing apps one by one!
|
|||||||
- Remove bloatware apps, the list can be found in the 'Appslist.txt' file.
|
- Remove bloatware apps, the list can be found in the 'Appslist.txt' file.
|
||||||
- Disable telemetry, diagnostic data, app-launch tracking & targeted ads.
|
- Disable telemetry, diagnostic data, app-launch tracking & targeted ads.
|
||||||
- Disable bing search & cortana in windows search.
|
- Disable bing search & cortana in windows search.
|
||||||
- Disable tips & tricks on the lockscreen. (This may change your lockscreen wallpaper)
|
- Disable tips, tricks, suggestions and ads in start, settings, notifications, windows explorer, and on the lockscreen.
|
||||||
- Disable tips, tricks and suggestions in the start menu and settings, and ads in windows explorer.
|
|
||||||
- Show file extensions for known file types.
|
- Show file extensions for known file types.
|
||||||
- Disable the widget service & hide the widget (news and interests) icon from the taskbar.
|
- Disable the widget service & hide the widget (news and interests) icon from the taskbar.
|
||||||
- Hide the Chat (meet now) icon from the taskbar.
|
- Hide the Chat (meet now) icon from the taskbar.
|
||||||
- Hide the 3D objects folder in windows explorer. (Windows 10 only)
|
- Hide the 3D objects folder under 'This pc' in windows explorer. (Windows 10 only)
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------
|
||||||
Using the custom mode you can
|
Using the custom mode you can
|
||||||
@@ -25,17 +24,17 @@ painstakingly go through all the settings yourself, or removing apps one by one!
|
|||||||
- Remove bloatware apps, the list can be found in the 'Appslist.txt' file.
|
- Remove bloatware apps, the list can be found in the 'Appslist.txt' file.
|
||||||
- Remove gaming-related apps, the list can be found in the 'GamingAppslist.txt' file.
|
- Remove gaming-related apps, the list can be found in the 'GamingAppslist.txt' file.
|
||||||
- Disable telemetry, diagnostic data, app-launch tracking & targeted ads.
|
- Disable telemetry, diagnostic data, app-launch tracking & targeted ads.
|
||||||
- Disable bing search & cortana in windows search.
|
- Disable bing search, bing AI & cortana in windows search.
|
||||||
- Disable tips & tricks on the lockscreen. (This may change your lockscreen wallpaper)
|
- Disable tips, tricks, suggestions and ads in start, settings, notifications, windows explorer, and on the lockscreen.
|
||||||
- Disable tips, tricks and suggestions in the start menu and settings, and ads in windows explorer.
|
|
||||||
- Show hidden files, folders and drives.
|
- Show hidden files, folders and drives.
|
||||||
- Show file extensions for known file types.
|
- Show file extensions for known file types.
|
||||||
|
- Remove all pinned apps from the start menu. NOTE: This applies to all existing and new users. (Windows 11 update 22H2 or later only)
|
||||||
- Align taskbar icons to the left. (Windows 11 only)
|
- Align taskbar icons to the left. (Windows 11 only)
|
||||||
- Hide or change the search icon/box on the taskbar. (Windows 11 only)
|
- Hide or change the search icon/box on the taskbar. (Windows 11 only)
|
||||||
- Hide the taskview button from the taskbar. (Windows 11 only)
|
- Hide the taskview button from the taskbar. (Windows 11 only)
|
||||||
|
- Disable Windows copilot. (Windows 11 only)
|
||||||
- Disable the widget service & hide the widget (news and interests) icon from the taskbar.
|
- Disable the widget service & hide the widget (news and interests) icon from the taskbar.
|
||||||
- Hide the Chat (meet now) icon from the taskbar.
|
- Hide the chat (meet now) icon from the taskbar.
|
||||||
- Hide the 3D objects, music or onedrive folders in windows explorer. (Windows 10 only)
|
- Hide the 3D objects, music or onedrive folder in the windows explorer sidepanel. (Windows 10 only)
|
||||||
- Hide the 'Include in library', 'Give access to' and 'Share' options in the context menu. (Windows 10 only)
|
- Hide the 'Include in library', 'Give access to' and 'Share' options in the context menu. (Windows 10 only)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
290
Win11Debloat.ps1
290
Win11Debloat.ps1
@@ -156,7 +156,7 @@ function ClearStartMenu {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$SPParams = 'WhatIf', 'Confirm', 'Verbose'
|
$SPParams = 'WhatIf', 'Confirm', 'Verbose', 'Silent'
|
||||||
$SPParamCount = 0
|
$SPParamCount = 0
|
||||||
|
|
||||||
foreach ($param in $SPParams) {
|
foreach ($param in $SPParams) {
|
||||||
@@ -182,7 +182,7 @@ if ((-Not $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or (
|
|||||||
|
|
||||||
$Mode = Read-Host "Please select an option (1/2/0)"
|
$Mode = Read-Host "Please select an option (1/2/0)"
|
||||||
|
|
||||||
# Show information based on user input
|
# Show information based on user input, Suppress user prompt if Silent parameter was passed
|
||||||
if ($Mode -eq '0') {
|
if ($Mode -eq '0') {
|
||||||
Clear-Host
|
Clear-Host
|
||||||
|
|
||||||
@@ -194,7 +194,7 @@ if ((-Not $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or (
|
|||||||
Write-Output "Press any key to go back..."
|
Write-Output "Press any key to go back..."
|
||||||
$null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
|
$null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
|
||||||
}
|
}
|
||||||
elseif ($Mode -eq '1') {
|
elseif (-Not $Silent -and ($Mode -eq '1')) {
|
||||||
Clear-Host
|
Clear-Host
|
||||||
|
|
||||||
# Get & print default settings info from file
|
# Get & print default settings info from file
|
||||||
@@ -409,11 +409,14 @@ if ((-Not $PSBoundParameters.Count) -or $RunDefaults -or $RunWin11Defaults -or (
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Output ""
|
# Suppress prompt if Silent parameter was passed
|
||||||
Write-Output ""
|
if (-Not $Silent) {
|
||||||
Write-Output ""
|
Write-Output ""
|
||||||
Write-Output "Press any key to confirm your choices and execute the script..."
|
Write-Output ""
|
||||||
$null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
|
Write-Output ""
|
||||||
|
Write-Output "Press any key to confirm your choices and execute the script..."
|
||||||
|
$null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
|
||||||
|
}
|
||||||
|
|
||||||
Clear-Host
|
Clear-Host
|
||||||
Write-Output "-------------------------------------------------------------------------------------------"
|
Write-Output "-------------------------------------------------------------------------------------------"
|
||||||
@@ -430,140 +433,151 @@ else {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# Execute all selected/provided parameters
|
if ($SPParamCount -eq $PSBoundParameters.Keys.Count) {
|
||||||
switch ($PSBoundParameters.Keys) {
|
Write-Output "The script completed without making any changes."
|
||||||
'RemoveApps' {
|
|
||||||
RemoveApps "$PSScriptRoot/Appslist.txt" "> Removing pre-installed windows apps..."
|
# Suppress prompt if Silent parameter was passed
|
||||||
|
if(-Not $Silent) {
|
||||||
Write-Output ""
|
Write-Output ""
|
||||||
continue
|
Write-Output "Press any key to exit..."
|
||||||
}
|
$null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
|
||||||
'RemoveGamingApps' {
|
|
||||||
RemoveApps "$PSScriptRoot/GamingAppslist.txt" "> Removing gaming-related windows apps..."
|
|
||||||
Write-Output ""
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
'DisableTelemetry' {
|
|
||||||
RegImport "> Disabling telemetry, diagnostic data, app-launch tracking and targeted ads..." $PSScriptRoot\Regfiles\Disable_Telemetry.reg
|
|
||||||
Write-Output ""
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
{$_ -in "DisableBingSearches", "DisableBing"} {
|
|
||||||
RegImport "> Disabling bing search, bing AI & cortana in windows search..." $PSScriptRoot\Regfiles\Disable_Bing_Cortana_In_Search.reg
|
|
||||||
Write-Output ""
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
'DisableLockscreenTips' {
|
|
||||||
RegImport "> Disabling tips & tricks on the lockscreen..." $PSScriptRoot\Regfiles\Disable_Lockscreen_Tips.reg
|
|
||||||
Write-Output ""
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
{$_ -in "DisableSuggestions", "DisableWindowsSuggestions"} {
|
|
||||||
RegImport "> Disabling tips, tricks, suggestions and ads across Windows..." $PSScriptRoot\Regfiles\Disable_Windows_Suggestions.reg
|
|
||||||
Write-Output ""
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
'TaskbarAlignLeft' {
|
|
||||||
RegImport "> Aligning taskbar buttons to the left..." $PSScriptRoot\Regfiles\Align_Taskbar_Left.reg
|
|
||||||
Write-Output ""
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
'HideSearchTb' {
|
|
||||||
RegImport "> Hiding the search icon from the taskbar..." $PSScriptRoot\Regfiles\Hide_Search_Taskbar.reg
|
|
||||||
Write-Output ""
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
'ShowSearchIconTb' {
|
|
||||||
RegImport "> Changing taskbar search to icon only..." $PSScriptRoot\Regfiles\Show_Search_Icon.reg
|
|
||||||
Write-Output ""
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
'ShowSearchLabelTb' {
|
|
||||||
RegImport "> Changing taskbar search to icon with label..." $PSScriptRoot\Regfiles\Show_Search_Icon_And_Label.reg
|
|
||||||
Write-Output ""
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
'ShowSearchBoxTb' {
|
|
||||||
RegImport "> Changing taskbar search to search box..." $PSScriptRoot\Regfiles\Show_Search_Box.reg
|
|
||||||
Write-Output ""
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
'HideTaskview' {
|
|
||||||
RegImport "> Hiding the taskview button from the taskbar..." $PSScriptRoot\Regfiles\Hide_Taskview_Taskbar.reg
|
|
||||||
Write-Output ""
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
'DisableCopilot' {
|
|
||||||
RegImport "> Disabling Windows copilot..." $PSScriptRoot\Regfiles\Disable_Copilot.reg
|
|
||||||
Write-Output ""
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
{$_ -in "HideWidgets", "DisableWidgets"} {
|
|
||||||
RegImport "> Disabling the widget service and hiding the widget icon from the taskbar..." $PSScriptRoot\Regfiles\Disable_Widgets_Taskbar.reg
|
|
||||||
Write-Output ""
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
{$_ -in "HideChat", "DisableChat"} {
|
|
||||||
RegImport "> Hiding the chat icon from the taskbar..." $PSScriptRoot\Regfiles\Disable_Chat_Taskbar.reg
|
|
||||||
Write-Output ""
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
'ClearStart' {
|
|
||||||
ClearStartMenu "> Removing all pinned apps from the start menu..."
|
|
||||||
Write-Output ""
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
'ShowHiddenFolders' {
|
|
||||||
RegImport "> Unhiding hidden files, folders and drives..." $PSScriptRoot\Regfiles\Show_Hidden_Folders.reg
|
|
||||||
Write-Output ""
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
'ShowKnownFileExt' {
|
|
||||||
RegImport "> Enabling file extensions for known file types..." $PSScriptRoot\Regfiles\Show_Extensions_For_Known_File_Types.reg
|
|
||||||
Write-Output ""
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
{$_ -in "HideOnedrive", "DisableOnedrive"} {
|
|
||||||
RegImport "> Hiding the onedrive folder in windows explorer..." $PSScriptRoot\Regfiles\Hide_Onedrive_Folder.reg
|
|
||||||
Write-Output ""
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
{$_ -in "Hide3dObjects", "Disable3dObjects"} {
|
|
||||||
RegImport "> Hiding the 3D objects folder in windows explorer..." $PSScriptRoot\Regfiles\Hide_3D_Objects_Folder.reg
|
|
||||||
Write-Output ""
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
{$_ -in "HideMusic", "DisableMusic"} {
|
|
||||||
RegImport "> Hiding the music folder in windows explorer..." $PSScriptRoot\Regfiles\Hide_Music_folder.reg
|
|
||||||
Write-Output ""
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
{$_ -in "HideIncludeInLibrary", "DisableIncludeInLibrary"} {
|
|
||||||
RegImport "> Hiding 'Include in library' in the context menu..." $PSScriptRoot\Regfiles\Disable_Include_in_library_from_context_menu.reg
|
|
||||||
Write-Output ""
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
{$_ -in "HideGiveAccessTo", "DisableGiveAccessTo"} {
|
|
||||||
RegImport "> Hiding 'Give access to' in the context menu..." $PSScriptRoot\Regfiles\Disable_Give_access_to_context_menu.reg
|
|
||||||
Write-Output ""
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
{$_ -in "HideShare", "DisableShare"} {
|
|
||||||
RegImport "> Hiding 'Share' in the context menu..." $PSScriptRoot\Regfiles\Disable_Share_from_context_menu.reg
|
|
||||||
Write-Output ""
|
|
||||||
continue
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
# Execute all selected/provided parameters
|
||||||
|
switch ($PSBoundParameters.Keys) {
|
||||||
|
'RemoveApps' {
|
||||||
|
RemoveApps "$PSScriptRoot/Appslist.txt" "> Removing pre-installed windows apps..."
|
||||||
|
Write-Output ""
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
'RemoveGamingApps' {
|
||||||
|
RemoveApps "$PSScriptRoot/GamingAppslist.txt" "> Removing gaming-related windows apps..."
|
||||||
|
Write-Output ""
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
'DisableTelemetry' {
|
||||||
|
RegImport "> Disabling telemetry, diagnostic data, app-launch tracking and targeted ads..." $PSScriptRoot\Regfiles\Disable_Telemetry.reg
|
||||||
|
Write-Output ""
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
{$_ -in "DisableBingSearches", "DisableBing"} {
|
||||||
|
RegImport "> Disabling bing search, bing AI & cortana in windows search..." $PSScriptRoot\Regfiles\Disable_Bing_Cortana_In_Search.reg
|
||||||
|
Write-Output ""
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
'DisableLockscreenTips' {
|
||||||
|
RegImport "> Disabling tips & tricks on the lockscreen..." $PSScriptRoot\Regfiles\Disable_Lockscreen_Tips.reg
|
||||||
|
Write-Output ""
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
{$_ -in "DisableSuggestions", "DisableWindowsSuggestions"} {
|
||||||
|
RegImport "> Disabling tips, tricks, suggestions and ads across Windows..." $PSScriptRoot\Regfiles\Disable_Windows_Suggestions.reg
|
||||||
|
Write-Output ""
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
'TaskbarAlignLeft' {
|
||||||
|
RegImport "> Aligning taskbar buttons to the left..." $PSScriptRoot\Regfiles\Align_Taskbar_Left.reg
|
||||||
|
Write-Output ""
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
'HideSearchTb' {
|
||||||
|
RegImport "> Hiding the search icon from the taskbar..." $PSScriptRoot\Regfiles\Hide_Search_Taskbar.reg
|
||||||
|
Write-Output ""
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
'ShowSearchIconTb' {
|
||||||
|
RegImport "> Changing taskbar search to icon only..." $PSScriptRoot\Regfiles\Show_Search_Icon.reg
|
||||||
|
Write-Output ""
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
'ShowSearchLabelTb' {
|
||||||
|
RegImport "> Changing taskbar search to icon with label..." $PSScriptRoot\Regfiles\Show_Search_Icon_And_Label.reg
|
||||||
|
Write-Output ""
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
'ShowSearchBoxTb' {
|
||||||
|
RegImport "> Changing taskbar search to search box..." $PSScriptRoot\Regfiles\Show_Search_Box.reg
|
||||||
|
Write-Output ""
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
'HideTaskview' {
|
||||||
|
RegImport "> Hiding the taskview button from the taskbar..." $PSScriptRoot\Regfiles\Hide_Taskview_Taskbar.reg
|
||||||
|
Write-Output ""
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
'DisableCopilot' {
|
||||||
|
RegImport "> Disabling Windows copilot..." $PSScriptRoot\Regfiles\Disable_Copilot.reg
|
||||||
|
Write-Output ""
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
{$_ -in "HideWidgets", "DisableWidgets"} {
|
||||||
|
RegImport "> Disabling the widget service and hiding the widget icon from the taskbar..." $PSScriptRoot\Regfiles\Disable_Widgets_Taskbar.reg
|
||||||
|
Write-Output ""
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
{$_ -in "HideChat", "DisableChat"} {
|
||||||
|
RegImport "> Hiding the chat icon from the taskbar..." $PSScriptRoot\Regfiles\Disable_Chat_Taskbar.reg
|
||||||
|
Write-Output ""
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
'ClearStart' {
|
||||||
|
ClearStartMenu "> Removing all pinned apps from the start menu..."
|
||||||
|
Write-Output ""
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
'ShowHiddenFolders' {
|
||||||
|
RegImport "> Unhiding hidden files, folders and drives..." $PSScriptRoot\Regfiles\Show_Hidden_Folders.reg
|
||||||
|
Write-Output ""
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
'ShowKnownFileExt' {
|
||||||
|
RegImport "> Enabling file extensions for known file types..." $PSScriptRoot\Regfiles\Show_Extensions_For_Known_File_Types.reg
|
||||||
|
Write-Output ""
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
{$_ -in "HideOnedrive", "DisableOnedrive"} {
|
||||||
|
RegImport "> Hiding the onedrive folder in windows explorer..." $PSScriptRoot\Regfiles\Hide_Onedrive_Folder.reg
|
||||||
|
Write-Output ""
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
{$_ -in "Hide3dObjects", "Disable3dObjects"} {
|
||||||
|
RegImport "> Hiding the 3D objects folder in windows explorer..." $PSScriptRoot\Regfiles\Hide_3D_Objects_Folder.reg
|
||||||
|
Write-Output ""
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
{$_ -in "HideMusic", "DisableMusic"} {
|
||||||
|
RegImport "> Hiding the music folder in windows explorer..." $PSScriptRoot\Regfiles\Hide_Music_folder.reg
|
||||||
|
Write-Output ""
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
{$_ -in "HideIncludeInLibrary", "DisableIncludeInLibrary"} {
|
||||||
|
RegImport "> Hiding 'Include in library' in the context menu..." $PSScriptRoot\Regfiles\Disable_Include_in_library_from_context_menu.reg
|
||||||
|
Write-Output ""
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
{$_ -in "HideGiveAccessTo", "DisableGiveAccessTo"} {
|
||||||
|
RegImport "> Hiding 'Give access to' in the context menu..." $PSScriptRoot\Regfiles\Disable_Give_access_to_context_menu.reg
|
||||||
|
Write-Output ""
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
{$_ -in "HideShare", "DisableShare"} {
|
||||||
|
RegImport "> Hiding 'Share' in the context menu..." $PSScriptRoot\Regfiles\Disable_Share_from_context_menu.reg
|
||||||
|
Write-Output ""
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
RestartExplorer
|
RestartExplorer
|
||||||
|
|
||||||
Write-Output ""
|
|
||||||
Write-Output ""
|
|
||||||
Write-Output "Script completed successfully!"
|
|
||||||
|
|
||||||
# Suppress prompt if Silent parameter was passed
|
|
||||||
if(-Not $Silent) {
|
|
||||||
Write-Output ""
|
Write-Output ""
|
||||||
Write-Output "Press any key to exit..."
|
Write-Output ""
|
||||||
$null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
|
Write-Output "Script completed successfully!"
|
||||||
}
|
|
||||||
|
|
||||||
|
# Suppress prompt if Silent parameter was passed
|
||||||
|
if(-Not $Silent) {
|
||||||
|
Write-Output ""
|
||||||
|
Write-Output "Press any key to exit..."
|
||||||
|
$null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user