send active directory password rule via an email
hello
can me scripting, send out automated email mgmt heads ad password rules.
thanks
naveen rao
hi,
here's example of how can send email via powershell:
$subject = 'email subject line' $to = 'user1@domain.com','user2@domain.com' $from = 'you@domain.com' $smtpserver = 'smtp.domain.com' $body = @' email body. example using here-string. put whatever want in here. thanks, department '@ send-mailmessage -to $to -from $from -subject $subject -body $body -smtpserver $smtpserver
don't retire technet! - (don't give yet - 13,085+ strong , growing)
Windows Server > Windows PowerShell
Comments
Post a Comment