Aug 09 2023 01:01 PM
I'm still very much new to powershell, but I've worked on a script that would populate a csv file with the last login date for the users that are in my csv file. It reads in my csv file fine, but it doesn't give me the last login date in the csv spreadsheet
Aug 09 2023 11:45 PM
Hi there.
You're using the wrong module and command for two reasons:
At a minimum, the two modules you will need to install are:
Optionally, though I'd recommend it, you'll also want to install:
Once you have those installed, you'll want to make use of one or both of the following:
The "beta" modules and commandlets are often referred to as they have a tendency to expose a lot more data than is available from the v1.0 endpoint, but it's entirely your call.
Cheers,
Lain