List local user accounts and their home directories

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

how can I (easily) list all local user accounts as user name/home directory?

Thanks.
 
David,

If you want to get the list of local user accounts, you can use a WMI
query for all instances of the Win32_UserAccount object where the
LocalAccount property is true.

As for getting the directory for that user, see my response to your
other post on this topic.

Hope this helps.
 
Back
Top