minor changes
This commit is contained in:
@@ -168,7 +168,7 @@ $Properties = @{
|
||||
# Iterate over each registry path
|
||||
foreach ($RegistryPath in $RegistryPaths) {
|
||||
# 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
|
||||
}
|
||||
|
||||
@@ -206,7 +206,7 @@ $ExplorerProperties = @{
|
||||
}
|
||||
|
||||
foreach ($RegistryPath in $RegistryPaths) {
|
||||
If (-NOT (Test-Path $RegistryPath)) {
|
||||
if (-NOT (Test-Path $RegistryPath)) {
|
||||
New-Item -Path $RegistryPath -Force | Out-Null
|
||||
}
|
||||
|
||||
@@ -280,7 +280,7 @@ $BackgroundProperties = @{
|
||||
# Disable Windows Spotlight on lockscreen
|
||||
Write-Host -ForegroundColor DarkGray ">>> Disabling Windows Spotlight on lockscreen <<<"
|
||||
foreach ($spotlight in $RegistryPaths[0..1]) {
|
||||
If (Test-Path $spotlight) {
|
||||
if (Test-Path $spotlight) {
|
||||
foreach ($Name in $LockScreenProperties.Keys) {
|
||||
$Value = $LockScreenProperties[$Name]
|
||||
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
|
||||
Write-Host -ForegroundColor DarkGray ">>> Disabling Windows Spotlight on background <<<"
|
||||
foreach ($spotlight in $RegistryPaths[2..3]) {
|
||||
If (Test-Path $spotlight) {
|
||||
if (Test-Path $spotlight) {
|
||||
foreach ($Name in $BackgroundProperties.Keys) {
|
||||
$Value = $BackgroundProperties[$Name]
|
||||
Set-ItemProperty -Path $spotlight -Name $Name -Value $Value -Force | Out-Null
|
||||
@@ -375,7 +375,7 @@ $NotificationProperties = @{
|
||||
}
|
||||
|
||||
foreach ($RegistryPath in $RegistryPaths) {
|
||||
If (-NOT (Test-Path $RegistryPath)) {
|
||||
if (-NOT (Test-Path $RegistryPath)) {
|
||||
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
|
||||
|
||||
|
||||
Write-Host ""
|
||||
|
||||
##########################################################################################
|
||||
@@ -421,7 +420,7 @@ $ControlPanelProperties = @{
|
||||
}
|
||||
|
||||
foreach ($RegistryPath in $RegistryPaths) {
|
||||
If (-NOT (Test-Path $RegistryPath)) {
|
||||
if (-NOT (Test-Path $RegistryPath)) {
|
||||
New-Item -Path $RegistryPath -Force | Out-Null
|
||||
}
|
||||
|
||||
@@ -521,7 +520,7 @@ $EdgeProperties = @{
|
||||
|
||||
# Iterate over each registry path
|
||||
foreach ($RegistryPath in $RegistryPaths) {
|
||||
If (-NOT (Test-Path $RegistryPath)) {
|
||||
if (-NOT (Test-Path $RegistryPath)) {
|
||||
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
|
||||
#$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"
|
||||
#} else {
|
||||
# Write-Host -ForegroundColor Red "Error: File '$supremo_path' does not exist."
|
||||
|
||||
Reference in New Issue
Block a user