Debug fix
This commit is contained in:
@@ -8,7 +8,7 @@ function Update {
|
|||||||
Write-Host "Installiere Windows Updates..."
|
Write-Host "Installiere Windows Updates..."
|
||||||
Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -IgnoreReboot
|
Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -IgnoreReboot
|
||||||
# ooshutup10 ausführen. Manchmal werden settings nach Windos updates zurückgesetzt
|
# 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 "Update aller Powershell Module..."
|
||||||
Write-Host -ForegroundColor Cyan 'Get all PowerShell modules'
|
Write-Host -ForegroundColor Cyan 'Get all PowerShell modules'
|
||||||
function Remove-OldPowerShellModules {
|
function Remove-OldPowerShellModules {
|
||||||
|
|||||||
18
install.ps1
18
install.ps1
@@ -157,35 +157,35 @@ do {
|
|||||||
Write-Host "Löschen des default Powershell profiles..." -ForegroundColor Blue
|
Write-Host "Löschen des default Powershell profiles..." -ForegroundColor Blue
|
||||||
if ((Test-Path "~/Documents/PowerShell/profile.ps1" -PathType Leaf) -eq $True) {
|
if ((Test-Path "~/Documents/PowerShell/profile.ps1" -PathType Leaf) -eq $True) {
|
||||||
Remove-Item -Force "~/Documents/PowerShell/profile.ps1"
|
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 {
|
Try {
|
||||||
New-Item -Path "~/Documents/PowerShell/profile.ps1" -ItemType SymbolicLink -Value "~/.winconfig/profile.ps1" | Out-Null
|
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 {
|
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) {
|
if ((Test-Path "~/Documents/WindowsPowerShell/profile.ps1" -PathType Leaf) -eq $True) {
|
||||||
Remove-Item -Force "~/Documents/WindowsPowerShell/profile.ps1"
|
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 {
|
Try {
|
||||||
New-Item -Path "~/Documents/PowerShell/profile.ps1" -ItemType SymbolicLink -Value "~/.winconfig/profile.ps1" | Out-Null
|
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 {
|
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) {
|
if ((Test-Path "~/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1" -PathType Leaf) -eq $True) {
|
||||||
Remove-Item -Force "~/Documents/WindowsPowerShell/Microsoft.PowerShell_profile.ps1"
|
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 {
|
Try {
|
||||||
New-Item -Path "~\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1" -ItemType SymbolicLink -Value "~/.winconfig/profile.ps1" | Out-Null
|
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 {
|
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
|
# Powershell Modul für Updates
|
||||||
|
|||||||
Reference in New Issue
Block a user