Ne Menge hinzugefügt.

This commit is contained in:
2023-01-04 19:30:40 +01:00
parent e0c029a6b1
commit a33ae71ee8
7 changed files with 1428 additions and 15 deletions

View File

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