Create local user with PowerShell (Windows Vista)

Question:

I’ve installed PowerShell recently and one of the first things I started looking for was how to create a new user. After looking for some time I still haven’t found this.
I have a little experience in bash on linux and find it very effective. Creating users there is trivial.
Is there an easy\built-in way to create a local user with PowerShell?

Thank you.

Answer:

You can use the localhost’s ADSI:

Source:

Create local user with PowerShell (Windows Vista) by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply