From 66a66d7fd759cef7af967e96e8c8f4379826699e Mon Sep 17 00:00:00 2001 From: scriptos Date: Mon, 6 Nov 2023 20:03:10 +0100 Subject: [PATCH] Umzug ins neue Repo und damit verbundene Anpassungen --- LICENSE | 2 ++ README.md | 8 +++++++- .../rdp-access-mail-notification.v3.ad.ps1 | 6 +++--- .../rdp-access-mail-notification.v3.local.ps1 | 17 ++++++++++++++--- 4 files changed, 26 insertions(+), 7 deletions(-) diff --git a/LICENSE b/LICENSE index 28c00e5..b03ff96 100644 --- a/LICENSE +++ b/LICENSE @@ -7,3 +7,5 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +Patrick Asmus | www.media-techport.de \ No newline at end of file diff --git a/README.md b/README.md index 9a00847..f74f0af 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,8 @@ -# rdp-mailbenachrichtigung +**1. Skript: rdp-access-mail-notification.v3.ad.ps1** +- **Beschreibung:** Dieses Skript sendet eine E-Mail-Benachrichtigung an alle Mitglieder einer Gruppenrichtlinie, wenn sich jemand per Remote Desktop Protocol (RDP) auf einem Windows-System anmeldet. Es extrahiert Informationen aus dem Ereignisprotokoll und informiert die Benutzer über die Anmeldung, einschließlich Datum, Uhrzeit, Domäne, Benutzer und IP-Adresse des Clients. + + +**2. Skript: rdp-access-mail-notification.v3.local.ps1** + +- **Beschreibung:** Dieses Skript sendet eine E-Mail-Benachrichtigung, wenn sich jemand per Remote Desktop Protocol (RDP) auf einem Windows-System anmeldet. Es verwendet Informationen aus dem Ereignisprotokoll, um die Benutzer über die Anmeldung zu informieren, einschließlich Datum, Uhrzeit, Domäne, Benutzer und IP-Adresse des Clients. Die Benachrichtigung geht an eine vordefinierte Empfängeradresse. \ No newline at end of file diff --git a/ad-version/rdp-access-mail-notification.v3.ad.ps1 b/ad-version/rdp-access-mail-notification.v3.ad.ps1 index aef9a14..1151707 100644 --- a/ad-version/rdp-access-mail-notification.v3.ad.ps1 +++ b/ad-version/rdp-access-mail-notification.v3.ad.ps1 @@ -1,4 +1,4 @@ -# Script Name: rdp-access-mail-notification.v3.ps1 +# Script Name: rdp-access-mail-notification.v3.ad.ps1 # Beschreibung: Schickt allen Mitgliedern einer GG eine Mail, wenn sich jemand per RDP auf einem System anmeldet # Aufruf: - # Autor: Patrick Asmus @@ -6,7 +6,7 @@ # Git-Reposit.: https://git.media-techport.de/scriptos/private-script-collection.git # Version: 3.1 # Datum: 22.10.2023 -# Modifikation: Header hinzugefuegt +# Modifikation: Umzug ins neue Repo und damit verbundene Anpassungen ##################################################### # Konfigurationsparameter @@ -14,7 +14,7 @@ $SMTPServer = "smtp.media-techport.int" $FromName = "Media-Techport.DE | Notification Service" $FromEmail = "noreply@media-techport.de" $SecurityGroupDN = "CN=GG-MailAT_RDP-Access,OU=Benachrichtigungsgruppen,OU=Benutzergruppen,DC=media-techport,DC=int" -$LogoURL = "https://assets.media-techport.de/logos/main/LogoSchwarz.png" # URL zum Logo +$LogoURL = "https://assets.media-techport.de/logos/main/LogoSchwarz.png" # Funktion zum Senden von E-Mails function Send-Email { diff --git a/local-version/rdp-access-mail-notification.v3.local.ps1 b/local-version/rdp-access-mail-notification.v3.local.ps1 index bdfd3fe..a2e62b5 100644 --- a/local-version/rdp-access-mail-notification.v3.local.ps1 +++ b/local-version/rdp-access-mail-notification.v3.local.ps1 @@ -1,9 +1,20 @@ -# Konfigurationsparameter +# Script Name: rdp-access-mail-notification.v3.local.ps1 +# Beschreibung: Versendet eine Mail, wenn sich jemand per RDP auf einem System anmeldet +# Aufruf: - +# Autor: Patrick Asmus +# Web: https://www.media-techport.de +# Git-Reposit.: https://git.media-techport.de/scriptos/private-script-collection.git +# Version: 3.1 +# Datum: 22.10.2023 +# Modifikation: Umzug ins neue Repo und damit verbundene Anpassungen +##################################################### + +# Konfigurationsparameter $SMTPServer = "smtp.media-techport.int" $FromName = "Media-Techport.DE | Notification Service" $FromEmail = "noreply@media-techport.de" -$LogoURL = "https://assets.media-techport.de/logos/main/LogoSchwarz.png" # URL zum Logo -$ManualRecipient = "system@media-techport.de" # Manuell festgelegter E-Mail-Empfänger +$LogoURL = "https://assets.media-techport.de/logos/main/LogoSchwarz.png" +$ManualRecipient = "system@media-techport.de" # Funktion zum Senden von E-Mails function Send-Email {