Dateien nach "/" hochladen
This commit is contained in:
parent
79d9fc946c
commit
75b6b1537f
18
Anleitung.txt
Normal file
18
Anleitung.txt
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
Für Signatur ohne Kontaktbild:
|
||||||
|
|
||||||
|
Ordner ohne_KontaktBild öffnen.
|
||||||
|
|
||||||
|
Rechtsklick auf ohne_KontaktBild.ps1 Datei -> Mit Powershell ausführen
|
||||||
|
|
||||||
|
Wenn neue Signatur als Standard Signatur im Outlook gewünscht ist:
|
||||||
|
|
||||||
|
In Outlook (Classic) -> Datei -> Optionen -> E-Mail -> Signaturen -> Neue Nachrichten -> (erstellte Signatur auswählen)
|
||||||
|
|
||||||
|
|
||||||
|
Für Signatur mit Kontaktbild:
|
||||||
|
|
||||||
|
Ordner mit_KontaktBild öffnen.
|
||||||
|
|
||||||
|
Rechtsklick auf mit_KontaktBild.ps1 Datei -> Mit Powershell ausführen
|
||||||
|
|
||||||
|
Danach Bitte subcura kontaktieren.
|
||||||
121
WIP-Dresden GmbH.html
Normal file
121
WIP-Dresden GmbH.html
Normal file
File diff suppressed because one or more lines are too long
40
mit_KontaktBild.ps1
Normal file
40
mit_KontaktBild.ps1
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
# Quellordner
|
||||||
|
$SourceFolder = "\\vsql01\FLOWFACT\subcura\Outlook_Signatur\mit_KontaktBild\Signatur"
|
||||||
|
|
||||||
|
# Zielordner Outlook Signaturen
|
||||||
|
$TargetFolder = "$env:APPDATA\Microsoft\Signatures"
|
||||||
|
|
||||||
|
Copy-Item -Path "$SourceFolder\*" -Destination $TargetFolder -Recurse -Force
|
||||||
|
|
||||||
|
$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 = "$env:APPDATA\Microsoft\Signatures\WIP-Dresden GmbH.htm"
|
||||||
|
|
||||||
|
$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)
|
||||||
|
|
||||||
|
Set-Content -Path $File -Value $html -Encoding UTF8
|
||||||
40
ohne_KontaktBild.ps1
Normal file
40
ohne_KontaktBild.ps1
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
# Quellordner
|
||||||
|
$SourceFolder = "\\vsql01\FLOWFACT\subcura\Outlook_Signatur\ohne_KontaktBild\Signatur"
|
||||||
|
|
||||||
|
# Zielordner Outlook Signaturen
|
||||||
|
$TargetFolder = "$env:APPDATA\Microsoft\Signatures"
|
||||||
|
|
||||||
|
Copy-Item -Path "$SourceFolder\*" -Destination $TargetFolder -Recurse -Force
|
||||||
|
|
||||||
|
$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 = "$env:APPDATA\Microsoft\Signatures\WIP-Dresden GmbH.htm"
|
||||||
|
|
||||||
|
$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)
|
||||||
|
|
||||||
|
Set-Content -Path $File -Value $html -Encoding UTF8
|
||||||
Loading…
x
Reference in New Issue
Block a user