Sturbi's Home

  • Gallery
  • Modellflug
  • Datenschutz
  • Impressum

Blog

  • Allgemein (11)
    • Sprüche (6)
  • Computer (25)
    • Linux (16)
      • Nagios (5)
      • Nginx (4)
      • Postfix (3)
      • Subversion (1)
    • VMware (3)
    • Windows (9)
      • Powershell (8)
  • Fotografie (25)
  • Reise (7)
    • Hawaii (4)
    • Irland (1)
Wenn du etwas so machst,
wie du es seit zehn Jahren gemacht hast,
dann sind die Chancen groß,
daß du es falsch machst.

Charles F. Kettering amerikanischer Ingenieur * 29.08.1876, † 25.11.1958

Aprilwetter

9. April 2022 by Sturbi Kategorie: Fotografie

MG_3169
MG_3154
MG_3155
MG_3150
MG_3151
MG_3156
MG_3161
MG_3160
MG_3163
MG_3167

NuGet in Powershell aktualisieren

27. Januar 2022 by Sturbi Kategorie: Powershell

Weil ich immer wieder danach suche, habe ich es hier aufgeschrieben.
Original Artikel: https://www.alitajran.com/unable-to-install-nuget-provider-for-powershell/

Set-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value '1' -Type DWord
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value '1' -Type DWord
[Net.ServicePointManager]::SecurityProtocol
Install-Module PowershellGet -Force

Frost

8. Januar 2022 by Sturbi Kategorie: Allgemein

MG_3087
MG_3085
MG_3124
MG_3076
MG_3088
MG_3103
MG_3080
MG_3073
MG_3106
MG_3122
MG_3112

Sunset

31. August 2021 by Sturbi Kategorie: Allgemein

Sonnenuntergang in Waimea Bay … auf dem Desktop wiedergefunden

MG_1946

MG_1946
Bild 1 von 1

Elsterglanz

20. August 2021 by Sturbi Kategorie: Allgemein

2_MG_3038
1_MG_2923
2_MG_2905
1_MG_2956
2_MG_2979
2_MG_3029
2_MG_3032
2_MG_3031
2_MG_3035
1_MG_3004

E-Mail bei Powershell Script Abbruch

16. Februar 2021 by Sturbi Kategorie: Powershell

Wer Powershell Scripte über den Windows Taskplaner zur Sicherung einsetzt, möchte vielleicht auch informiert werden, wenn das Script mit einem nicht behandelten Fehler abbricht.

function Send-Mail ($message) {
    $emailSmtpServer = "smtp.domain.tld"
    $emailFrom = "taskplaner@domain.tld"
    $emailTo = "admin@domain.tld"
    $emailSubject = "Backup Script fail"

    Send-MailMessage -To $emailTo -From $emailFrom -Subject $emailSubject -Body $message -SmtpServer $emailSmtpServer
}

$ErrorActionPreference = 'stop'
trap { 
    $ErrorActionPreference = 'Continue'
    Send-Mail -message $_.Exception.Message
    break
}

# ... ab hier das eigentliche Script ...
  • 1
  • 2
  • 3
  • …
  • 10
  • Nächste Seite »

© 2022 · Sturbi's Home