RPC across domains - "The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)"

Tech-Archive recommends: Speed Up your PC by fixing your registry



Hi,

I'm having an issue using WMI to stop/start a service.

I have two domains, domain1 and domain2, domain1 is where the user
account and the Desktop I'm currently using is located. Domain2 is
where the target Server is located.

The Desktop PC in domain1 is using Windows XP Pro SP2, the Server PC
in domain2 is using Windows Server 2003 SP2.

There is a two way trust setup between domain1 and domain2.

The user account in domain1 is a member of the Administrators group in
Domain2 and is also a local administrator on the Server PC.

On the Desktop in domain1 I'm running a powershell script that
retrieves the WMI object for a service and then attempts to stop it:

# Get IIS Service
$W3service = get-wmiobject win32_service -computername
$RemoteWebServer -filter "name='W3SVC'";

# stop the service.
$W3service.StopService();

but it gives us an error:

Exception retrieving member "StopService": "The RPC server is
unavailable. (Exception from HRESULT: 0x800706BA)"
At line:1 char:16
+ $W3.StopService( <<<< )

If this script is run from a PC in domain2 whilst logged on as the
user from domain1 it works fine.

We've checked that all firewalls are off and restarted both the
Desktop and Server after applying all permissions.

As a workaround we have switched to using:

sc \\servername stop servicename

Could anyone give us an insight into why this is happening?
Any clues or comments would be greatly appreciated :)

AndyJ
.



Relevant Pages

  • Re: Outbound mail routing for two domains
    ... You probably have the 2 server in the same routing ... group and DOMAIN1 server is the Master. ... And, on your SMTP connector, you ... group for it and setup its own SMTP connector, then it will not be routing ...
    (microsoft.public.exchange2000.transport)
  • Merge replication - 2 machines - same name - different domain
    ... I have MS SQL Server 2000 running on two servers both named MYSERVER. ... These servers are both on different domains, DOMAIN1 and DOMAIN2. ... I set up Merge replication for TESTDB on DOMAIN1\MYSERVER ... I have successfully set up merge replication between DOMAIN1\MYSERVER ...
    (microsoft.public.sqlserver.replication)
  • Re: Web site- DNS-Zone-Alias.
    ... >> Why wouldn't a Alias (CName) entry in our dns servers work? ... >> domain1 web site. ... > the web server that hosts www.mydomain1.com. ...
    (microsoft.public.windows.server.dns)
  • Re: acessing a share
    ... of the same domain1? ... or use the following command from your prolem laptop: ... It should be return the server name. ... new account, windows will create a new profile and please try again. ...
    (microsoft.public.windows.server.networking)
  • Re: ROUTING PROBLEM WITH VPN
    ... what you really need is a site-to-site VPN. ... >>> I am wanting to setup a VPN connection to a domain accross the internet. ... >>> Domain1, and Domain2. ... >>> On the Domain1 server I have setup RRAS to accept VPN connections. ...
    (microsoft.public.windows.server.networking)