

NOTE: Make sure there are no whitespaces in the text file. The output should look something like this: Get-ADComputer -Filter ‘ObjectClass -eq “Computer”‘ | select name | ft -HideTableHeaders > C:exportServers.txt The Select command will only grab the computer name, the FT command will remove the table heading, and the > will export the pipeline to a text file. Now that the Active Directory commands have been exposed to PowerShell, the Get-ADComputer can be used to return all the computer names stored in Active Directory. This command will import the PowerShell commands to manage Active Directory.

Within the PowerShell window type or copy the syntax below. For example, if you’re the Exchange administrator for your organization, and all the Exchange servers are homed in the same Organizational Unit (OU), you would only export the servers in the Exchange Server OU.įrom a computer with PowerShell 2.0 or higher, open PowerShell has an administrator In these scenarios using PowerShell servers can be filtered out. The only difference might be that you may not want to import all your production servers into one RDCMAN session. These steps can be used in production as well. In this blog I will cover how to quickly import all the servers from a lab environment into RDCMAN file. Note: Make sure the remote desktop is enabled on the servers that you want to manage from RDCMAN What I have noticed however is, my customers struggle with getting all the servers they want into RDCMAN. To combat this problem Microsoft has provided Remote Desktop Connection Manager ( RDCMAN).

Anyone that has to manage multiple computers understands that having multiple terminal service windows open is a pain.
