Having a hard time getting powershell to email myself, testing so I can setup a disk space alert script on pc's with task scheduler.
Here is what I have so far;
send-mailmessage -SmtpServer 'outlook.office365.com' -port 587 -from [email protected] -To [email protected] -subject 'test' -body 'test'
I've tried with port 25 as well as smtpserver office365.com although different response on changing the smtp server.