forked from tueit_GmbH/boxstarter
59 lines
2.8 KiB
Plaintext
Executable File
59 lines
2.8 KiB
Plaintext
Executable File
#Windows 10 Pro Client Boxstarter Script: Grundpaket und Konfiguration (c) Tüit GmbH
|
|
#TODO: Defaultprograms for Datatypes, Install all Updates (not only critical)
|
|
|
|
#----------------Setting Variables------------------------
|
|
|
|
#Other Variables
|
|
$dHostname = Read-Host 'Input desired Hostname (Default: Keep current hostname)'
|
|
if($dHostname -eq ""){$dHostname = [Net.Dns]::GetHostName()}
|
|
|
|
#---------------Configure Chocolatey and Environment-------------------------------
|
|
choco features enable -n=allowGlobalConfirmation
|
|
choco feature enable -n=allowEmptyChecksums
|
|
New-Item -ErrorAction Ignore -Path "C:\" -Name "temp" -ItemType "directory"`
|
|
|
|
#----------------Configure Windows------------------------
|
|
#Set Hostname
|
|
Write-Host "Setting Hostname to $dHostname":
|
|
Rename-Computer -NewName "$dHostname" -Force
|
|
#Enable RemoteDesktop
|
|
Enable-RemoteDesktop
|
|
#Remove annoying Windows Stuff
|
|
Disable-GameBarTips
|
|
#Set Taskbar to Lock and put it to the bottom and show all icons
|
|
Set-TaskbarOptions -Size Small -Dock Bottom -Combine Full -Lock
|
|
Set-TaskbarOptions -Size Small -Dock Bottom -Combine Full -AlwaysShowIconsOn
|
|
#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
|
|
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"
|
|
|
|
#---------------Install important Windows Packages---------------
|
|
#Install all critical OS Updates
|
|
Install-WindowsUpdate -AcceptEula -GetUpdatesFromMS
|
|
choco install javaruntime -y --cacheLocation="c:\temp"
|
|
|
|
#---------------Install Tueit Basic Software---------------------
|
|
choco install vlc -y --cacheLocation="c:\temp"
|
|
choco install adobereader -y --cacheLocation="c:\temp"
|
|
choco install anydesk -y --cacheLocation="c:\temp"
|
|
choco install 7zip -y --cacheLocation="c:\temp"
|
|
choco install bleachbit -y --cacheLocation="c:\temp"
|
|
choco install firefox -y --cacheLocation="c:\temp"
|
|
choco install greenshot -y --cacheLocation="c:\temp"
|
|
choco install autoruns -y --cacheLocation="c:\temp"
|
|
choco install windirstat -y --cacheLocation="c:\temp"
|
|
choco install libreoffice -y --cacheLocation="c:\temp"
|
|
choco install cdrfte -y --cacheLocation="c:\temp"
|
|
choco install flashplayerplugin -y --cacheLocation="c:\temp"
|
|
choco install thunderbird -y --cacheLocation="c:\temp"
|
|
choco install pdf24 -y --cacheLocation="c:\temp"
|
|
|
|
|