PS: Ping the PowerShell way!

PS: Ping the PowerShell way!

Old Ping Command V New Ping Command:

# Traditional CMD
Ping 127.0.0.1
# New Powershell Replacement
Test-Connection -computername 127.0.0.1

 

TechNet Full Syntax

Parameter Set: Default
Test-Connection [-ComputerName] <String[]> [-AsJob] [-BufferSize <Int32> ] [-Count <Int32> ] [-DcomAuthentication <System.Management.AuthenticationLevel> {Default | None | Connect | Call | Packet | PacketIntegrity | PacketPrivacy | Unchanged} ] [-Delay <Int32> ] [-Impersonation <ImpersonationLevel> {Default | Anonymous | Identify | Impersonate | Delegate} ] [-Protocol <String> {DCOM | WSMan} ] [-ThrottleLimit <Int32> ] [-TimeToLive <Int32> ] [-WsmanAuthentication <String> {Default | Basic | Negotiate | CredSSP | Digest | Kerberos} ] [ <CommonParameters>]

Parameter Set: Quiet
Test-Connection [-ComputerName] <String[]> [-BufferSize <Int32> ] [-Count <Int32> ] [-DcomAuthentication <System.Management.AuthenticationLevel> {Default | None | Connect | Call | Packet | PacketIntegrity | PacketPrivacy | Unchanged} ] [-Delay <Int32> ] [-Impersonation <ImpersonationLevel> {Default | Anonymous | Identify | Impersonate | Delegate} ] [-Protocol <String> {DCOM | WSMan} ] [-Quiet] [-TimeToLive <Int32> ] [-WsmanAuthentication <String> {Default | Basic | Negotiate | CredSSP | Digest | Kerberos} ] [ <CommonParameters>]

Parameter Set: Source
Test-Connection [-ComputerName] <String[]> [-Source] <String[]> [-AsJob] [-BufferSize <Int32> ] [-Count <Int32> ] [-Credential <PSCredential> ] [-DcomAuthentication <System.Management.AuthenticationLevel> {Default | None | Connect | Call | Packet | PacketIntegrity | PacketPrivacy | Unchanged} ] [-Delay <Int32> ] [-Impersonation <ImpersonationLevel> {Default | Anonymous | Identify | Impersonate | Delegate} ] [-Protocol <String> {DCOM | WSMan} ] [-ThrottleLimit <Int32> ] [-TimeToLive <Int32> ] [-WsmanAuthentication <String> {Default | Basic | Negotiate | CredSSP | Digest | Kerberos} ] [ <CommonParameters>]
Advertisements