#usefulscripts
Explore tagged Tumblr posts
danorth · 6 years ago
Link
Today I wanted to present a little PowerShell module that makes it easy to send emails. Full overview with examples can be found http://bit.ly/2KyComD is it about? It's supposed to make it clearly visible what you're trying to send with Powershell so that when you look back at your code in 6 months time you know what is going on and you can fix any formatting as you want it.Import-Module PSWriteHTML -Force Import-Module Emailimo -Force ### Prepare your data: $UserNotify = 'Przemysław Kłys' $PasswordExpiryDays = 5 Email -WhatIf { EmailHeader { EmailFrom -Address '[email protected]' EmailTo -Addresses "[email protected]" EmailServer -Server 'mail.evotec.com' -UserName 'YourUsername' -Password 'C:\Support\Important\Password-Evotec-Reminder.txt' -PasswordAsSecure -PasswordFromFile EmailOptions -Priority High -DeliveryNotifications Never EmailSubject -Subject 'This is a test email' } EmailBody -FontFamily 'Calibri' -Size 15 { EmailTextBox { "Hello $UserNotify," "" "Your password is due to expire in $PasswordExpiryDays days." "" 'To change your password: ' '- press CTRL+ALT+DEL -> Change a password...' '' 'If you have forgotten your password and need to reset it, you can do this by clicking here. ' "In case of problems please contact the HelpDesk by visiting [Evotec Website](https://evotec.xyz) or by sending an email to Help Desk." '' 'Alternatively you can always call Help Desk at +48 22 00 00 00' '' 'Kind regards,' 'Evotec IT' } EmailText -LineBreak } Example 2:Import-Module PSWriteHTML -Force Import-Module Emailimo -Force ### Prepare your data: $UserNotify = 'Przemysław Kłys' $PasswordExpiryDays = 5 Email { EmailHeader { EmailFrom -Address '[email protected]' EmailTo -Addresses "[email protected]" EmailServer -Server 'mail.evotec.com' -UserName 'UserName' -Password 'C:\Support\Important\Password-Evotec-Reminder.txt' -PasswordAsSecure -PasswordFromFile EmailOptions -Priority High -DeliveryNotifications Never EmailSubject -Subject 'This is a test email' } EmailBody -FontFamily 'Calibri' -Size 15 { EmailText -Text "Hello ", $UserNotify, "," -Color None, Blue, None -Verbose -LineBreak EmailText -Text "Your password is due to expire in ", $PasswordExpiryDays, "days." -Color None, Green, None EmailText -LineBreak EmailText -Text 'To change your password: ' EmailText -Text '- press ', 'CTRL+ALT+DEL', ' -> ', 'Change a password...' -Color None, BlueViolet, None, Red EmailText -LineBreak EmailTextBox { 'If you have forgotten your password and need to reset it, you can do this by clicking here. ' "In case of problems please contact the HelpDesk by visiting [Evotec Website](https://evotec.xyz) or by sending an email to Help Desk." } EmailText -LineBreak EmailText -Text 'Alternatively you can always call ', 'Help Desk', ' at ', '+48 22 00 00 00' ` -Color None, LightSkyBlue, None, LightSkyBlue -TextDecoration none, underline, none, underline -FontWeight normal, bold, normal, bold EmailText -LineBreak EmailTextBox { 'Kind regards,' 'Evotec IT' } } } via /r/usefulscripts
0 notes
vfxblogusefulscripts-blog · 9 years ago
Text
Usefulscripts:3 Removing light flicker from plates (FrameHold)
Some times its best to just use the framehold instead of creating a Refframe with (NoOp) node. so here is how to add the Frame hold expression.
You can also apply the same to (Usefulscripts:1 Adding Flickering Light to Your Patch) method.
Tumblr media
0 notes
danorth · 9 years ago
Link
So this week I wrote Powershell integration for the malwaredomains.com txt list. They offer some instructions on how to set it up. There is also a powershell method that utilizes WMIThose both are the "old methods." I decided since the DNS commands in powershell have improved a bit since that was written I would write a script that utilizes the new DNS commands.The whole thing can be found on my github herePastebin for deploypastebin for roll backpastebin for bonus hostfile generatorMy blog with the writeup via /r/usefulscripts
0 notes
danorth · 10 years ago
Link
http://ift.tt/1eevZaa via /r/usefulscripts
0 notes