Pinging computers in AD

Over the last few months the techs have become lazy and not moved computers to the correct OU which makes software updating a pain since they could be in other offices. I am looking for a script, powershell or program that pings computers and it reports back the IP so I can see if its in the right place or not.
LVL 2
stlhostAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Scott CSenior EngineerCommented:
You might need something with a little more "intelligence" than PowerShell.

You could try What's UP! Gold or Network Detective.

http://www.whatsupgold.com/

http://www.rapidfiretools.com/nd_overview.php

These two will do an active scan of your network and let you know what is out there.
0
Zephyr ICTCloud ArchitectCommented:
A simple ping program could be this one, shows the ip and the name if it can resolve it...

Is it something like that you're looking for?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Will SzymkowskiSenior Solution ArchitectCommented:
Below is a script that you can use for what you are asking for...

Save the blow script as a filename.ps1 file extension
$Computers = Get-Content "c:\computers.txt"
ForEach ($Computer in $Computers) 
    {
        
        $PING = Test-Connection -ComputerName $Computer -Quiet -Count 1

        If ($PING -eq $True)
            {

            Write-Output "$Computer is pingable"

            }

       Else {

            Write-Warning "$Computer NOT PINGABLE!"

            }
            

}

Open in new window


Or if you just wanted to Query ALL computers in your Active Directory environment you can use the following script below rather than from a text file.
Import-Module ActiveDirectory
$Computers = Get-ADComputer -Filter * -Properties Name, IPv4Address
ForEach ($Computer in $Computers) 
    {
        
        $PING = Test-Connection -ComputerName $Computer.Name -Quiet -Count 1

        If ($PING -eq $True)
            {

            Write-Output "$Computer.Name $Computer.IPv4Address is pingable"

            }

       Else {

            Write-Warning "$Computer.Name $Computer.IPv4Address NOT PINGABLE!"

            }
            

}

Open in new window



WIll.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Active Directory

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.