Hi i have seen this way to check services:
https://www.veeam.com/blog/automate-rec ... ackup.html
But i need to check some ports which has to be LISTENING and are not services.
Can someone using this yet share the .bat code to do so?
Thanks in advance!
-
- Novice
- Posts: 4
- Liked: never
- Joined: Dec 02, 2015 10:54 am
- Full Name: Sergio Alegre
- Contact:
-
- Service Provider
- Posts: 315
- Liked: 41 times
- Joined: Feb 02, 2016 5:02 pm
- Full Name: Stephen Barrett
- Contact:
Re: SureBackup check an especific port is LISTENING
You could try powershell scripting with Test-Netconnection to a specific port? As to how to get "TcpTestSucceeded : True" returned to Veeam, I don't know.
Code: Select all
PS C:\Users\administrator> Test-NetConnection www.google.com -Port 443
ComputerName : www.google.com
RemoteAddress : 209.85.203.147
RemotePort : 443
InterfaceAlias : Ethernet
SourceAddress : 10.16.1.12
TcpTestSucceeded : True
Who is online
Users browsing this forum: Semrush [Bot] and 84 guests