suelzle Posted June 9, 2020 #1 Share Posted June 9, 2020 Hallo zusammen, ist es möglich die Willkommens-E-Mail per powershell zu versenden? Z.b für eine Gruppe oder einen Standort? Habe keine entsprechende Syntax gefunden und kenne mich mich Powershell nicht so gut aus. vielen Dank vorab. Link to comment Share on other sites More sharing options...
Most Valued User Sebastian Dreier Posted June 9, 2020 Most Valued User #2 Share Posted June 9, 2020 Hello Suelzle, ja dies ist wie folgt möglich: # Send welcome mail for all users Get-IpPbxUser | Send-IpPbxUserWelcomeMail # Send welcome mail for one specific users Get-IpPbxUser -UserName "Sebastian" | Send-IpPbxUserWelcomeMail # Send a welcome email based on the template "MyTemplate.html" to every user. # The original template can be download via SwyxWare administration Get-IpPbxUser | Send-IpPbxUserWelcomeMail -MailTemplatePath "c:\MyTemplate.html" Link to comment Share on other sites More sharing options...
suelzle Posted June 15, 2020 Author #3 Share Posted June 15, 2020 Hallo Sebastian, vielen Dank für die schnelle Antwort. Gibt es eventuell auch die Möglichkeit die Abfrage auf einen Standort einzuschränken? Wir haben 25 Standorte, und ich würde das gerne gezielt auf einzelne anwenden. Vielen Dank vorab. Link to comment Share on other sites More sharing options...
Most Valued User Sebastian Dreier Posted June 15, 2020 Most Valued User #4 Share Posted June 15, 2020 Hallo Suelzle, ja diese Möglichkeit gibt es: # Send welcome mail for users of a specific location $location = Get-IpPbxLocation -LocationName "Neubeckum" Get-IpPbxUser | Where-Object { $_.LocationID -eq $location.LocationID } | Send-IpPbxUserWelcomeMail Alternativ gibt es auch die Möglichkeit die E-Mail auf Basis von Gruppen zu versenden: # Send welcome mail for members of a specific group Get-IpPbxGroupMember -GroupName "TestGroup" | Send-IpPbxUserWelcomeMail Kind regards Sebastian Dreier Link to comment Share on other sites More sharing options...
suelzle Posted June 17, 2020 Author #5 Share Posted June 17, 2020 Hallo Sebastian, Perfekt. super vielen Dank. VG Suelzle Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now