124 lines
4.3 KiB
Plaintext
124 lines
4.3 KiB
Plaintext
# Windows 11 Pro Client Boxstarter Script: Grundpaket und Konfiguration (c) Tüit GmbH
|
|
# TODO: Default programs for Datatypes, Install all Updates (not only critical)
|
|
|
|
#----------------Setting Variables------------------------
|
|
$dHostname = Read-Host 'Input desired Hostname (Default: Keep current hostname)'
|
|
if($dHostname -eq ""){$dHostname = [Net.Dns]::GetHostName()}
|
|
|
|
#---------------Configure Chocolatey and Environment-------------------------------
|
|
if (-not (Get-Command choco -ErrorAction SilentlyContinue)) {
|
|
Write-Host "Chocolatey not found. Installing Chocolatey..."
|
|
Set-ExecutionPolicy Bypass -Scope Process -Force
|
|
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
|
|
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
|
|
} else {
|
|
Write-Host "Chocolatey already installed."
|
|
}
|
|
|
|
choco features enable -n=allowGlobalConfirmation
|
|
choco feature enable -n=allowEmptyChecksums
|
|
New-Item -ErrorAction Ignore -Path "C:\" -Name "temp" -ItemType "directory"
|
|
|
|
#----------------Configure Windows------------------------
|
|
Write-Host "Setting Hostname to $dHostname"
|
|
Rename-Computer -NewName "$dHostname" -Force
|
|
|
|
Enable-RemoteDesktop
|
|
Disable-GameBarTips
|
|
|
|
#---------------Taskbar configuration for Windows 11---------------
|
|
Write-Host "Configuring Taskbar for Windows 11..."
|
|
# Always show all icons
|
|
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "TaskbarSmallIcons" -Value 1
|
|
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "TaskbarGlomLevel" -Value 2
|
|
# Restart Explorer to apply
|
|
Stop-Process -f -ProcessName explorer
|
|
|
|
# Show Hidden Files, File Extensions, Systemfiles and Full-Path in Titlebar
|
|
Set-WindowsExplorerOptions -EnableShowFullPathInTitleBar
|
|
|
|
# Disable IPv6
|
|
Write-Host "DisabledComponents registry key"
|
|
reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters /v DisabledComponents /t REG_DWORD /d 0xFF /f
|
|
|
|
# Zeitserver einstellen
|
|
net time /setsntp:"0.de.pool.ntp.org"
|
|
|
|
#---------------Install important Windows Packages---------------
|
|
Install-WindowsUpdate -AcceptEula -GetUpdatesFromMS
|
|
choco install javaruntime -y --cacheLocation="c:\temp"
|
|
|
|
#---------------Install Tueit Basic Software---------------------
|
|
choco install vlc -y --cacheLocation="c:\temp"
|
|
choco install 7zip -y --cacheLocation="c:\temp"
|
|
choco install firefox -y --cacheLocation="c:\temp"
|
|
choco install greenshot -y --cacheLocation="c:\temp"
|
|
choco install thunderbird -y --cacheLocation="c:\temp"
|
|
choco install openvpn-connect -y --cacheLocation="c:\temp"
|
|
choco install rustdesk --params "'/config: host=rd.tueit.de,key=udW7BhgOOwFypZX4KKGMBORO4EG6+MvsPVEmY99F4UA='"
|
|
|
|
#---------------Remove junk---------------
|
|
function removeApp {
|
|
Param ([string]$appName)
|
|
Write-Output "Trying to remove $appName"
|
|
Get-AppxPackage $appName -AllUsers | Remove-AppxPackage
|
|
Get-AppXProvisionedPackage -Online | Where DisplayName -like $appName | Remove-AppxProvisionedPackage -Online
|
|
}
|
|
|
|
$applicationList = @(
|
|
"*MarchofEmpires*"
|
|
"*Autodesk*"
|
|
"*BubbleWitch*"
|
|
"*garden*"
|
|
"*hidden*"
|
|
"*deezer*"
|
|
"*phototastic*"
|
|
"*tunein*"
|
|
"king.com*"
|
|
"G5*"
|
|
"*Facebook*"
|
|
"*Keeper*"
|
|
"*.EclipseManager"
|
|
"ActiproSoftwareLLC.562882FEEB491"
|
|
"*DolbyAccess*"
|
|
"*disney*"
|
|
"*HiddenCityMysteryofShadows*"
|
|
"*Dell*"
|
|
"*Dropbox*"
|
|
"*Facebook*"
|
|
"*Keeper*"
|
|
"*McAfee*"
|
|
"*Minecraft*"
|
|
"*Twitter*"
|
|
"*outlook*"
|
|
"*onedrive*"
|
|
"*onenote*"
|
|
"Microsoft.*advertising*"
|
|
"Microsoft.*3D*"
|
|
"Microsoft.Bing*"
|
|
"Microsoft.Copilot*"
|
|
"Microsoft.Getstarted"
|
|
"Microsoft.Messaging"
|
|
"Microsoft.MicrosoftOfficeHub"
|
|
"Microsoft.MicrosoftStickyNotes"
|
|
"Microsoft.Music*"
|
|
"Microsoft.Office.OneNote"
|
|
"Microsoft.Office.Sway"
|
|
"Microsoft.OneConnect"
|
|
"Microsoft.OneDriveSync"
|
|
"Microsoft.People"
|
|
"Microsoft.SkypeApp"
|
|
"Microsoft.MicrosoftSolitaireCollection"
|
|
"Microsoft.Wallet"
|
|
"Microsoft.WindowsFeedbackHub"
|
|
"Microsoft.WindowsMaps"
|
|
"Microsoft.WindowsSoundRecorder"
|
|
"microsoft.windowscommunicationsapps"
|
|
"Microsoft.Zune*"
|
|
"MicrosoftTeams"
|
|
"*WebExperience*"
|
|
)
|
|
|
|
foreach ($app in $applicationList) {
|
|
removeApp $app
|
|
} |