Skip to content

Windows Server 2008 – How to use Net User Commands – The Visual Guide

11/10/2013

Net user commands aren’t exactly easy to work out using Microsoft guides.  Cryptic doesn’t come near their instructions, so here’s the easy guide:

Step 1 – NET ACCOUNTS

Why would we use this?  To find out information such as min password length.

net accounts

NET ACCOUNTS /DOMAIN

This also works…

net accounts domain

Prehaps our attack could reset passwords never to expire…

Its not like the users would complain.

NET ACCOUNTS /MAXPWAGE:UNLIMITED /DOMAIN

net accounts unlimited

******

Step 2 – net group

Want to add a group?  Easy peasey – apart from typing ADD in capitals at the end.

net group rubbishgroup /ADD

net group add*******

Step 3 – net user and new password

Here we add a new user, with a new password.

Lets create an account for your boss…  bear in mind they might have to log on with that password….

bossy

******

Step 4 – Don’t Delete your Bosses Account

Like ever…. oh, okay then….

net user delete******

Step 5 – Add BOSSESACCOUNT to the Rubbishgroup – because they’re amazing

bosses accountoops.  We deleted it.  I forgot about that.

There we go… I recreated BOSSESACCOUNT and put in him the super dooper rubbishgroup.

add bossYay!  Our boss is happy.

Who could want more?  Oh, you do?

Step 6 – DSQUERY on BOSSESACCOUNT

dsquery user -name BOSSESACCOUNT

dsqueryThis outputs the distinguished name, which to you and me, is the dodgy “CN=wotsit, CN=users,DC=domain,DC=UK” name..  you wouldn’t want to say that in a dark alley…

 

*****

Excellent site for easy net use commands

http://ss64.com/nt/net_useradmin.html

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: