Questions tagged [portqry]
10 questions
3
votes
4 answers
Able to open TCP port but not listening
Using Add rule in windows firewall, I was able to open TCP port 15537. When i am trying to executing command netstat -ano on terminal windows, this port is not listed. I tried to execute telnet command on terminal window (e.g. telnet IP port) but…

user3001812
- 87
- 1
- 4
3
votes
3 answers
Windows batch script to see if a sequence of server/ports is open?
I can run a single command to see if a port is open:
portqry -n servername -e 80
I want to run this against a list of servers:
DEV1 80
DEV2 80
DEV3 80
TEST1 80
TEST2 80
PROD 80
I want to test them all using a single Windows batch script and see…

hawkeye
- 34,745
- 30
- 150
- 304
2
votes
1 answer
What does code 99 using portqry mean?
I am using portqry v2 into a batch file and when I catch the stderr from the .exe file, the code is 99.
I know what does 1,2 and 3 code means, but 99 I have no idea...
I was googleling it for a while but it seems that I am the only one with that…

user3506466
- 35
- 4
1
vote
2 answers
How to check if port 123 is ready for time sync?
I am going to do a time sync for my server.
Tried portqry to the time server with below results:
C:\PortQryV2>portqry -n "time server" -e 123 -p both
Querying target system called:
"time server"
Attempting to resolve IP address to a name...
Failed…

S. Hung
- 13
- 1
- 3
1
vote
2 answers
Acess exe from unc path
i wan to run portqry from different forest using below script but i receive path can't be found error. while accessing the file from network share i can access it manually with no issue from remote domain
# Get forest name
$domain =…

user3130604
- 17
- 5
1
vote
3 answers
automated scripting telnet or portqry
Need an advise on how to create an automate script to check connectivity from multiple servers to one server (DB) within Windows server environment either with telnet/portqry and also the script will create a .txt file for unsuccessful…

Claudia Benete
- 31
- 4
0
votes
0 answers
PortQry script to check availability of specific port for remote addresses from file
I am novice in all this so please take it easy. :)
Trying to make PortQry script, that checks several remote IP addresses from file for specific TCP port to be opened or closed.
From that windows server is not allowed to run any 3rd party tools…

Goaul
- 943
- 11
- 13
0
votes
0 answers
Modifying PORTQRY output to easily use in csv, xls files
looking for some pointers with using portqry and specifically, piping or modifying the output to a CSV.
I have around 20000 servers to check, all with a variance of 3-4 open ports to test and automating portqry seems the easiest way for me. Can't…

Moominboy
- 83
- 9
0
votes
1 answer
PortQry Runtime Error
Operating System: Windows 7
Application: portqry/portqry UI
Error:
Portqry Runtime error #3 The 'hp' variable is undefined.
I've searched Google for a couple days and can't find why portqry is giving me this error. When I press ignore everything…

ThaNub
- 1
- 2
0
votes
2 answers
Passing PortQry arguments in PowerShell
I'm trying to verify the correct firewall rules have been implemented and flows are functional. I've searched and can't seem to find my solution. I'm using PowerShell to automate PortQry requests (based on it's role) for list of servers which seems…

Joe
- 1
- 3