-
I pieced together this powershell command: test-connection dwdmadwsa137 -count 2 -delay 60 | select __SERVER, Address, ProtocolAddress, ResponseTime | out-file c:\temp\test-connection.txt -append It produces this outpout: __SERVER Address ProtocolAddress ResponseTime -------- ------- ---------------...
-
Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 don - in your Month of Lunches book chapter 9.8 you have ideas for on your own and ask: Or use Test-Connection to ping several computers, and only show the results from computers that did not respond I tried several things then...
-
Hi, I am trying to establish an implicit session with a remote host from my machine from a C# code. I am using runspace API for that. the code snippet is provided below Runspace runspace = RunspaceFactory.CreateRunspace(); runspace.Open(); //constructing the vmname parameter here vmname = useralias ...
Posted to
Ask Don Jones
(Forum)
by
manishjha
on
01-18-2012
Filed under: Test-Connection, Args, Parameter, scripts, PS Remoting, new-pssession, WMI, Remote PowerShell
-
Hi Don, I tried your solution and recevied one error. I assume it is last pass with no computer name: Get-Content names.txt | Foreach {if(-not(Test-Connection -ComputerName $_ -Quiet)){Write-Host " $_ is down" -ForegroundColor RED}} cwdp-nine is down Test-Connection : Cannot validate argument...
-
SYNOPSIS When I run "gci $somePath -rec -for ", where the path contains junction points, and then "test-connection $someComputer", and finally the first command again, I get different results. DESCRIPTION I was trying to measure the total folder sizes of user profile folders on remote...
-
I am trying to create a script to run through pinging my servers, and outputting a simple result. The idea is for this to be used when I am not available onsite. I can get the test-connection cmdlet to work both independently, as well as pulling the computer names from an external file; but I am unable...