Scripts, Tech Random's, Tips and Tricks

Send an Email Using Command Prompt or Batch File Script with PowerShell

Apply this line to any CMD line, Run as Administrator PowerShell.exe -NoProfile -ExecutionPolicy Bypass C:\Users\backups\Desktop\email.ps1 Then create a new text file and save it as a .PS1 —– #this works, just sends a simple email $smtpServer = “mail.smtp2go.com” $smtpFrom = “FROMEMAILENTERHERE” $smtpTo = “TOEMAILENTERHERE” $smtpSubject = “This is my email subject” $username = “email_username” $password = “email_password” $body = “yo…

Continue Reading

O365, Tech Random's, Tips and Tricks

Disable Clutter through O365 Admin Dashboard with Powershell

Disable clutter on O365 Admin Dashboard Step 1: Run Powershell ISE as Administrator Step 2 – Run: Set-ExecutionPolicy RemoteSigned Step 3 – Run: $UserCredential = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection Step 4 – Run: Import-PSSession $Session Step 5 – Run: Get-Mailbox | Set-Clutter -Enable $false Step 6 – Remember to end the…

Continue Reading

pfSense, Tech Blog, Tech Random's, Tips and Tricks

Setting up custom App Passwords in Gmail for smtp email notifications in pfSense

Setting up custom App Passwords in Gmail for smtp notifications in pfSense I needed to setup Custom notifications for pfSense, which requires an smtp account. This process will work for most systems that you use to send out emails via smtp. I chose gmail for this, gmail will block the sending of smtp accounts through anonymous sources, unless you setup…

Continue Reading

Tech Blog, Tech Random's

Going into Crisis Mode

Going into Crisis Mode If you have been in IT long enough, you end up experiencing a “Crisis Mode” day. You know, you click a button and immediately all hell breaks loose, then instantly, your brain clicks into crises mode. I had another one today. Tried to update our firewall, which normally has no issues, and comes right back up.…

Continue Reading

Tech Blog, Tech Random's

RPC Server is Unavailable due to Faulty wlan Driver

Machine: ASUS ROG G752VY Issue: After a restart, when trying to login to a machine local or domain, it gives the error “The RPC server is unavailable”. Would not restart from restart/shutdown window. Troubleshooting was remote. User stated they were restarting their machine, when the machine was actually just going to sleep, then coming back on when they pressed the…

Continue Reading