From 511d279affe50508160c66d850191dfb40f4333a Mon Sep 17 00:00:00 2001 From: "gordon.zimm" Date: Wed, 20 May 2026 07:46:18 +0000 Subject: [PATCH] =?UTF-8?q?ohne=5FKontaktBild.ps1=20gel=C3=B6scht?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ohne_KontaktBild.ps1 | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 ohne_KontaktBild.ps1 diff --git a/ohne_KontaktBild.ps1 b/ohne_KontaktBild.ps1 deleted file mode 100644 index 003ce07..0000000 --- a/ohne_KontaktBild.ps1 +++ /dev/null @@ -1,38 +0,0 @@ -$UserName = $env:USERNAME - -$root = [ADSI]"LDAP://RootDSE" -$base = "LDAP://$($root.defaultNamingContext)" - -$searchRoot = [ADSI]$base - -$searcher = New-Object System.DirectoryServices.DirectorySearcher($searchRoot) -$searcher.Filter = "(&(objectCategory=person)(objectClass=user)(sAMAccountName=$UserName))" - -$searcher.PageSize = 1 - -$result = $searcher.FindOne() - -$props = $result.Properties - -$DisplayName = $props["displayname"][0] -$Position = $props["title"][0] -$Telefon = $props["telephonenumber"][0] -$Mail = $props["mail"][0] - -# Signaturpfad -$File = "\\vsql01\FLOWFACT\subcura\Outlook_Signatur\ohne_KontaktBild\WIP-Dresden GmbH.html" - -$html = Get-Content $File -Raw - -$html = $html.Replace("{BEN_NAME}", $DisplayName) -$html = $html.Replace("{BEN_POSITION}", $Position) -$html = $html.Replace("{BEN_TelefonBuero}", $Telefon) -$html = $html.Replace("{BEN_email}", $Mail) - -$TempFile = "$env:TEMP\signature_preview.html" - -# schreiben -Set-Content -Path $TempFile -Value $html -Encoding UTF8 - -# anzeigen -Start-Process $TempFile \ No newline at end of file