Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Reply To: Can't export Get-ADUser results using Export-CSV

$
0
0

Thanks Robert,

Yes, I did know about the format-right rule. I was just trying anything to get all of the data into one sheet so I could manipulate it in Excel for a one-off report which was needed in a rush. I know it was slapdash (now you know how I got my name), but it worked on this one occasion.

I may have originally misunderstood the way that the lastlogondate,lastlogon and lastlogontimestamp attributes worked. I had read that they were low-priority replication, but I was worried that if someone hadn't logged in for a number of months, and then for example returned from maternity leave yesterday and logged in, it might not have registered/replicated.

We're disabling accounts that haven't been used for 60 days, so I want to be absolutely sure before I send the results on to Management. Apologies if I've got the wrong end of the stick. I'll read up some more on the differences between the various attributes and if the lastlogontimestamp is the one to use, I'll amend the script to query that attribute and just the one DC.

Appreciate your input. Many thanks.

TG


Viewing all articles
Browse latest Browse all 13067

Trending Articles