Should it be "Test-NetConnection" which needs module - "nettcpip" imported as prerequisite. I see below document for this command -
----------
Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am trying to run a PS script on a Windows 2012 server to allow connection to Azure cloud. The script needs to use the cmd Test-NetConnect.
But this is not available on my server. PS version is 3.0.
How do I get this cmd imported on my server so I can connect it to the Azure cloud?
Should it be "Test-NetConnection" which needs module - "nettcpip" imported as prerequisite. I see below document for this command -
----------
Please don't forget to Accept Answer and Up-vote if the response helped -- Vaibhav
@Ben Lan Adding more information $computer = get-content c:\servers.txt
Foreach($computer in $computers){
(Test-connection -computerName $computer -count 1 -quiet) | out-file _filepath c:\gp\test.txt -Append}
If the issue still persists, Please let me know for which azure service are you trying to connect or trying upload any data to Azure blob, Files?
Also share the script, if possible hiding the PI data
Additional information: There is also similar thread discussion here, please refer to the suggestion: https://stackoverflow.com/questions/47570866/powershell-cmdlet-test-netconnection-not-available?rq=1
Test-NetConnection: https://learn.microsoft.com/en-us/previous-versions/windows/powershell-scripting/dn372891(v=wps.630)
Hope this helps!
Kindly let us know if the above helps or you need further assistance on this issue.
------------------------------------------------------------------------------------------------------------------------------------------------------------
Please don’t forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.