Home » Category » DLL & COM & ActiveX

DLL & COM & ActiveX: WshRemote and COM

104| Mon, 03 Dec 2007 07:10:00 GMT| screwtape| Comments (0)
I am the admin of this network. I want to be able to kick off scripts on remote computers AND have the script access resources on the network. Kicking off the script on the remote computer has worked without a hitch as long as I do not access any resources on the network. If I attempt to do that I get

"Error - Line: 68, Char: 1
Description: Path not found"

from the launching script (line 68 is when I am attempting to get a directory from a network share). So I read and read and bang my head on a wall for awhile. Then this morning I open up DCOMCNFG and see what is going on with WshRemote. I have "The launching user" set as the person to run the app. I assume that is me (the admin of all the computers here). I know that I do have access to the network share and when I run the script locally on my computer everything runs fine (and has run fine for months)...

Sooo.. For fun I decide to set "This user" to on my computer and the remote computer I am testing with. I set "This user" to my domain login and everything works like a champ. I assume that the problem is the remote side the script is running as "system" and "system" does not have access to the network share, thus the error. I cannot find anywhere that this is listed as a bug but it would appear to be one. Does anyone know of a fix for this? I really really really want to avoid have to reconfigure all the workstations in my network with "This user" now...and reconfigure later as passwords change over time.

Thanks!

Keywords & Tags: wshremote, com, dll, activex

URL: http://programming.itags.org/com-activex/174573/
 
«« Prev - Next »» 0 helpful answers below.

DLL & COM & ActiveX Hot Answers

DLL & COM & ActiveX New questions

DLL & COM & ActiveX Related Categories