Sign in
|
Join PowerShell.com!
|
Help
Home
PowerTips
Ask the Experts
Forums
Webcasts
Blogs
eBookV2
Script Library
Twitter Grid
Modules
QuickClick
Scripts
Snippets
Videos
Library
»
Snippet Library
»
Network
»
Slideshow
Network Slideshow
Share
|
Browse Library
Module Library
QuickClick Library
Script Library
Snippet Library
ADSI
Comparison
Conditions and Loops
.Net
Exception Handlers
Files and Folders
Functions
Headers
Includes
Network
Pipeline
PowerShell Internals
Registry
Samples
Script Functions Templates
Security
SQL Server
Templates
User Management
WMI
Video Library
Members Only
Tags
Network
Ping
Ping Function
Snippet
Wake
View more
Ping Function
<?
xml
version
=
"1.0"
?>
<CodeSnippets xmlns
=
"http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"
>
<CodeSnippet Format
=
"1.0.0"
>
<Header>
<Title>Ping
Function
<
/
Title>
<Shortcut>ping<
/
Shortcut>
<Description>adds a ping
function
<
/
Description>
<Author
/
>
<SnippetTypes>
<SnippetType>Expansion<
/
SnippetType>
<
/
SnippetTypes>
<
/
Header>
<Snippet>
<Declarations>
<Literal>
<ID>param1<
/
ID>
<ToolTip>Place IP Address
in
this area<
/
ToolTip>
<Default>10.10.10.10<
/
Default>
<
/
Literal>
<
/
Declarations>
<Code Language
=
"PowerShell"
Kind
=
"135"
><
!
[CDATA[
function
PingX(
$ip
) {
$ping
=
new-object
System.Net.NetworkInformation.ping
(
$ping
.
send
(
$ip
)).
Status
-eq
'success'
}
PingX
$param1
$]]><
/
Code>
<
/
Snippet>
<
/
CodeSnippet>
<
/
CodeSnippets>
Loading...
Ping Function
Ping
Send Magic...
View all files
Copyright 2011 PowerShell.com. All rights reserved.