Forum Discussion
TomWechsler
Jul 14, 2021MVP
Using PowerShell in Microsoft 365, find all users who have not logged in in the last 180 days!
Hi Azure / Microsoft365 friends,
In a recent project, I was allowed to take on the following task. Search for all users (active users, not deactivated accounts) who had not logged in in the...
Aldmor
May 16, 2023Copper Contributor
Write-ErrorMessage : Cannot process argument transformation on parameter 'StartDate'. Cannot convert value "11/17/2022" to type
"Microsoft.Exchange.ExchangeSystem.ExDateTime". Error: "String was not recognized as a valid DateTime."
😞
"Microsoft.Exchange.ExchangeSystem.ExDateTime". Error: "String was not recognized as a valid DateTime."
😞
rellek74
Dec 13, 2023Copper Contributor
I've seen this error on some versions of PowerShell. Try a different version.
Works on 5.1 ok
Works on 5.1 ok