+ Post New Thread
Results 1 to 6 of 6
Windows Server 2000/2003 Thread, Pinging computers in Active Directory in Technical; Hi all, I'm very much hoping one of you can help me with this Its as title says, I have ...
  1. #1

    Join Date
    Nov 2009
    Location
    Chingford
    Posts
    20
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Pinging computers in Active Directory

    Hi all, I'm very much hoping one of you can help me with this

    Its as title says, I have these laptops in Active directory which I want to ping, now what I wanted to do is export them into txt format and make some sort of batch file to ping them.

    I have no idea how to do this, can somebody point me in the right direction pleasee

    I have attached a screenshot so you guys can see the computers I'm trying to ping.


  2. #2

    Join Date
    Aug 2007
    Posts
    811
    Thank Post
    98
    Thanked 64 Times in 46 Posts
    Rep Power
    25
    Try looking at the code for "ICTNUT's My Little Server Monitor" on here mate, we have a page setup for all our server, printers, switches, access points etc. We can easily see whats online.

  3. #3


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,506
    Thank Post
    227
    Thanked 848 Times in 727 Posts
    Rep Power
    287
    in ad users and computers go to the appropriate ou and right click export
    get all the irrelevant info from the file so its just the pcnames with a blank line between

    batch file in same folder as the txt file

    for /f %%u in (listofcomputers.txt) do (ping %%u )

    works for me not sure what use it is but it works

  4. #4

    Join Date
    Nov 2007
    Location
    Rotherham
    Posts
    1,675
    Thank Post
    122
    Thanked 126 Times in 102 Posts
    Rep Power
    45
    If they are in differnt OU's create a new query (go to the "saved queries" folder) instaed of using the Search. You then get a list you can export to a text file.

    You can then open the list in excel. Using Excel formula's you can create commmand for each PC (I use
    Code:
     ping PCNAME -w 5 >> h:\pingres\pingres.txt
    ). copy and paste your formula into a text file and then rename it a .bat file.

    I run this when my updates are runing to see which PC's are on, the results are then appended to a file for me to check when I get in.

  5. #5

    Join Date
    Nov 2009
    Location
    Chingford
    Posts
    20
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by Stuart_C View Post
    If they are in differnt OU's create a new query (go to the "saved queries" folder) instaed of using the Search. You then get a list you can export to a text file.

    You can then open the list in excel. Using Excel formula's you can create commmand for each PC (I use
    Code:
     ping PCNAME -w 5 >> h:\pingres\pingres.txt
    ). copy and paste your formula into a text file and then rename it a .bat file.

    I run this when my updates are runing to see which PC's are on, the results are then appended to a file for me to check when I get in.
    This is what I did and it worked perfectly

    Thanks for yoru replys

  6. #6

    Dos_Box's Avatar
    Join Date
    Jun 2005
    Location
    Preston, Lancashire
    Posts
    9,787
    Thank Post
    572
    Thanked 2,154 Times in 982 Posts
    Blog Entries
    23
    Rep Power
    626
    You can ping via hostname, but only as long as DNS is up to date and they are online.

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 6
    Last Post: 31st May 2011, 08:05 AM
  2. Report inactive computers in Active Directory
    By HMCTech in forum Windows
    Replies: 10
    Last Post: 29th July 2010, 08:31 AM
  3. Replies: 0
    Last Post: 6th April 2009, 10:26 PM
  4. active directory
    By MrPstv in forum Windows Server 2000/2003
    Replies: 5
    Last Post: 26th March 2009, 07:26 PM
  5. Replies: 7
    Last Post: 31st January 2008, 12:17 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •