Sunday 1 December 2013

Activating an active directory user account using CMD (Command Prompt) SERVER 2012 R2

In my previous post we looked at disabling an active directory user account via CMD: http://todaysittips.blogspot.ca/2013/12/deactivating-active-directory-user.html.

Now we will be looking at reactivating the account we disabled.

Start by opening CMD and typing net user bchan /active:yes this will activate the account.


Once you have received "the command completed successfully" you can go to the AD UC wizard and refresh the users section to see that now the arrow pointing down has disappeared. Your account has been reactivated.

Enjoy.

Deactivating an active directory user account using CMD (Command Prompt) SERVER 2012 R2


Start by accessing CMD (Command Prompt) and have AD UC open just to see it working quicker that logging in and out.


Here we can see CMD open and our AD UC open, we can see our user Brian Chan is active.

Start by navigating to CMD and type: net user bchan /active:no

This will deactivate the account called bchan.


Refresh your AD UC console and you will notice that Brian Chan now has an arrow pointing down, this means his account is now deactivated.

Enjoy!

Disjoin a domain SERVER 2012 R2

In my previous post we looked at joining a domain using your server 2012, today we will be looking at dis-joining a domain.

 This is useful for core server installations. Start with opening CMD.


Once CMD has opened type in netdom remove /d:startrun.inet server4 /ud:startrun.inet\administrator /pd:Password123 you will then receive "the command completed successfully" you may now reboot using: shutdown /r /t 0

Once your machine has rebooted you may verify by right clicking on my computer and selecting properties.


Or via CMD by opening the command prompt and typing in: netdom verify /d:startrun.inet server3


This will show you that your computer is not connected to any domain.

Enjoy!

Joining a domain using command prompt (CMD) SERVER 2012 R2

Today we will be looking at joining your network domain using CMD and Powershell.

Firstly you will want to assign a static IP address to your server. You can find detailed instructions here:  http://todaysittips.blogspot.ca/2013/11/assigning-static-ip-through-powershell.html

After you have assigned a STATIC IP and DNS server open CMD and type in the following: netdom join server4 /domain:startrun.inet /userd:administrator /passwordd:Password123 using this command you will be able to join your network domain.

Now dissecting the command: you are telling your computer: netdom join server4 this is saying join the named computer to my domain. /domain: is telling your computer to join the named domain. /userd: is defining the domain user you would like to join with. and /passwordd: is the password that you have set for domain access.

 
After you have received "the command completed successfully" message type in shutdown /r /t 0 in order to restart you machine.

Once the machine has restarted you may check that you are part of the domain by right clicking on my computer and going to properties.


Or via CMD by typing in the following command: netdom verify /d:startrun.inet server3


This command verifies your connectivity to the server and which server you are connected to.

Enjoy!