Skip to content
This repository has been archived by the owner on Jan 21, 2021. It is now read-only.

inactiveInLastThreeMonthsUsers #52

Open
leibishr opened this issue Apr 3, 2019 · 3 comments
Open

inactiveInLastThreeMonthsUsers #52

leibishr opened this issue Apr 3, 2019 · 3 comments

Comments

@leibishr
Copy link

leibishr commented Apr 3, 2019

i am getting the following error when running the script to get inactive users. https://github.com/OfficeDev/O365-InvestigationTooling/blob/master/InactiveUsersLast90Days.ps1
Get-MsolUser : The term 'Get-MsolUser' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:5 char:13

  • $allUsers = Get-MsolUser -All -EnabledFilter EnabledOnly | Select Use ...
  •         ~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (Get-MsolUser:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException
@Absoblogginlutely
Copy link

@leibishr - This could be because you don't have the MS Online version 1 module activated and connected?
See https://docs.microsoft.com/en-us/powershell/module/msonline/?view=azureadps-1.0 for more information
Do lines 4 thru 9 work?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@Absoblogginlutely @leibishr and others