Connect to AD domain using power shell

  



HI friends,

Today we are going to connect to AD(active directory) using windows power shell

First run the power shell in administrative mode

  • Check IP address and Default gate way, (power shell command "ipconfig") and 
  • Check DNS server setting (power shell command "ipconfig /all")
The DNS server must point to AD Domain Controller. to verify it 

Enter the command in power shell  "Test-Connection  <your ad domain> -Quiet"   if the response is TRUE then you have successfully connected to AD. 

If the response is FALSE then follow below procedure to Change DNS setting on your PC

  1. Open Control Panel.
  2. Click on Network and Internet.
  3. Click on Network and Sharing Center.
  4. Click the Change adapter settings option in the left pane.



  5. Right click on Ether net and select properties 



  6. Select Internet protocol version 4 (TCP/IPv4) and click on properties 



  7.  check the DNS server addresses: check box and enter your AD ip address in Alternate DNS server text field 




  8. click ok  and test again "Test-Connection  <your ad domain> -Quiet" 
    your response will be TRUE

There is lot more to do and play with AD 

Get the lists of power shell commands here.

Thank you.

Comments

Popular posts from this blog

Offline Nuget packages

Local Authentication with Flutter

Internationalizing Flutter apps