|
|
|
@@ -13,13 +13,13 @@ if (-Not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdenti
|
|
|
|
Write-Host ""
|
|
|
|
Write-Host ""
|
|
|
|
Write-Host -ForegroundColor Yellow "
|
|
|
|
Write-Host -ForegroundColor Yellow "
|
|
|
|
|
|
|
|
|
|
|
|
######################################################
|
|
|
|
######################################################
|
|
|
|
# #
|
|
|
|
# #
|
|
|
|
# #
|
|
|
|
# #
|
|
|
|
# SCRIPT FOR CONFIGURING AND DEBLOATING WINDOWS 11 #
|
|
|
|
# SCRIPT FOR CONFIGURING AND DEBLOATING WINDOWS 11 #
|
|
|
|
# #
|
|
|
|
# #
|
|
|
|
# by dado #
|
|
|
|
# by dado #
|
|
|
|
######################################################
|
|
|
|
######################################################
|
|
|
|
|
|
|
|
|
|
|
|
"
|
|
|
|
"
|
|
|
|
|
|
|
|
|
|
|
|
@@ -52,12 +52,6 @@ foreach ($path in $RegistryPaths) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# Set left align
|
|
|
|
|
|
|
|
#Write-Host -ForegroundColor DarkGray ">>> Set left align <<<"
|
|
|
|
|
|
|
|
#foreach ($path in $RegistryPaths[0..1]) {
|
|
|
|
|
|
|
|
# New-ItemProperty -Path $path -Name "TaskbarAl" -Value 0 -Type DWORD -Force | Out-Null
|
|
|
|
|
|
|
|
#}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Hide TaskView button
|
|
|
|
# Hide TaskView button
|
|
|
|
Write-Host -ForegroundColor DarkGray ">>> Hide TaskView button <<<"
|
|
|
|
Write-Host -ForegroundColor DarkGray ">>> Hide TaskView button <<<"
|
|
|
|
foreach ($path in $RegistryPaths[0..1]) {
|
|
|
|
foreach ($path in $RegistryPaths[0..1]) {
|
|
|
|
@@ -707,7 +701,7 @@ foreach ($app in $appsToRemove) {
|
|
|
|
$RegistryPaths = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent"
|
|
|
|
$RegistryPaths = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\CloudContent"
|
|
|
|
# Create the path if it doesn't exist
|
|
|
|
# Create the path if it doesn't exist
|
|
|
|
if (-not (Test-Path $RegistryPaths)) {
|
|
|
|
if (-not (Test-Path $RegistryPaths)) {
|
|
|
|
New-Item -Path $RegistryPaths -Force | Out-Null
|
|
|
|
New-Item -Path $RegistryPaths -Force
|
|
|
|
}
|
|
|
|
}
|
|
|
|
# Set the registry value to disable ads
|
|
|
|
# Set the registry value to disable ads
|
|
|
|
Set-ItemProperty -Path $RegistryPaths -Name "DisableConsumerAccountStateContent" -Value 1 -Type DWORD -Force | Out-Null
|
|
|
|
Set-ItemProperty -Path $RegistryPaths -Name "DisableConsumerAccountStateContent" -Value 1 -Type DWORD -Force | Out-Null
|
|
|
|
@@ -735,23 +729,7 @@ Write-Host ""
|
|
|
|
|
|
|
|
|
|
|
|
Write-Host -ForegroundColor Yellow ">>> Install default SOFTWARE... <<<"
|
|
|
|
Write-Host -ForegroundColor Yellow ">>> Install default SOFTWARE... <<<"
|
|
|
|
Write-Host ""
|
|
|
|
Write-Host ""
|
|
|
|
winget install --disable-interactivity SumatraPDF.SumatraPDF Microsoft.Edit Notepad++.Notepad++ 7zip.7zip Mozilla.Firefox Flameshot.Flameshot DuongDieuPhap.ImageGlass Microsoft.PowerToys Seelen.SeelenUI voidtools.Everything Flow-Launcher.Flow-Launcher --source winget
|
|
|
|
winget install --disable-interactivity SumatraPDF.SumatraPDF Microsoft.Edit Notepad++.Notepad++ 7zip.7zip Mozilla.Firefox Flameshot.Flameshot DuongDieuPhap.ImageGlass Microsoft.PowerToys Seelen.SeelenUI voidtools.Everything Flow-Launcher.Flow-Launcher WinDirStat.WinDirStat --source winget
|
|
|
|
|
|
|
|
|
|
|
|
# Microsoft.PowerShell NodirTemirkhodjaev.FortFirewall AutoHotkey.AutoHotkey Oracle.JavaRuntimeEnvironment Microsoft.VCRedist.2010.x64
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
####################################################################################################################################
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Write-Host -ForegroundColor DarkGray ">>> Copy 'Supremo' to Public Desktop <<<"
|
|
|
|
|
|
|
|
## Get the directory where the script is located
|
|
|
|
|
|
|
|
#$scriptDirectory = Split-Path -Parent $MyInvocation.MyCommand.Path
|
|
|
|
|
|
|
|
## Define the path to the supremo executable
|
|
|
|
|
|
|
|
#$supremo_path = Join-Path $scriptDirectory "supremo.exe"
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
#if (Test-Path $supremo_path ) {
|
|
|
|
|
|
|
|
# Copy-Item -Path "$supremo_path" -Destination "C:\Users\Public\Desktop\supremo.exe"
|
|
|
|
|
|
|
|
#} else {
|
|
|
|
|
|
|
|
# Write-Host -ForegroundColor Red "Error: File '$supremo_path' does not exist."
|
|
|
|
|
|
|
|
#}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Write-Host ""
|
|
|
|
Write-Host ""
|
|
|
|
|
|
|
|
|
|
|
|
|