PortQuery RPC Failure: "RPC query failed (5)"

PortQuery RPC Failure: "RPC query failed (5)". We were attempting to retrieve data from the Windows Event Logs using the Eventquery.vbs script. In the midst of trying to figure out why Eventquery.vbs wouldn't run, I ran "PortQry -n <hostname> -e 135" and received the message "RPC query failed (5)". In order to get the Eventqry.vbs script to run, we disabled Windows FireWall - after which Eventquery.vbs ran.

However, we continue to get the "RPC query failed (5)" message when I try to run PortQry. Does anyone know what this error message means?

We did some further testing and found the following:

(1) if we run PortQry with the firewall ON, we get the "failed" error.

(2) if we run PortQry with the firewall ON, and with Exceptions configured for File & Printer Sharing - as well as adding 135 TCP/UPD ports, we get a return of "Failed". Eventqry.vbs also fails with the error "Please check the system name, credentials, and WBEM Core".

(3) if we run PortQry with the firewall ON, and with Exceptions configured for File & Printer Sharing (only), the program returns "Filtered". Eventqry.vbs returns the same error message: "Please check the system name, credentials, and WBEM Core".


We haven't been able to find any information on the PortQry error. And there's not concise information on the Eventqry/WBEM errors, either.

Any assistance would be appreciated.
In3TAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

vandCommented:
Port 135 is for the RPC end point mapper database. Are you running this against an AD DC?

If not, there is nothing to respond on 135 and will result in the RPC error.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.