We are generating a report with list of users who has created newly within 7 days with QAD cmdlet.
Going to create batch file and schedule weekly once to execute.
Can we add time in the script so that it starts collecting the report from
Monday 7:00 AM to next Monday 6:59 AM
This requirement is to avaoid overlapping. Please guide me.
Get-QADUser -CreatedAfter (Get-Date).AddDays(-7) -IncludeAllProperties | select Samaccountname,displayname,description,whencreated,useraccountcontrol | Export-Csv -Path c:\Report.csv