tiNGrundpaketClient.txt aktualisiert
This commit is contained in:
@ -1,41 +1,54 @@
|
|||||||
#Windows 11 Pro Client Boxstarter Script: Grundpaket und Konfiguration (c) Tüit GmbH
|
# Windows 11 Pro Client Boxstarter Script: Grundpaket und Konfiguration (c) Tüit GmbH
|
||||||
#TODO: Defaultprograms for Datatypes, Install all Updates (not only critical)
|
# TODO: Default programs for Datatypes, Install all Updates (not only critical)
|
||||||
|
|
||||||
#----------------Setting Variables------------------------
|
#----------------Setting Variables------------------------
|
||||||
|
# Other Variables
|
||||||
#Other Variables
|
|
||||||
$dHostname = Read-Host 'Input desired Hostname (Default: Keep current hostname)'
|
$dHostname = Read-Host 'Input desired Hostname (Default: Keep current hostname)'
|
||||||
if($dHostname -eq ""){$dHostname = [Net.Dns]::GetHostName()}
|
if($dHostname -eq ""){$dHostname = [Net.Dns]::GetHostName()}
|
||||||
|
|
||||||
#---------------Configure Chocolatey and Environment-------------------------------
|
#---------------Configure Chocolatey and Environment-------------------------------
|
||||||
|
# Install Chocolatey if not already installed
|
||||||
|
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."
|
||||||
|
}
|
||||||
|
|
||||||
|
# Enable useful Chocolatey features
|
||||||
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 Remote Desktop
|
||||||
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
|
|
||||||
|
# Set Taskbar to Lock, Bottom and show all icons
|
||||||
Set-TaskbarOptions -Size Small -Dock Bottom -Combine Full -Lock
|
Set-TaskbarOptions -Size Small -Dock Bottom -Combine Full -Lock
|
||||||
Set-TaskbarOptions -Size Small -Dock Bottom -Combine Full -AlwaysShowIconsOn
|
Set-TaskbarOptions -Size Small -Dock Bottom -Combine Full -AlwaysShowIconsOn
|
||||||
#Show Hidden Files, File Extensions, Systemfiles and Full-Path in Titlebar
|
|
||||||
|
# Show Hidden Files, File Extensions, Systemfiles and Full-Path in Titlebar
|
||||||
Set-WindowsExplorerOptions -EnableShowFullPathInTitleBar
|
Set-WindowsExplorerOptions -EnableShowFullPathInTitleBar
|
||||||
#Disable IPv6
|
|
||||||
Write-Host DisabledComponents registry key:
|
# 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
|
reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters /v DisabledComponents /t REG_DWORD /d 0xFF /f
|
||||||
#Zeitserver einstellen
|
|
||||||
#reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DateTime\Servers /v (Standard) /t REG_SZ /d 1 /f
|
# Zeitserver einstellen
|
||||||
#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"
|
||||||
|
|
||||||
#---------------Install important Windows Packages---------------
|
#---------------Install important Windows Packages---------------
|
||||||
#Install all critical OS Updates
|
# Install all critical OS Updates
|
||||||
Install-WindowsUpdate -AcceptEula -GetUpdatesFromMS
|
Install-WindowsUpdate -AcceptEula -GetUpdatesFromMS
|
||||||
choco install javaruntime -y --cacheLocation="c:\temp"
|
choco install javaruntime -y --cacheLocation="c:\temp"
|
||||||
|
|
||||||
@ -84,7 +97,6 @@ $applicationList = @(
|
|||||||
"*McAfee*"
|
"*McAfee*"
|
||||||
"*Minecraft*"
|
"*Minecraft*"
|
||||||
"*Twitter*"
|
"*Twitter*"
|
||||||
|
|
||||||
"*outlook*"
|
"*outlook*"
|
||||||
"*onedrive*"
|
"*onedrive*"
|
||||||
"*onenote*"
|
"*onenote*"
|
||||||
@ -103,7 +115,7 @@ $applicationList = @(
|
|||||||
"Microsoft.OneDriveSync"
|
"Microsoft.OneDriveSync"
|
||||||
"Microsoft.People"
|
"Microsoft.People"
|
||||||
"Microsoft.SkypeApp"
|
"Microsoft.SkypeApp"
|
||||||
"Microsoft.MicrosoftSolitaireCollection"
|
"Microsoft.MicrosoftSolitaireCollection"
|
||||||
"Microsoft.Wallet"
|
"Microsoft.Wallet"
|
||||||
"Microsoft.WindowsFeedbackHub"
|
"Microsoft.WindowsFeedbackHub"
|
||||||
"Microsoft.WindowsMaps"
|
"Microsoft.WindowsMaps"
|
||||||
@ -112,8 +124,8 @@ $applicationList = @(
|
|||||||
"Microsoft.Zune*"
|
"Microsoft.Zune*"
|
||||||
"MicrosoftTeams"
|
"MicrosoftTeams"
|
||||||
"*WebExperience*"
|
"*WebExperience*"
|
||||||
);
|
)
|
||||||
|
|
||||||
foreach ($app in $applicationList) {
|
foreach ($app in $applicationList) {
|
||||||
removeApp $app
|
removeApp $app
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user