Quick test to find out whether you setup the SMTP server correctly.
Send-MailMessage -SMTPServer localhost -To example@example.com -From example@example.com -Subject "Test" -Body "Test"
Quick test to find out whether you setup the SMTP server correctly.
Send-MailMessage -SMTPServer localhost -To example@example.com -From example@example.com -Subject "Test" -Body "Test"
If you need to remove X days old folders from a command line here is a short PowerShell command which will take care of it.
PowerShell -Command "& Get-ChildItem "%1" | Where-Object {$_.PSIsContainer -and $_.LastWriteTime -le [System.DateTime]::Now.AddDays(-%2)} | Remove-Item -Recurse -Force"
Just replace %1 with a base folder and %2 with number of days.