Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 515
  • Last Modified:

TPowerpointApplication: "The RPC server is unavailable"

I am trying to use Delphi's TPowerpointApplication component to start a new instance of Powerpoint on a remote computer.

Here is the code:
  ppaTarget.RemoteMachineName := '//SERVER_NAME';
  ppaTarget.Connect;
  ppaTarget.Visible := 1;

where ppaTarget is a TPowerpointApplication component on the form.

When ppaTarget.Connect; is executed I get the error message "The RPC Server is unavailable"

I have tried leaving out the "//" from the front of the RemoteMachineName but then I get "Access is denied".

Any help will be most appreciated!
0
plumothy
Asked:
plumothy
  • 9
  • 7
1 Solution
 
JohnjcesCommented:
Have you been able to execute this on any other networked PC?
Do you have administrative rights on the target PC?

Are the following services running on the target computer?

DCOM Server Process Launcher
Remote Procedure Call (RPC)

Can you do remote system Computer Management or remote regedit on that target PC or do you still get the RPC error?

And lastly using proper Windows UNC it would be \\SERVER_NAME. Forward slashes are Unix style.

John
0
 
plumothyAuthor Commented:
Johnjces, thank you for your response.

I only have two PCs with Powerpoint installed and I get the errors whichever way round I try it.

DCOM Server Process Launcher and Remote Procedure Call (RPC) services are running on both computers. Both PCs are runing Win XP SP2 Home Edition connected into a broadband router on a home network.

I don't really know how to do remote management of another computer. I tried Remote Desktop Connection and neither computer can find the other one.

If I user \\SERVER_NAME or SERVER_NAME I instantly get the message "Access is denied". That implies to me that the server responded by denying access. When I used //SERVER_NAME or THE_WRONG_NAME then I get "The RPC Server is unavailable" after a couple of seconds, implying that the server cannot be found.  Does that sound right?

So, how do I convince the server to allow access?
0
 
JohnjcesCommented:
Yes it sounds correct. XP Home edition did not have some of the networking stuff that XP Pro has but everything should still work.

I am assuming this is in a workgroup not a domain. So...

The user name AND password you are using on Computer A to remotely do this on Computer B needs to be the same on Computer B. So if you are logged in to computer A as bob with a password of password, then you need to add a user bob with the password password to Computer B and Vice Versa.

Both of these users MUST have administrator rights so make sure they are listed under the administrator groups.

To test, I would turn off the firewall on the computer you are testing this to as I have no idea if the XP firewall blocks the RPC port 135.

John
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
plumothyAuthor Commented:
Yes the two computers are in the same workgroup.

I use the same user name on both PCs, but only one of them had a password. They now both have the same password and I am an administrator on both machines.

I turned off the firewall on both PCs (both use NIS 2006).

I still get the message "Access is denied".

I am beginning to think this is not possible.
0
 
JohnjcesCommented:
One last try...

Instead of using the computer name you are trying to connect to, try using the IP. You can "should" be able to do it with or without the '\\'.

You do have Windows File and Printer sharing enabled on both?

Let me know and lastly, such might be a known problem in XP Home and Pro...

http://support.microsoft.com/kb/884564. Their resolution is minimal.

I have seen that here in our domain but it is always a DNS issue. In a Windows workgroup you are using, I am certain, Internet DNS servers and that should not matter.

I am out of thoughts and experience at this point!

John



0
 
plumothyAuthor Commented:
Tried with IP address and I am still getting "Access is denied".  But thanks for all the suggestions, Johnjces.
0
 
JohnjcesCommented:
One last thing as I am real curious now too...

Go to My Computer and right click. Click on Manage. ( I do not know if XP Honme goes this route or has this but)...

Click on Action in the Computer Management console.

See if you have "Connect to another computer...'

If so click it and see if you can connect via name or ip to your other PC. You can use \\ or leave them off here.

Let us know.

John
0
 
plumothyAuthor Commented:
John,

Yes, I can connect that way (in either direction).

That's good I presume, but does it get us anywhere?
0
 
JohnjcesCommented:
It lets us know that we can connect.

Now, we have to figure out why access is denied.
0
 
plumothyAuthor Commented:
Is it the computer or Powerpoint which is denying access?
0
 
JohnjcesCommented:
I do not know! Simply haven't a clue!

I am not familiar with that component in D2006 and I do not know how it is starting or wanting to start a remote instance of PowerPoint on another PC. I know there are ways to do that and Microsoft publishes a free tool called psexec.exe which one can use to run remote commands and applications on remote computers without any form of client installation.

Get the tool from http://www.microsoft.com/technet/sysinternals/default.mspx

John

0
 
JohnjcesCommented:
I did a test app in D2006 using the TPowerPointApplication component from the info you provided and had no errors. It of course errored out when a bad computer name was entered with RPC Server Not Available.

I am at work (slow day) and we are on a domain consisting of XP Pro and 2000 machines.

Could very well have something to do with XP Home as I know there are networking "parts" not included in Home that the Pro version has.

I am at a loss and I am sorry that I could not help you. :(

John
0
 
plumothyAuthor Commented:
John,

I appreciate your efforts, thank you.

I downloaded psexec.exe. It tells me I need to ensure that the admin$ share is enabled.

In Computer management I cannot see that share.

At http://support.microsoft.com/kb/314984 is an article which describes how to create hidden shares. It says:
Hidden administrative shares that are created by the computer (such as ADMIN$ and C$) can be deleted, but the computer re-creates them after you stop and restart the Server service or restart your computer. Hidden shares that are created by users can be deleted, and they are not re-created after you restart your computer. Microsoft Windows XP Home Edition does not create hidden administrative shares.

So, it looks like XP Home is indeed the cause. I can feel an upgrade to XP Pro coming on.
0
 
JohnjcesCommented:
I concur. When you do Pro make sure you up it to SP 2.

I enjoyed the exchange and challenge.

Please accept or ask the moderators to delete and refund your points.

John
0
 
plumothyAuthor Commented:
John,

I'm happy to accept. We arrived at the solution that XP Home is not capable of doing what I want so an upgrade is necessary.

I also enjoyed it, plus I learned a lot!

Steve Bailey.
0
 
JohnjcesCommented:
Thanks!

John
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 9
  • 7
Tackle projects and never again get stuck behind a technical roadblock.
Join Now