Compare commits
1 Commits
main
...
add-licens
Author | SHA1 | Date | |
---|---|---|---|
8a3ba87812 |
@ -52,7 +52,7 @@ sudo add-apt-repository restricted
|
|||||||
|
|
||||||
BLUE "Update and Upgrade"
|
BLUE "Update and Upgrade"
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get full-upgrade -y
|
sudo apt-get install -y full-upgrade
|
||||||
|
|
||||||
BLUE "Configure Firewall"
|
BLUE "Configure Firewall"
|
||||||
#https://github.com/ChrisTitusTech/firewallsetup
|
#https://github.com/ChrisTitusTech/firewallsetup
|
||||||
|
@ -28,7 +28,7 @@ Start-Job -Name "Install and Configure Chocolatey" -ScriptBlock {
|
|||||||
Start-Job -Name "Installing Optional Windows Features" -ScriptBlock {
|
Start-Job -Name "Installing Optional Windows Features" -ScriptBlock {
|
||||||
#https://www.ghacks.net/2017/07/14/use-windows-powershell-to-install-optional-features/
|
#https://www.ghacks.net/2017/07/14/use-windows-powershell-to-install-optional-features/
|
||||||
#Enable-WindowsOptionalFeature -Online -FeatureName "" -All
|
#Enable-WindowsOptionalFeature -Online -FeatureName "" -All
|
||||||
ForEach ($OptionalFeature in ("Client-ProjFS", "ClientForNFS-Infrastructure", "DataCenterBridging", "DirectoryServices-ADAM-Client", "NFS-Administration", "ServicesForNFS-ClientOnly", "SimpleTCP", "WindowsMediaPlayer")) {
|
ForEach ($OptionalFeature in ("Client-ProjFS", "ClientForNFS-Infrastructure", "DataCenterBridging", "DirectoryServices-ADAM-Client", "Microsoft-Windows-Subsystem-Linux", "NFS-Administration", "ServicesForNFS-ClientOnly", "SimpleTCP", "WindowsMediaPlayer")) {
|
||||||
Enable-WindowsOptionalFeature -Online -FeatureName "$OptionalFeature" -All -NoRestart -WarningAction SilentlyContinue | Out-Null
|
Enable-WindowsOptionalFeature -Online -FeatureName "$OptionalFeature" -All -NoRestart -WarningAction SilentlyContinue | Out-Null
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -58,7 +58,7 @@ Start-Job -Name "Installing Optional Windows Features" -ScriptBlock {
|
|||||||
refreshenv
|
refreshenv
|
||||||
|
|
||||||
Start-Job -Name "Installing Software" -Scriptblock {
|
Start-Job -Name "Installing Software" -Scriptblock {
|
||||||
$chocopackages = @("googlechrome", "firefox", "ungoogled-chromium", "brave", "librewolf", "microsoft-edge", "tor-Browser", "putty", "winscp.install", "teamviewer", "anydesk.install", "rustdesk.install", "sysinternals", "driverbooster", "sdio", "etcher", "rufus.install", "veracrypt", "windirstat", "mysql.workbench", "rsat", "sql-server-management-studio", "laps", "wumt", "openvpn", "wireguard", "wireshark", "nmap", "winbox", "tor", "cheatengine", "sleuthkit", "hxd", "ida-free", "ghidra", "ossec-client", "burp-suite-free-edition", "zap", "openstego", "accessenum", "accesschk", "sysmon", "powershell4", "powershell", "powershellhere-elevated", "powershell.portable", "microsoft-windows-terminal", "carbon", "jre8", "openjdk", "openjdk.portable", "hugo", "hugo-extended", "nodejs", "vscode", "vscodium", "vscode-ansible", "vscode-python", "chocolatey-vscode", "vscode-prettier", "vscode-java", "vscode-yaml", "vscode-haskell", "vscode-mongo", "vscode-beautify", "vscode-intellicode", "vscode-pull-request-github", "vscode-kubernetes-tools", "vscode-autofilename", "vscode-codespellchecker", "vscode-icons", "vscode-csharp", "dsc.powershellcommunity", "notepadplusplus.install", "python", "pip", "github-desktop", "gh", "git.install", "git-lfx", "gnupg", "gpg4win", "openssh", "wsl", "wsl2", "adb", "universal-adb-drivers", "windows-adk-all", "dotnetfx", "vcredist-all", "microsoft-visual-cpp-build-tools", "patch-my-pc", "rocketchat", "discord", "pidgin", "signal", "steam", "obs-studio", "obs-ndi", "vlc", "gimp", "k-litecodecpackfull", "audacity", "audacity-lame", "screentogif", "adobereader", "installroot", "7zip.install", "curl", "autohotkey", "teracopy", "cpu-z.install", "eraser", "openstego", "vagrant", "vagrant-manager", "vagrant-vmware-utility", "virtualbox", "tabby", "nethor", "packer", "packer-windows-plugins", "windows-adk-oscdimg")
|
$chocopackages = @("googlechrome", "firefox", "ungoogled-chromium", "brave", "librewolf", "microsoft-edge", "tor-Browser", "putty", "winscp.install", "teamviewer", "anydesk.install", "sysinternals", "driverbooster", "sdio", "etcher", "rufus.install", "veracrypt", "windirstat", "mysql.workbench", "rsat", "sql-server-management-studio", "laps", "wumt", "openvpn", "wireguard", "wireshark", "nmap", "winbox", "tor", "cheatengine", "sleuthkit", "hxd", "ida-free", "ghidra", "ossec-client", "burp-suite-free-edition", "zap", "openstego", "accessenum", "accesschk", "sysmon", "powershell4", "powershell", "powershellhere-elevated", "powershell.portable", "microsoft-windows-terminal", "carbon", "jre8", "openjdk", "openjdk.portable", "hugo", "hugo-extended", "nodejs", "vscode", "vscodium", "vscode-ansible", "vscode-python", "chocolatey-vscode", "vscode-prettier", "vscode-java", "vscode-yaml", "vscode-haskell", "vscode-mongo", "vscode-beautify", "vscode-intellicode", "vscode-pull-request-github", "vscode-kubernetes-tools", "vscode-autofilename", "vscode-codespellchecker", "vscode-icons", "vscode-csharp", "dsc.powershellcommunity", "notepadplusplus.install", "python", "pip", "github-desktop", "gh", "git.install", "git-lfx", "gnupg", "gpg4win", "openssh", "wsl", "wsl2", "adb", "universal-adb-drivers", "windows-adk-all", "dotnetfx", "vcredist-all", "microsoft-visual-cpp-build-tools", "patch-my-pc", "rocketchat", "discord", "pidgin", "signal", "steam", "obs-studio", "obs-ndi", "vlc", "gimp", "k-litecodecpackfull", "audacity", "audacity-lame", "screentogif", "adobereader", "installroot", "7zip.install", "curl", "autohotkey", "teracopy", "cpu-z.install", "eraser", "openstego", "vagrant", "vagrant-manager", "vagrant-vmware-utility", "virtualbox", "tabby", 'nethor')
|
||||||
choco install $chocopackages
|
choco install $chocopackages
|
||||||
<# $PSversion = $PSVersionTable.PSVersion.Major
|
<# $PSversion = $PSVersionTable.PSVersion.Major
|
||||||
If ($PSversion -ge "7") {
|
If ($PSversion -ge "7") {
|
||||||
@ -145,10 +145,6 @@ Start-Job -Name "Configuring Windows - Optimizations, Debloating, and Hardening"
|
|||||||
# iwr -useb 'https://simeononsecurity.ch/scripts/sosautomatesysmon.ps1'|iex
|
# iwr -useb 'https://simeononsecurity.ch/scripts/sosautomatesysmon.ps1'|iex
|
||||||
#}
|
#}
|
||||||
|
|
||||||
#Allow Windows behinc a WSUS Server to auto repair itself
|
|
||||||
#Download repair content and optional features directly from Windows Update instead of Windows Server Update Services (WSUS)
|
|
||||||
Set-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Servicing" -Name "RepairContentServerSource" -Type "DWORD" -Value "2" -Force
|
|
||||||
|
|
||||||
#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
|
||||||
bcdedit /set useplatformclock false
|
bcdedit /set useplatformclock false
|
||||||
|
@ -1,22 +1,3 @@
|
|||||||
function Optimize-PowershellAssemblies {
|
|
||||||
# NGEN powershell assembly, improves startup time of powershell by 10x
|
|
||||||
$old_path = $env:path
|
|
||||||
try {
|
|
||||||
$env:path = [Runtime.InteropServices.RuntimeEnvironment]::GetRuntimeDirectory()
|
|
||||||
[AppDomain]::CurrentDomain.GetAssemblies() | % {
|
|
||||||
if (! $_.location) {continue}
|
|
||||||
$Name = Split-Path $_.location -leaf
|
|
||||||
if ($Name.startswith("Microsoft.PowerShell.")) {
|
|
||||||
Write-Progress -Activity "Native Image Installation" -Status "$name"
|
|
||||||
ngen install $_.location | % {"`t$_"}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} finally {
|
|
||||||
$env:path = $old_path
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Optimize-PowershellAssemblies
|
|
||||||
|
|
||||||
Start-Job -Name "Install and Configure Chocolatey" -ScriptBlock {
|
Start-Job -Name "Install and Configure Chocolatey" -ScriptBlock {
|
||||||
Write-Host "Installing Chocolatey"
|
Write-Host "Installing Chocolatey"
|
||||||
# Setting up directories for values
|
# Setting up directories for values
|
||||||
@ -47,7 +28,7 @@ Start-Job -Name "Install and Configure Chocolatey" -ScriptBlock {
|
|||||||
Start-Job -Name "Installing Optional Windows Features" -ScriptBlock {
|
Start-Job -Name "Installing Optional Windows Features" -ScriptBlock {
|
||||||
#https://www.ghacks.net/2017/07/14/use-windows-powershell-to-install-optional-features/
|
#https://www.ghacks.net/2017/07/14/use-windows-powershell-to-install-optional-features/
|
||||||
#Enable-WindowsOptionalFeature -Online -FeatureName "" -All
|
#Enable-WindowsOptionalFeature -Online -FeatureName "" -All
|
||||||
ForEach ($OptionalFeature in ("Client-ProjFS", "ClientForNFS-Infrastructure", "DataCenterBridging", "DirectoryServices-ADAM-Client", "NFS-Administration", "ServicesForNFS-ClientOnly", "SimpleTCP", "WindowsMediaPlayer")) {
|
ForEach ($OptionalFeature in ("Client-ProjFS", "ClientForNFS-Infrastructure", "DataCenterBridging", "DirectoryServices-ADAM-Client", "Microsoft-Windows-Subsystem-Linux", "NFS-Administration", "ServicesForNFS-ClientOnly", "SimpleTCP", "WindowsMediaPlayer")) {
|
||||||
Enable-WindowsOptionalFeature -Online -FeatureName "$OptionalFeature" -All -NoRestart -WarningAction SilentlyContinue | Out-Null
|
Enable-WindowsOptionalFeature -Online -FeatureName "$OptionalFeature" -All -NoRestart -WarningAction SilentlyContinue | Out-Null
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -88,7 +69,7 @@ Start-Job -Name "Windows 11 Specific Changes" -ScriptBlock {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Start-Job -Name "Installing Software" -Scriptblock {
|
Start-Job -Name "Installing Software" -Scriptblock {
|
||||||
$chocopackages = @("googlechrome", "firefox", "ungoogled-chromium", "brave", "librewolf", "microsoft-edge", "tor-Browser", "putty", "winscp.install", "teamviewer", "anydesk.install", "rustdesk.install", "sysinternals", "driverbooster", "sdio", "etcher", "rufus.install", "veracrypt", "windirstat", "mysql.workbench", "rsat", "sql-server-management-studio", "laps", "wumt", "openvpn", "wireguard", "wireshark", "nmap", "winbox", "tor", "cheatengine", "sleuthkit", "hxd", "ida-free", "ghidra", "ossec-client", "burp-suite-free-edition", "zap", "openstego", "accessenum", "accesschk", "sysmon", "powershell4", "powershell", "powershellhere-elevated", "powershell.portable", "microsoft-windows-terminal", "carbon", "jre8", "openjdk", "openjdk.portable", "hugo", "hugo-extended", "nodejs", "vscode", "vscodium", "vscode-ansible", "vscode-python", "chocolatey-vscode", "vscode-prettier", "vscode-java", "vscode-yaml", "vscode-haskell", "vscode-mongo", "vscode-beautify", "vscode-intellicode", "vscode-pull-request-github", "vscode-kubernetes-tools", "vscode-autofilename", "vscode-codespellchecker", "vscode-icons", "vscode-csharp", "dsc.powershellcommunity", "notepadplusplus.install", "python", "pip", "github-desktop", "gh", "git.install", "git-lfx", "gnupg", "gpg4win", "openssh", "wsl", "wsl2", "adb", "universal-adb-drivers", "windows-adk-all", "dotnetfx", "vcredist-all", "microsoft-visual-cpp-build-tools", "patch-my-pc", "rocketchat", "discord", "pidgin", "signal", "steam", "obs-studio", "obs-ndi", "vlc", "gimp", "k-litecodecpackfull", "audacity", "audacity-lame", "screentogif", "adobereader", "installroot", "7zip.install", "curl", "autohotkey", "teracopy", "cpu-z.install", "eraser", "openstego", "vagrant", "vagrant-manager", "vagrant-vmware-utility", "virtualbox", "tabby", "nethor", "packer", "packer-windows-plugins", "windows-adk-oscdimg")
|
$chocopackages = @("googlechrome", "firefox", "ungoogled-chromium", "brave", "librewolf", "microsoft-edge", "tor-Browser", "putty", "winscp.install", "teamviewer", "anydesk.install", "sysinternals", "driverbooster", "sdio", "etcher", "rufus.install", "veracrypt", "windirstat", "mysql.workbench", "rsat", "sql-server-management-studio", "laps", "wumt", "openvpn", "wireguard", "wireshark", "nmap", "winbox", "tor", "cheatengine", "sleuthkit", "hxd", "ida-free", "ghidra", "ossec-client", "burp-suite-free-edition", "zap", "openstego", "accessenum", "accesschk", "sysmon", "powershell4", "powershell", "powershellhere-elevated", "powershell.portable", "microsoft-windows-terminal", "carbon", "jre8", "openjdk", "openjdk.portable", "hugo", "hugo-extended", "nodejs", "vscode", "vscodium", "vscode-ansible", "vscode-python", "chocolatey-vscode", "vscode-prettier", "vscode-java", "vscode-yaml", "vscode-haskell", "vscode-mongo", "vscode-beautify", "vscode-intellicode", "vscode-pull-request-github", "vscode-kubernetes-tools", "vscode-autofilename", "vscode-codespellchecker", "vscode-icons", "vscode-csharp", "dsc.powershellcommunity", "notepadplusplus.install", "python", "pip", "github-desktop", "gh", "git.install", "git-lfx", "gnupg", "gpg4win", "openssh", "wsl", "wsl2", "adb", "universal-adb-drivers", "windows-adk-all", "dotnetfx", "vcredist-all", "microsoft-visual-cpp-build-tools", "patch-my-pc", "rocketchat", "discord", "pidgin", "signal", "steam", "obs-studio", "obs-ndi", "vlc", "gimp", "k-litecodecpackfull", "audacity", "audacity-lame", "screentogif", "adobereader", "installroot", "7zip.install", "curl", "autohotkey", "teracopy", "cpu-z.install", "eraser", "openstego", "vagrant", "vagrant-manager", "vagrant-vmware-utility", "virtualbox", "tabby", 'nethor')
|
||||||
choco install $chocopackages
|
choco install $chocopackages
|
||||||
<# $PSversion = $PSVersionTable.PSVersion.Major
|
<# $PSversion = $PSVersionTable.PSVersion.Major
|
||||||
If ($PSversion -ge "7") {
|
If ($PSversion -ge "7") {
|
||||||
@ -175,10 +156,6 @@ Start-Job -Name "Configuring Windows - Optimizations, Debloating, and Hardening"
|
|||||||
# iwr -useb 'https://simeononsecurity.ch/scripts/sosautomatesysmon.ps1'|iex
|
# iwr -useb 'https://simeononsecurity.ch/scripts/sosautomatesysmon.ps1'|iex
|
||||||
#}
|
#}
|
||||||
|
|
||||||
#Allow Windows behinc a WSUS Server to auto repair itself
|
|
||||||
#Download repair content and optional features directly from Windows Update instead of Windows Server Update Services (WSUS)
|
|
||||||
Set-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\Servicing" -Name "RepairContentServerSource" -Type "DWORD" -Value "2" -Force
|
|
||||||
|
|
||||||
#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
|
||||||
bcdedit /set useplatformclock false
|
bcdedit /set useplatformclock false
|
||||||
|
Reference in New Issue
Block a user