Tag: Entra

  • Disable “stale” user accounts for Office 365 and on-prem hybrid

    , ,

    We recently had a cyber audit at work – and one of the recommendations was to ensure that any user accounts not used within 90 days were disabled. Prior to us moving to Office 365 hybrid we did have an on-prem tool that would do this for us, checking on-prem domain controllers for last login…

    Screenshot of Notepad++ showing the code for my DisableStaleAccounts.ps1 script