WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

OLE COM ADO CDO ADSI LDAP
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

ObjectCreate Cannot Access Remote Server

 Keywords:  CreateObject ObjectCreate Cannot Access Remote Server DCOM Security

Question:

I have no problem using objSession = CreateObject("Microsoft.Update.Session") to get the list of MS updates locally. But I could not make it work remotely.
system = "RMTSERVER"
objSession = CreateObject("Microsoft.Update.Session", system)
I did not get any failure but the list of updates that I got was the local one. I know that it's wrong because my local system is Win7 and the remote one is an XP and when I run on the XP I got a complete different list. Both systems use the same WSUS server to get the updates.Did I do anything wrong?

Answer:

It seems the ObjectCreate function seems to be ignoring the remote computer name.

After further research it seems, WinBatch's current implementation (2011B) of COM remover server access is a bit limited in that it does not provide a mechanism for overriding a remote server's activation security so any remote machine's DCOM security has to be preset low enough to allow the calling machine/user to connect. On Windows 7 the local server is given priority over the remote server even when the current user has remote permissions to use the remote server instance. This more or less renders ObjectCreate's remote access useless if the local machine has the same COM server that you are attempting to access on the remote system.

This will definitely be addressed in a future release.


Article ID:   W18023
Filename:   ObjectCreate Cannot Access Remote Server.txt
File Created: 2011:11:07:10:59:26
Last Updated: 2011:11:07:10:59:26