diff --git a/functions.ps1 b/functions.ps1 index c70fb94..13f458a 100644 --- a/functions.ps1 +++ b/functions.ps1 @@ -8,7 +8,7 @@ function Update { Write-Host "Installiere Windows Updates..." Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -IgnoreReboot # ooshutup10 ausführen. Manchmal werden settings nach Windos updates zurückgesetzt - ./OOSU10.exe $HOME/.winconfig/ooshutup10/ooshutup10.cfg /quiet + ~/.winconfig/OOSU10.exe $HOME/.winconfig/ooshutup10/ooshutup10.cfg /quiet Write-Host "Update aller Powershell Module..." Write-Host -ForegroundColor Cyan 'Get all PowerShell modules' function Remove-OldPowerShellModules { diff --git a/install.ps1 b/install.ps1 index a00896c..2db9e8e 100644 --- a/install.ps1 +++ b/install.ps1 @@ -157,35 +157,35 @@ do { Write-Host "Löschen des default Powershell profiles..." -ForegroundColor Blue if ((Test-Path "~/Documents/PowerShell/profile.ps1" -PathType Leaf) -eq $True) { Remove-Item -Force "~/Documents/PowerShell/profile.ps1" - Write-Host "Powershell config erfolgreich gelöscht." -ForegroundColor Green + Write-Host "Powershell config ~/Documents/PowerShell/profile.ps1 erfolgreich gelöscht." -ForegroundColor Green Try { New-Item -Path "~/Documents/PowerShell/profile.ps1" -ItemType SymbolicLink -Value "~/.winconfig/profile.ps1" | Out-Null - Write-Host "Powershell config erfolgreich verlinkt." + Write-Host "Powershell config ~/Documents/PowerShell/profile.ps1 erfolgreich verlinkt." } Catch { - Write-Host "Probleme beim verlinken der Powershell config." -ForegroundColor Red + Write-Host "Probleme beim verlinken der Powershell config ~/Documents/PowerShell/profile.ps1 " -ForegroundColor Red } } if ((Test-Path "~/Documents/WindowsPowerShell/profile.ps1" -PathType Leaf) -eq $True) { Remove-Item -Force "~/Documents/WindowsPowerShell/profile.ps1" - Write-Host "Powershell config erfolgreich gelöscht." -ForegroundColor Green + Write-Host "Powershell config ~/Documents/WindowsPowerShell/profile.ps1 erfolgreich gelöscht." -ForegroundColor Green Try { New-Item -Path "~/Documents/PowerShell/profile.ps1" -ItemType SymbolicLink -Value "~/.winconfig/profile.ps1" | Out-Null - Write-Host "Powershell config erfolgreich verlinkt." + Write-Host "Powershell config ~/Documents/WindowsPowerShell/profile.ps1 erfolgreich verlinkt." } Catch { - Write-Host "Probleme beim verlinken der Powershell config." -ForegroundColor Red + Write-Host "Probleme beim verlinken der Powershell config ~/Documents/PowerShell/profile.ps1" -ForegroundColor Red } } if ((Test-Path "~/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1" -PathType Leaf) -eq $True) { Remove-Item -Force "~/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1" - Write-Host "Powershell config erfolgreich gelöscht." -ForegroundColor Green + Write-Host "Powershell ~/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1 config erfolgreich gelöscht." -ForegroundColor Green Try { New-Item -Path "~\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1" -ItemType SymbolicLink -Value "~/.winconfig/profile.ps1" | Out-Null - Write-Host "Powershell config erfolgreich verlinkt." + Write-Host "Powershell config ~/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1 erfolgreich verlinkt." } Catch { - Write-Host "Probleme beim verlinken der Powershell config." -ForegroundColor Red + Write-Host "Probleme beim verlinken der Powershell config ~/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1 ." -ForegroundColor Red } } # Powershell Modul für Updates