2 Commits

Author SHA1 Message Date
richard.mack 50a1298c56 tiNGrundpaketClient.txt aktualisiert 2025-08-14 14:12:49 +00:00
richard.mack dd98709e8e tiNGrundpaketClient.txt aktualisiert
Skript zum Aufräumen von vorinstalliertem Mist eingefügt
Tueit Basic Software aktualisiert

Ausführung in VM getestet. Terminal als Admin, dann Start [...] funktioniert.
2025-08-13 13:53:41 +00:00
2 changed files with 48 additions and 106 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ Nachfolgend findest du unsere Boxstarter Scripts für Grundinstallationen.
Zum Beispiel Zum Beispiel
Auszuführen für Client: Auszuführen für Client:
``` ```
START https://boxstarter.org/package/nr/url?https://git.tueit.de/tueit_GmbH/boxstarter/raw/commit/c185bffde95b6e0b2dd7ed2fb5759b37c52fa86c/tiNGrundpaketClient.txt START https://boxstarter.org/package/nr/url?https://git.tueit.de/tueit_GmbH/boxstarter/raw/commit/4b3a2365b2a9380d84028dc587f06e88f0ad8aa6/tiNGrundpaketClient.txt
``` ```
Für Server: Für Server:
+46 -104
View File
@@ -1,106 +1,47 @@
# Windows 11 Pro Client Boxstarter Script: Grundpaket und Konfiguration (c) Tüit GmbH #Windows 10 Pro Client Boxstarter Script: Grundpaket und Konfiguration (c) Tüit GmbH
# Erweiterungen: Vollständige Updates, Schnellstart deaktivieren, LibreOffice, Bugfix, Admin aktivieren, Firefox Default #TODO: Defaultprograms for Datatypes, Install all Updates (not only critical)
#----------------Vorbereitung: Chocolatey & Module------------------------
# Chocolatey prüfen/ggf. installieren
if (-not (Get-Command choco.exe -ErrorAction SilentlyContinue)) {
Write-Host "Chocolatey fehlt wird installiert..."
Set-ExecutionPolicy Bypass -Scope Process -Force
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
}
# Boxstarter.Windows Modul prüfen/ggf. installieren
if (-not (Get-Module -ListAvailable -Name Boxstarter.Windows)) {
Write-Host "Boxstarter.Windows Modul fehlt wird installiert..."
Install-Module -Name Boxstarter.Windows -Force -Scope AllUsers
}
Import-Module Boxstarter.Windows
#----------------Setting Variables------------------------ #----------------Setting Variables------------------------
# Hostname abfragen (Pflichtfeld)
do {
$dHostname = Read-Host 'Input desired Hostname (required)'
} until ($dHostname -ne "")
#---------------Helper Functions-------------------------- #Other Variables
$SuccessInstalls = @() $dHostname = Read-Host 'Input desired Hostname (Default: Keep current hostname)'
$FailedInstalls = @() if($dHostname -eq ""){$dHostname = [Net.Dns]::GetHostName()}
function Install-ChocoPackage {
param([string]$pkg)
choco install $pkg -y --cacheLocation="c:\temp"
if ($LASTEXITCODE -eq 0) {
Write-Host "[$pkg] erfolgreich installiert."
$SuccessInstalls += $pkg
} else {
Write-Host "FEHLER: [$pkg] konnte nicht installiert werden!" -ForegroundColor Red
$FailedInstalls += $pkg
}
}
function removeApp {
Param ([string]$appName)
Write-Output "Trying to remove $appName"
Get-AppxPackage $appName -AllUsers | Remove-AppxPackage -ErrorAction SilentlyContinue
Get-AppXProvisionedPackage -Online | Where-Object DisplayName -like $appName | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue
}
#---------------Configure Chocolatey and Environment------------------------------- #---------------Configure Chocolatey and Environment-------------------------------
choco features enable -n=allowGlobalConfirmation choco features enable -n=allowGlobalConfirmation
choco feature enable -n=allowEmptyChecksums choco feature enable -n=allowEmptyChecksums
New-Item -ErrorAction Ignore -Path "C:\" -Name "temp" -ItemType "directory" New-Item -ErrorAction Ignore -Path "C:\" -Name "temp" -ItemType "directory"`
#----------------Configure Windows------------------------ #----------------Configure Windows------------------------
# Set Hostname #Set Hostname
Write-Host "Setting Hostname to $dHostname" Write-Host "Setting Hostname to $dHostname":
Rename-Computer -NewName "$dHostname" -Force Rename-Computer -NewName "$dHostname" -Force
#Enable RemoteDesktop
# Enable RemoteDesktop
Enable-RemoteDesktop Enable-RemoteDesktop
#Remove annoying Windows Stuff
# Remove annoying Windows Stuff
Disable-GameBarTips Disable-GameBarTips
#Set Taskbar to Lock and put it to the bottom and show all icons
# Explorer Optionen Set-TaskbarOptions -Size Small -Dock Bottom -Combine Full -Lock -DisableSearchBox
Set-TaskbarOptions -Size Small -Dock Bottom -Combine Full -AlwaysShowIconsOn
#Show Hidden Files, File Extensions, Systemfiles and Full-Path in Titlebar
Set-WindowsExplorerOptions -EnableShowFullPathInTitleBar Set-WindowsExplorerOptions -EnableShowFullPathInTitleBar
#Disable IPv6
# Disable IPv6
Write-Host DisabledComponents registry key: Write-Host DisabledComponents registry key:
reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters /v DisabledComponents /t REG_DWORD /d 0xFF /f reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters /v DisabledComponents /t REG_DWORD /d 0xFF /f
#Zeitserver einstellen
# Zeitserver einstellen #reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DateTime\Servers /v (Standard) /t REG_SZ /d 1 /f
#reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DateTime\Servers /v 1 /t REG_SZ /d 0.de.pool.ntp.org /f
#reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DateTime\Servers /v 2 /t REG_SZ /d 1.de.pool.ntp.org /f
net time /setsntp:"0.de.pool.ntp.org" net time /setsntp:"0.de.pool.ntp.org"
# Schnellstart deaktivieren # Remove junk
Write-Host "Schnellstart wird deaktiviert..." function removeApp {
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Power" /v HiberbootEnabled /t REG_DWORD /d 0 /f Param ([string]$appName)
Write-Output "Trying to remove $appName"
Get-AppxPackage $appName -AllUsers | Remove-AppxPackage
Get-AppXProvisionedPackage -Online | Where DisplayNam -like $appName | Remove-AppxProvisionedPackage -Online
}
# Lokalen Administrator aktivieren
Write-Host "Lokalen Administrator aktivieren..."
net user Administrator /active:yes
#---------------Install important Windows Packages---------------
# Install all Updates (inkl. optionale Updates, MicrosoftUpdate, Autoreboot)
Write-Host "Starte Windows Update (alle Updates inkl. optional)..."
Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -AutoReboot
#---------------Install Tueit Basic Software---------------------
Install-ChocoPackage "javaruntime"
Install-ChocoPackage "vlc"
Install-ChocoPackage "7zip"
Install-ChocoPackage "firefox"
Install-ChocoPackage "greenshot"
Install-ChocoPackage "thunderbird"
Install-ChocoPackage "openvpn-connect"
Install-ChocoPackage "rustdesk --params '\"/config: host=rd.tueit.de,key=udW7BhgOOwFypZX4KKGMBORO4EG6+MvsPVEmY99F4UA=\"'"
Install-ChocoPackage "libreoffice-fresh"
# Firefox als Standard-Browser setzen
Write-Host "Setze Firefox als Standardbrowser..."
Start-Process -FilePath "C:\Program Files\Mozilla Firefox\firefox.exe" -ArgumentList "--setDefaultBrowser" -Wait
#---------------Remove junk---------------
$applicationList = @( $applicationList = @(
"*MarchofEmpires*" "*MarchofEmpires*"
"*Autodesk*" "*Autodesk*"
@@ -115,15 +56,18 @@ $applicationList = @(
"*Facebook*" "*Facebook*"
"*Keeper*" "*Keeper*"
"*.EclipseManager" "*.EclipseManager"
"ActiproSoftwareLLC.562882FEEB491" "ActiproSoftwareLLC.562882FEEB491" # Code Writer
"*DolbyAccess*" "*DolbyAccess*"
"*disney*" "*disney*"
"*HiddenCityMysteryofShadows*" "*HiddenCityMysteryofShadows*"
"*Dell*" "*Dell*"
"*Dropbox*" "*Dropbox*"
"*Facebook*"
"*Keeper*"
"*McAfee*" "*McAfee*"
"*Minecraft*" "*Minecraft*"
"*Twitter*" "*Twitter*"
"*outlook*" "*outlook*"
"*onedrive*" "*onedrive*"
"*onenote*" "*onenote*"
@@ -150,28 +94,26 @@ $applicationList = @(
"microsoft.windowscommunicationsapps" "microsoft.windowscommunicationsapps"
"Microsoft.Zune*" "Microsoft.Zune*"
"MicrosoftTeams" "MicrosoftTeams"
"*WebExperience*" );
)
foreach ($app in $applicationList) { foreach ($app in $applicationList) {
removeApp $app removeApp $app
} }
#---------------Abschlussbericht---------------------
Write-Host "`n========== ABSCHLUSSBERICHT =========="
Write-Host "Erfolgreich installierte Pakete:"
if ($SuccessInstalls.Count -gt 0) {
$SuccessInstalls | ForEach-Object { Write-Host " - $_" }
} else {
Write-Host " (keine)"
}
Write-Host "`nFehlgeschlagene Pakete:" #---------------Install important Windows Packages---------------
if ($FailedInstalls.Count -gt 0) { #Install all critical OS Updates
$FailedInstalls | ForEach-Object { Write-Host " - $_" } Install-WindowsUpdate -AcceptEula -GetUpdatesFromMS
} else { choco install javaruntime -y --cacheLocation="c:\temp"
Write-Host " (keine)"
}
Write-Host "======================================"
Write-Host "Setup abgeschlossen." #---------------Install Tueit Basic Software---------------------
choco install vlc -y --cacheLocation="c:\temp"
#choco install adobereader -y --cacheLocation="c:\temp"
choco install 7zip -y --cacheLocation="c:\temp"
choco install firefox -y --cacheLocation="c:\temp"
#choco install googlechrome -y --cacheLocation="c:\temp"
choco install greenshot -y --cacheLocation="c:\temp"
choco install thunderbird -y --cacheLocation="c:\temp"
#choco install pdf24 -y --cacheLocation="c:\temp"
choco install openvpn-connect -y --cacheLocation="c:\temp"
choco install rustdesk --params "'/config: host=rd.tueit.de,key=udW7BhgOOwFypZX4KKGMBORO4EG6+MvsPVEmY99F4UA='"