Parsing data from net user into powershell

HELP!

This has been driving me insane - we use net user a lot when troubleshooting user logon issues (usually the password has expired).

I am trying to parse some of the data out of net user into powershell and then create new objects using that data  - but cant seem to get it working - i keep getting stuck.

This is what i have so far - 

$output = net user $user /DOMAIN | Select-String "Full Name", "Account", "Home", "Last Logon", "Logon Hours Allowed", "Password"

This gets me the information i want but i cant get any further than that.

Any help or advice would be appreciated.

September 8th, 2015 10:51am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics