Forum Discussion

satya mahapatra's avatar
satya mahapatra
Copper Contributor
Apr 05, 2022

get license disabled user report

Hi,

 

i need to pull office365  disable user who have license &  didn't sign in more than 15 days to office365.

any PowerShell script will great help.

 

Thanks 

1 Reply

  • satya mahapatra 

    With the help of these two examples, it could be possible for you to put together a script that produces the information you want.

    • https://docs.microsoft.com/en-us/microsoft-365/enterprise/view-licensed-and-unlicensed-users-with-microsoft-365-powershell?view=o365-worldwide?WT.mc_id=M365-MVP-5003783
    • https://aleson-itc.com/en/getting-inactive-users-into-office-365-with-powershell/%20https://shellgeek.com/powershell-get-ad-user-not-logged-in-x-days/

Resources