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")
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
- Open Control Panel.
- Click on Network and Internet.
- Click on Network and Sharing Center.
- Click the Change adapter settings option in the left pane.
- Right click on Ether net and select properties
- Select Internet protocol version 4 (TCP/IPv4) and click on properties
- check the DNS server addresses: check box and enter your AD ip address in Alternate DNS server text field
- 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
Post a Comment