Good morning,
I have a powershell command that I want to schedule to run on Mondays and send an email to my email group, can someone assist me or provide a good resource to help out.
The command is to search for uses who have been inactive for 30 days.
Search-ADAccount -UsersOnly -AccountInactive -TimeSpan 30.00:00:00 | Where {$_.Enabled} | Sort Name | Get-ADUser -Prop DisplayName | Select Name,DisplayName | Out-File users.txt
Chad