Active Directory Scripting Highlight: Test Basic Network Connectivity with PowerShell

Throughout my work with domain migrations, there are inevitably some very basic steps before getting deep into User attributes, Groups, Computers, and the myriad of ways that client applications use Active Directory that need to be transitioned to a new directory.  Before any of that happens, there is that moment when the networks can first communicate with each other, or at least the respective network teams say they networks can see each other and all the appropriate ports are open.  This is the opening of the door to the greater transition, but if everything isn’t quite right, you could find yourself battling issues down the road.  Using this simple script from the source to the target DCs and vice versa will allow you confidence that the network team has configured the connectivity correctly for Domain or Forest Trust connectivity as well as application port openings.

Test-NetConnection –ComputerName “DC1” -Port 389

image

Other ports to test for successful AD Trust Connectivity

image

Once you have the ports confirmed to be open, you can then get to the heavy lifting of object and attribute migrations to bring your AD migration forward.

More tips from along the migration path are ahead.

Advertisements
This entry was posted in Active Directory, ADMT, PowerShell and tagged , , , , , , . Bookmark the permalink.

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s