12Knocksinna / Office365itpros

Office 365 for IT Pros PowerShell examples
MIT License
1.33k stars 577 forks source link

FindObsoleteGuestsByActivityV3 script with error #94

Closed funmix closed 11 months ago

funmix commented 11 months ago

Script : FindObsoleteGuestsByActivityV3.PS1 Issue : New-TimeSpan : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input. At line:54 char:42

12Knocksinna commented 11 months ago

Looks like the change to the Microsoft Graph PowerShell SDK V2 screwed this up because the creation date is not fetched unless you either specify it (with Get-MgUser) or use the Get-MgBetaUser cmdlet. I've fixed this and some other issues I see...