mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2025-11-17 11:06:18 +00:00
Cleanup / Linting
This commit is contained in:
2
Get.ps1
2
Get.ps1
@@ -60,7 +60,7 @@ param (
|
||||
|
||||
# Show error if current powershell environment does not have LanguageMode set to FullLanguage
|
||||
if ($ExecutionContext.SessionState.LanguageMode -ne "FullLanguage") {
|
||||
Write-Host "Error: Win11Debloat is unable to run on your system. Powershell execution is restricted by security policies" -ForegroundColor Red
|
||||
Write-Host "Error: Win11Debloat is unable to run on your system. PowerShell execution is restricted by security policies" -ForegroundColor Red
|
||||
Write-Output ""
|
||||
Write-Output "Press enter to exit..."
|
||||
Read-Host | Out-Null
|
||||
|
||||
@@ -144,7 +144,7 @@ Below is an overview of the key features and functionality offered by Win11Deblo
|
||||
|
||||
### Default Settings
|
||||
|
||||
The default mode allows you to quickly and easily apply the changes that are recommended for most people. This includes uninstalling apps that most would consider bloatware, removing many annoying distractions and disabling telemetry and tracking. Expand the section below for more information.
|
||||
Win11Debloat offers a 1-click default mode that allows you to quickly and easily apply the changes that are recommended for most people. This includes uninstalling apps that most would consider bloatware, removing many annoying distractions and disabling telemetry and tracking. Expand the section below for more information.
|
||||
|
||||
<details>
|
||||
<summary>Click to expand</summary>
|
||||
@@ -326,7 +326,7 @@ The default mode allows you to quickly and easily apply the changes that are rec
|
||||
- Microsoft.RemoteDesktop*
|
||||
- Windows.DevHome*
|
||||
|
||||
* Can be removed by running the script with the relevant parameter. (See parameters section below)
|
||||
* Can be removed by running the script with the relevant parameter. (Please refer to the wiki for more details)
|
||||
</blockquote>
|
||||
</details>
|
||||
</details>
|
||||
|
||||
@@ -581,7 +581,7 @@ function RestartExplorer {
|
||||
}
|
||||
|
||||
# Only restart if the powershell process matches the OS architecture.
|
||||
# Restarting explorer from a 32bit Powershell window will fail on a 64bit OS
|
||||
# Restarting explorer from a 32bit PowerShell window will fail on a 64bit OS
|
||||
if ([Environment]::Is64BitProcess -eq [Environment]::Is64BitOperatingSystem) {
|
||||
Stop-Process -processName: Explorer -Force
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user