ajstan Posted May 14, 2010 Posted May 14, 2010 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. http://img266.imageshack.us/img266/6536/85793767.jpg
burgemaster Posted May 14, 2010 Posted May 14, 2010 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. http://www.uploadgeek.com/image-A54F_4BED0700.jpg
sted Posted May 14, 2010 Posted May 14, 2010 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
Stuart_C Posted May 14, 2010 Posted May 14, 2010 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 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.
ajstan Posted May 14, 2010 Author Posted May 14, 2010 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 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
Dos_Box Posted May 14, 2010 Posted May 14, 2010 You can ping via hostname, but only as long as DNS is up to date and they are online.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now