tiNGrundpaketClient.txt aktualisiert
This commit is contained in:
@ -6,6 +6,22 @@ $LogFile = "C:\temp\setup-log-$(Get-Date -Format yyyy-MM-dd_HH-mm-ss).txt"
|
|||||||
Start-Transcript -Path $LogFile -Append
|
Start-Transcript -Path $LogFile -Append
|
||||||
Write-Host "Logging gestartet. Alle Ausgaben werden in $LogFile gespeichert."
|
Write-Host "Logging gestartet. Alle Ausgaben werden in $LogFile gespeichert."
|
||||||
|
|
||||||
|
#----------------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)
|
# Hostname abfragen (Pflichtfeld)
|
||||||
do {
|
do {
|
||||||
@ -51,7 +67,7 @@ Enable-RemoteDesktop
|
|||||||
# Remove annoying Windows Stuff
|
# Remove annoying Windows Stuff
|
||||||
Disable-GameBarTips
|
Disable-GameBarTips
|
||||||
|
|
||||||
# Taskbar Optionen
|
# Taskbar Optionen (aus Boxstarter.Windows)
|
||||||
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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user