Need help with a PS script

by hpmac2 at 2013-04-22 06:22:06

Hi all,

I am having trouble getting the outcome I desire.

This is what I need to do
Please provide a list of active users (from Active Directory) that do not have the setting for password neve expires If possible, include in the list the following:

(1) First and Last Name

(2) e-mail address

(3) department

(4) date password was last set.
My issue is I can get the name and the fact that the password is not expired, but I have no idea how to pull the rest of the info needed. Also if possible I would like to get on active accounts

Thanks,

pat
by ArtB0514 at 2013-04-22 06:29:44
If you are using the Quest tools, then try this: Get-Help Get-QADUser -Full
If you are using the Microsoft tools, then try this: Get-Help Get-ADUser -Full

That will get you the instructions on how to use the commands. Then, try them out to see which properties are returned by default and which you need to specify ("-IncludedProperties" for Quest, or "-Properties" for Microsoft). That’ll get you the data you need.
by hpmac2 at 2013-04-22 07:05:50
Thank you

Pat
by ArtB0514 at 2013-04-22 07:19:58
You’re welcome, and please let us know how you get it worked out.