Mikecrowley.files.wordpress.com



Connect to EOP$DemoCred = Get-StoredCredential -Name outlook.$Session = @{ ConfigurationName = 'Microsoft.Exchange' ConnectionUri = '' Authentication = 'basic' Credential = $DemoCred AllowRedirection = $true }Import-PSSession (New-PSSession @Session)Send ConnectorNew-OutboundConnector -Name "Connector1" -SmartHosts 5.6.7.8 -UseMXRecord $false -RecipientDomains * Disclaimer$HTML = Get-Content C:\Users\Demo\Desktop\demoFiles\EOP\Sources\Signature.htm | Out-String $RuleParams = @{ Name = "Add Signatures" SentToScope = "NotInOrganization" ExceptIfSubjectOrBodyMatchesPatterns = "This message contains confidential information and is intended" ApplyHtmlDisclaimerText = $HTML }New-TransportRule @RuleParams Disclaimer HTML<html>%%displayname%%</br>%%title%%</br>%%company%%</br>%%street%%</br>%%city%%, %%state%% %%zipcode%%</div>&nbsp;</br><div style="background-color:#D5EAFF; border:1px dotted #003333; padding:.8em; "><span style="font-size:12pt; font-family: 'Cambria','times new roman','garamond',serif; color:#ff0000;">IT/DevConnections</span></br><div><img alt="IT/DevConnections" src=""></div><p style="font-size:8pt; line-height:10pt; font-family: 'Cambria','times roman',serif;">This message contains confidential information and is intended only for the individual(s) addressed in the message. If you are not the named addressee, you should not disseminate, distribute, or copy this e-mail. If you are not the intended recipient, you are notified that disclosing, distributing, or copying this e-mail is strictly prohibited. </p><span style="padding-top:10px; font-weight:bold; color:#CC0000; font-size:10pt; font-family: 'Calibri',Arial,sans-serif; "><a href="">IT/DevConnections Website. </a></span></br></br></div></html>Message TraceGet-MessageTrace -SenderAddress userb@ -RecipientAddress mike@mikecrowley.us | select *$x = Get-MessageTrace -StartDate 9/14/2015 -EndDate 9/15/2015 -FromIP 69.162.16.17$x | Get-MessageTraceDetail | select * | Out-GridView ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download