Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Hallo zusammen,

ja, der Titel ist mit Absicht so nichtssagend gewählt, damit jemand mit einem ähnlichen Problem ggf. eine Glückstreffen bei google landen kann.

Das Script selbst, also der Code ist wohl nicht das Problem, kopierne ich den in ein Powershellfenster flutscht er durch, speichere ich das Zeug aber als .ps1 File und möchte dieses ausführen, dann macht es kurz Plopp, das blaue PS Fenster öffnet sich und ist 0,5 bis 1 Sekunde später wieder zu. Manchmal kann ich noch kurz eine rote Fehlermeldung sehen und das wars.

Die Powerhell Execution Policy steht auf Unrestricted, der Code selbst schein lauffähig, auf einem anderen Server ausführen ist leider keine Option, da ich das MessageTrackinglog des Exchange abfragen will und dafür das PS-SnapIn für Exchange brauche.

Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010

pause

$today = Get-Date -format yyyy-M-dd
$sender = "absender@contoso.com"
$file = "C:\Export\$today.csv"

Get-MessageTrackingLog -Start $today -Sender $sender -EventID send | Select-Object MessageSubject > $file

pause

Als Script ausgeführt, wird noch nicht mal der erste Schritt ausgeführt...

Ich kam vor ein paar Tagen das erste mal seit längerer Zeit wieder mit Powershell in Kontakt. 

Ich kann bei der Entwicklung das Visual Studio Code + Powershell Extension empfehlen. 

Mir hat es beim Wiedereinstieg / Entwicklung geholfen.

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.