Script Updates
This commit is contained in:
@ -133,9 +133,7 @@ if [ ! -f vmware.bin ]; then
|
|||||||
fi
|
fi
|
||||||
# libncursew5 is required for console installation. Install the package if not
|
# libncursew5 is required for console installation. Install the package if not
|
||||||
# already present on the system.
|
# already present on the system.
|
||||||
if ! dpkg-query -W -f='${Status}' libncurses5-dev \
|
if ! dpkg-query -W -f='${Status}' libncurses5-dev | grep "ok installed"; then sudo apt install libncurses5-dev libncursesw5-dev --quiet --yes --no-install-recommends
|
||||||
| grep "ok installed"; then
|
|
||||||
sudo apt install libncurses5-dev libncursesw5-dev --quiet --yes --no-install-recommends
|
|
||||||
fi
|
fi
|
||||||
# Install VMware Workstation Pro
|
# Install VMware Workstation Pro
|
||||||
sudo sh ./vmware.bin \
|
sudo sh ./vmware.bin \
|
||||||
|
@ -3,7 +3,7 @@ Start-Job -Name "Install and Configure Chocolatey" -ScriptBlock {
|
|||||||
# Setting up directories for values
|
# Setting up directories for values
|
||||||
Set-ExecutionPolicy Bypass -Scope Process -Force
|
Set-ExecutionPolicy Bypass -Scope Process -Force
|
||||||
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
|
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
|
||||||
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
|
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
|
||||||
choco feature enable -n=allowGlobalConfirmation
|
choco feature enable -n=allowGlobalConfirmation
|
||||||
choco feature enable -n=useFipsCompliantChecksums
|
choco feature enable -n=useFipsCompliantChecksums
|
||||||
choco feature enable -n=useEnhancedExitCodes
|
choco feature enable -n=useEnhancedExitCodes
|
||||||
@ -61,7 +61,7 @@ Start-Job -Name "Installing Other Tools and Software" -Scriptblock {
|
|||||||
Start-Job -Name "Configuring Windows - Optimizations And Debloating" -ScriptBlock {
|
Start-Job -Name "Configuring Windows - Optimizations And Debloating" -ScriptBlock {
|
||||||
Write-Host "Configuring Windows - Optimizations, Debloating, and Hardening"
|
Write-Host "Configuring Windows - Optimizations, Debloating, and Hardening"
|
||||||
New-Item "C:\" -Name "temp" -ItemType "directory" -Force
|
New-Item "C:\" -Name "temp" -ItemType "directory" -Force
|
||||||
iex ((New-Object System.Net.WebClient).DownloadString('https://simeononsecurity.ch/scripts/windowsoptimizeanddebloat.ps1'))
|
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://simeononsecurity.ch/scripts/windowsoptimizeanddebloat.ps1'))
|
||||||
}
|
}
|
||||||
|
|
||||||
Start-Job -Name "Customizations" -ScriptBlock {
|
Start-Job -Name "Customizations" -ScriptBlock {
|
||||||
|
@ -153,9 +153,9 @@ Start-Job -Name "Configuring Windows - Optimizations, Debloating, and Hardening"
|
|||||||
Start-Sleep 120
|
Start-Sleep 120
|
||||||
Write-Host "Configuring Windows - Optimizations, Debloating, and Hardening"
|
Write-Host "Configuring Windows - Optimizations, Debloating, and Hardening"
|
||||||
New-Item "C:\" -Name "temp" -ItemType "directory" -Force
|
New-Item "C:\" -Name "temp" -ItemType "directory" -Force
|
||||||
iwr -useb 'https://simeononsecurity.ch/scripts/windowsoptimizeandharden.ps1' | iex
|
Invoke-WebRequest -useb 'https://simeononsecurity.ch/scripts/windowsoptimizeandharden.ps1' | Invoke-Expression
|
||||||
Start-Job -Name "System Wide Ad and Tracker Blocking" -ScriptBlock {
|
Start-Job -Name "System Wide Ad and Tracker Blocking" -ScriptBlock {
|
||||||
iwr -useb 'https://raw.githubusercontent.com/simeononsecurity/System-Wide-Windows-Ad-Blocker/main/sos-system-wide-windows-ad-block.ps1' | iex
|
Invoke-WebRequest -useb 'https://raw.githubusercontent.com/simeononsecurity/System-Wide-Windows-Ad-Blocker/main/sos-system-wide-windows-ad-block.ps1' | Invoke-Expression
|
||||||
}
|
}
|
||||||
#Fix high performance timers to get better performance from Windows 10.
|
#Fix high performance timers to get better performance from Windows 10.
|
||||||
bcdedit /deletevalue useplatformclock
|
bcdedit /deletevalue useplatformclock
|
||||||
@ -244,7 +244,7 @@ Start-Job -Name "Configuring Windows - Optimizations, Debloating, and Hardening"
|
|||||||
powercfg -change -monitor-timeout-ac 15
|
powercfg -change -monitor-timeout-ac 15
|
||||||
|
|
||||||
#Enable Num Lock on logon and lock screen
|
#Enable Num Lock on logon and lock screen
|
||||||
sp "HKU:\.DEFAULT\Control Panel\Keyboard" "InitialKeyboardIndicators" 2
|
Set-ItemProperty "HKU:\.DEFAULT\Control Panel\Keyboard" "InitialKeyboardIndicators" 2
|
||||||
|
|
||||||
#Enable Darkmode
|
#Enable Darkmode
|
||||||
New-Item -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" -Force | Out-Null
|
New-Item -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize" -Force | Out-Null
|
||||||
@ -348,7 +348,7 @@ $Paint3Dstuff = @(
|
|||||||
Set-Item $Paint3D $rmPaint3D
|
Set-Item $Paint3D $rmPaint3D
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
}
|
||||||
|
|
||||||
Write-Host "Disabling Action Center..."
|
Write-Host "Disabling Action Center..."
|
||||||
If (!(Test-Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer")) {
|
If (!(Test-Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer")) {
|
||||||
@ -356,4 +356,3 @@ Write-Host "Disabling Action Center..."
|
|||||||
}
|
}
|
||||||
Set-ItemProperty -Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer" -Name "DisableNotificationCenter" -Type DWord -Value 1
|
Set-ItemProperty -Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer" -Name "DisableNotificationCenter" -Type DWord -Value 1
|
||||||
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\PushNotifications" -Name "ToastEnabled" -Type DWord -Value 0
|
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\PushNotifications" -Name "ToastEnabled" -Type DWord -Value 0
|
||||||
}
|
|
||||||
|
Reference in New Issue
Block a user