Quantcast
Channel: The-IT-Blog » Troubleshooting
Viewing all articles
Browse latest Browse all 8

Some Commands

$
0
0

Hey,

here are some commands I always seem to have cached in notepad++ they were given to me by my colleague Graeme.

Ping each host in a range:

   1: for /l %n in (1,1,254) do @ping -n 1 -w 100 10.146.8.%n | find "Reply"

Fast traceroute using ping:

   1: for /l %n in (1,1,32) do @ping -n 1 -i %n 10.146.50.25 | find "Reply"

Find web servers: (a bit slow, needs plink (putty command line))

   1: for /l %n in (1,1,254) do plink -telnet 10.146.1.%n -P 80 | find "Server"

Gpupdate all hosts in a range :

   1: for /l %n in (1,1,254) do psexec \\10.1.1.%n gpupdate /force

 

Cheers Bud!


Viewing all articles
Browse latest Browse all 8

Trending Articles