Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!
$Fname = $_.FirstName $Lname = $_.LastName $EmpID = $_.EID $MyEmail = "email@example.com" $SMTP= "172.24.225.222" $To = "firstname.lastname@example.org" $Subject = "Create Email Script" $Body = "reply ADD NETWORK $LogonName `"$Fname`" `"`" `"$Lname`" `"`" changenow `"Requested by:HR \r Created by:Automation`" $EmpID `"`" 2 `"$EmailGroup`" `"cs staff`" PUT USER $LogonName 1252 0 $LogonName" Start-Sleep 2 Send-MailMessage -To $to -From $MyEmail -Subject $Subject -Body $Body -SmtpServer $SMTP -Port 25 -DeliveryNotificationOption never
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
|Change script to be able to BCC and email address when sending an email||1||25|
|Save Exchange PowerShell Command||12||32|
|Is there a way to batch move one sub folder into another for over 200 folders?||3||31|
|output in HTML in Powershell||5||23|