Skip to content

Instantly share code, notes, and snippets.

@RC1140
Created May 19, 2010 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RC1140/406584 to your computer and use it in GitHub Desktop.
Save RC1140/406584 to your computer and use it in GitHub Desktop.
gwmi -query "select * from win32_pingstatus where Address='192.168.0.1'"
#{1..254 | %{ gwmi -query ("select * from win32_pingstatus where Address='192.168.0."+ $_+ "'") }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment