mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2025-11-17 11:06:18 +00:00
Add username to header in info and default mode overview screens
This commit is contained in:
@@ -1,6 +1,3 @@
|
|||||||
-------------------------------------------------------------------------------------------
|
|
||||||
Win11Debloat Script - Default Mode
|
|
||||||
-------------------------------------------------------------------------------------------
|
|
||||||
Win11Debloat will make the following changes:
|
Win11Debloat will make the following changes:
|
||||||
- Remove the default selection of apps, the list can be found in the 'Appslist.txt' file.
|
- Remove the default selection of 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.
|
||||||
@@ -14,3 +11,4 @@ Win11Debloat will make the following changes:
|
|||||||
- 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 in Windows Explorer. (Windows 10 only)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,3 @@
|
|||||||
-------------------------------------------------------------------------------------------
|
|
||||||
Win11Debloat Script - Information
|
|
||||||
-------------------------------------------------------------------------------------------
|
|
||||||
Win11Debloat is a simple, easy to use and lightweight PowerShell script that can remove
|
Win11Debloat is a simple, easy to use and lightweight PowerShell script that can remove
|
||||||
pre-installed Windows bloatware apps, disable telemetry and declutter the experience by
|
pre-installed Windows bloatware apps, disable telemetry and declutter the experience by
|
||||||
disabling or removing intrusive interface elements, ads and more. No need to go through
|
disabling or removing intrusive interface elements, ads and more. No need to go through
|
||||||
@@ -68,3 +65,4 @@ The default mode applies the changes that are recommended for most users. This i
|
|||||||
- Hide the 3D objects folder under 'This pc' from File Explorer. (W10 only)
|
- Hide the 3D objects folder under 'This pc' from File Explorer. (W10 only)
|
||||||
- Hide the 'Include in library', 'Give access to' and 'Share' options from the context menu. (W10 only)
|
- Hide the 'Include in library', 'Give access to' and 'Share' options from the context menu. (W10 only)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -711,11 +711,14 @@ function PrintHeader {
|
|||||||
|
|
||||||
function PrintFromFile {
|
function PrintFromFile {
|
||||||
param (
|
param (
|
||||||
$path
|
$path,
|
||||||
|
$title
|
||||||
)
|
)
|
||||||
|
|
||||||
Clear-Host
|
Clear-Host
|
||||||
|
|
||||||
|
PrintHeader $title
|
||||||
|
|
||||||
# Get & print script menu from file
|
# Get & print script menu from file
|
||||||
Foreach ($line in (Get-Content -Path $path )) {
|
Foreach ($line in (Get-Content -Path $path )) {
|
||||||
Write-Output $line
|
Write-Output $line
|
||||||
@@ -1299,9 +1302,8 @@ if ((-not $global:Params.Count) -or $RunDefaults -or $RunWin11Defaults -or $RunS
|
|||||||
# Show information based on user input, Suppress user prompt if Silent parameter was passed
|
# Show information based on user input, Suppress user prompt if Silent parameter was passed
|
||||||
if ($Mode -eq '0') {
|
if ($Mode -eq '0') {
|
||||||
# Get & print script information from file
|
# Get & print script information from file
|
||||||
PrintFromFile "$PSScriptRoot/Assets/Menus/Info"
|
PrintFromFile "$PSScriptRoot/Assets/Menus/Info" "Information"
|
||||||
|
|
||||||
Write-Output ""
|
|
||||||
Write-Output "Press any key to go back..."
|
Write-Output "Press any key to go back..."
|
||||||
$null = [System.Console]::ReadKey()
|
$null = [System.Console]::ReadKey()
|
||||||
}
|
}
|
||||||
@@ -1318,9 +1320,8 @@ if ((-not $global:Params.Count) -or $RunDefaults -or $RunWin11Defaults -or $RunS
|
|||||||
'1' {
|
'1' {
|
||||||
# Print the default settings & require userconfirmation, unless Silent parameter was passed
|
# Print the default settings & require userconfirmation, unless Silent parameter was passed
|
||||||
if (-not $Silent) {
|
if (-not $Silent) {
|
||||||
PrintFromFile "$PSScriptRoot/Assets/Menus/DefaultSettings"
|
PrintFromFile "$PSScriptRoot/Assets/Menus/DefaultSettings" "Default Mode"
|
||||||
|
|
||||||
Write-Output ""
|
|
||||||
Write-Output "Press enter to execute the script or press CTRL+C to quit..."
|
Write-Output "Press enter to execute the script or press CTRL+C to quit..."
|
||||||
Read-Host | Out-Null
|
Read-Host | Out-Null
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user