Getting Azure Reports RRS feed

  • Question

  • I need to generate these following reports :

    • Retention period * On premise and cloud AD. 
    • Capture RAW data for a year from all AD servers.
    • Compound Daily, Weekly, Monthly Reports and 
    • Compound Daily, Weekly, Monthly Reports.
    •  Lockout report. When was it last lock out and lock out from where?

    This is the script I tried for Lockout report:

    $sAMAccountNames = Search-ADAccount -LockedOut | Select SamAccountName 
    $Details = $sAMAccountNames | % {Get-ADUser -Identity $_.sAMAccountName -Properties LastlogonDate,Enabled, AccountLockoutTime,LastBadPasswordAttempt,BadPwdCount,LockedOut} 
    $Details | Select SamAccountName, LastlogonDate,Enabled, AccountLockoutTime,LastBadPasswordAttempt,BadPwdCount,LockedOut | Export-Csv F:\ReportLogs.csv -NoTypeInformation

    And for the following scripts like grabbing data does anyone have advise on which script should I use to edit?

    • Moved by Bill_Stewart Wednesday, December 12, 2018 5:13 PM This is not "scripts on demand"
    Thursday, August 16, 2018 2:50 AM

All replies