Neue Aliase, neue Software etc.

This commit is contained in:
2023-01-02 19:53:30 +01:00
parent 1b97cbe287
commit e0c029a6b1
4 changed files with 40 additions and 15 deletions

View File

@@ -1,16 +1,17 @@
#Updatet all the things
function Update {
Write-Host "Beginne mit dem Update aller Pakete..."
Write-Host "Beginne mit dem Update aller Pakete..." -ForegroundColor Blue
# Winget upgrades ausführen
winget upgrade --all
remove-item ~\Desktop* -include *.lnk
if (Get-Module -ListAvailable -Name PSWindowsUpdate) {
Write-Host "Installiere Windows Updates..."
Write-Host "Installiere Windows Updates..." -ForegroundColor Blue
Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -IgnoreReboot
# ooshutup10 ausführen. Manchmal werden settings nach Windos updates zurückgesetzt
~/.winconfig/OOSU10.exe $HOME/.winconfig/ooshutup10/ooshutup10.cfg /quiet
Write-Host "Update aller Powershell Module..."
Write-Host -ForegroundColor Cyan 'Get all PowerShell modules'
Write-Host "Spiele aktuelle OOSHUTUP10 config ein... " -ForegroundColor Blue
Set-Location ~/.winconfig ; ./OOSU10.exe configs/ooshutup10/ooshutup10.cfg /quiet
Write-Host "Update aller Powershell Module..." -ForegroundColor Blue
Write-Host -ForegroundColor Blue 'Get all PowerShell modules'
function Remove-OldPowerShellModules {
param (
[string]$ModuleName,