All posts by joe.relhak@gmail.com

Powershell to Email Event IDs

#Select last 15 minutes
$start=(Get-Date).AddMinutes(-15)
$end=Get-Date

#email recipients as an array
[string[]]$recipients = ““, ““, “

#when testing and not spamming
#$recipients = “

$emailbody=Get-Eventlog -log application -after $start -before $end -Source “SOURCE” | where {$_.eventID -eq 123 -or $_.eventID -eq 456} | select EventID,TimeGenerated,Message | ConvertTo-HTML

#convert to string for email purposes
$stringbody=Out-String -InputObject $emailbody
#send email
Send-MailMessage -To $recipients -From “User” -Cc “” -Subject “Subject” -Body $stringbody -BodyAsHtml -SmtpServer “SMTP SERVER” -UseSSL

Set as a scheduled task run every 15 minutes, -ExecutionPolicy Bypass

Adobe Illustrator shortcuts

Convert background to transparent
Illustrator >> View >> Show transparency grid

Scale Tool
1. Click the “Selection” tool, or arrow, from the Tools panel and click to select the object you want to resize.

2. Choose the “Scale” tool from Tools panel.

3. Click anywhere on the stage and drag up to increase the height; drag across to increase the width. Hold the “Shift” key before you begin the drag to scale proportionately.

4. Double-click the “Scale” tool to resize the selected image using specific value percentages. Enter the values in the applicable fields. For instance, type “50” in the Scale field of the Uniform section to resize the image to 50 percent.