minor changes

This commit is contained in:
dado
2025-10-18 14:36:46 +02:00
parent 3ee88aac48
commit 1b95401e61

View File

@@ -168,7 +168,7 @@ $Properties = @{
# Iterate over each registry path # Iterate over each registry path
foreach ($RegistryPath in $RegistryPaths) { foreach ($RegistryPath in $RegistryPaths) {
# Create the key if it does not exist # Create the key if it does not exist
If (-NOT (Test-Path $RegistryPath)) { if (-NOT (Test-Path $RegistryPath)) {
New-Item -Path $RegistryPath -Force | Out-Null New-Item -Path $RegistryPath -Force | Out-Null
} }
@@ -206,7 +206,7 @@ $ExplorerProperties = @{
} }
foreach ($RegistryPath in $RegistryPaths) { foreach ($RegistryPath in $RegistryPaths) {
If (-NOT (Test-Path $RegistryPath)) { if (-NOT (Test-Path $RegistryPath)) {
New-Item -Path $RegistryPath -Force | Out-Null New-Item -Path $RegistryPath -Force | Out-Null
} }
@@ -280,7 +280,7 @@ $BackgroundProperties = @{
# Disable Windows Spotlight on lockscreen # Disable Windows Spotlight on lockscreen
Write-Host -ForegroundColor DarkGray ">>> Disabling Windows Spotlight on lockscreen <<<" Write-Host -ForegroundColor DarkGray ">>> Disabling Windows Spotlight on lockscreen <<<"
foreach ($spotlight in $RegistryPaths[0..1]) { foreach ($spotlight in $RegistryPaths[0..1]) {
If (Test-Path $spotlight) { if (Test-Path $spotlight) {
foreach ($Name in $LockScreenProperties.Keys) { foreach ($Name in $LockScreenProperties.Keys) {
$Value = $LockScreenProperties[$Name] $Value = $LockScreenProperties[$Name]
Set-ItemProperty -Path $spotlight -Name $Name -Value $Value -Force | Out-Null Set-ItemProperty -Path $spotlight -Name $Name -Value $Value -Force | Out-Null
@@ -291,7 +291,7 @@ foreach ($spotlight in $RegistryPaths[0..1]) {
# Disable Windows Spotlight on background # Disable Windows Spotlight on background
Write-Host -ForegroundColor DarkGray ">>> Disabling Windows Spotlight on background <<<" Write-Host -ForegroundColor DarkGray ">>> Disabling Windows Spotlight on background <<<"
foreach ($spotlight in $RegistryPaths[2..3]) { foreach ($spotlight in $RegistryPaths[2..3]) {
If (Test-Path $spotlight) { if (Test-Path $spotlight) {
foreach ($Name in $BackgroundProperties.Keys) { foreach ($Name in $BackgroundProperties.Keys) {
$Value = $BackgroundProperties[$Name] $Value = $BackgroundProperties[$Name]
Set-ItemProperty -Path $spotlight -Name $Name -Value $Value -Force | Out-Null Set-ItemProperty -Path $spotlight -Name $Name -Value $Value -Force | Out-Null
@@ -375,7 +375,7 @@ $NotificationProperties = @{
} }
foreach ($RegistryPath in $RegistryPaths) { foreach ($RegistryPath in $RegistryPaths) {
If (-NOT (Test-Path $RegistryPath)) { if (-NOT (Test-Path $RegistryPath)) {
New-Item -Path $RegistryPath -Force | Out-Null New-Item -Path $RegistryPath -Force | Out-Null
} }
@@ -398,7 +398,6 @@ if (-not (Test-Path $RegistryPaths)) {
Set-ItemProperty -Path $RegistryPaths -Name "SubscribedContent-338389Enabled" -Value 0 -Force | Out-Null Set-ItemProperty -Path $RegistryPaths -Name "SubscribedContent-338389Enabled" -Value 0 -Force | Out-Null
Write-Host "" Write-Host ""
########################################################################################## ##########################################################################################
@@ -421,7 +420,7 @@ $ControlPanelProperties = @{
} }
foreach ($RegistryPath in $RegistryPaths) { foreach ($RegistryPath in $RegistryPaths) {
If (-NOT (Test-Path $RegistryPath)) { if (-NOT (Test-Path $RegistryPath)) {
New-Item -Path $RegistryPath -Force | Out-Null New-Item -Path $RegistryPath -Force | Out-Null
} }
@@ -521,7 +520,7 @@ $EdgeProperties = @{
# Iterate over each registry path # Iterate over each registry path
foreach ($RegistryPath in $RegistryPaths) { foreach ($RegistryPath in $RegistryPaths) {
If (-NOT (Test-Path $RegistryPath)) { if (-NOT (Test-Path $RegistryPath)) {
New-Item -Path $RegistryPath -Force | Out-Null New-Item -Path $RegistryPath -Force | Out-Null
} }
@@ -773,7 +772,7 @@ Ftype txt="C:\Program Files (x86)\Notepad++\notepad++.exe %1"
## Define the path to the supremo executable ## Define the path to the supremo executable
#$supremo_path = Join-Path $scriptDirectory "supremo.exe" #$supremo_path = Join-Path $scriptDirectory "supremo.exe"
# #
#If (Test-Path $supremo_path ) { #if (Test-Path $supremo_path ) {
# Copy-Item -Path "$supremo_path" -Destination "C:\Users\Public\Desktop\supremo.exe" # Copy-Item -Path "$supremo_path" -Destination "C:\Users\Public\Desktop\supremo.exe"
#} else { #} else {
# Write-Host -ForegroundColor Red "Error: File '$supremo_path' does not exist." # Write-Host -ForegroundColor Red "Error: File '$supremo_path' does not exist."