#72890 - 2003-02-06 06:02 AM
Re: Running a script as a service error...
|
whaler
Fresh Scripter
Registered: 2002-11-27
Posts: 20
Loc: Mississauga, Canada
|
Thanks for the info Jens. As for the "public" ip - not really. The powers that be here decided our internal network would use 49.x.x.x for some reason, so if there is a box on the Net with that IP, it isn't mine. Going to convert these to .exe's, or something, once I get it all working. I also have another piece that deletes all the files of the user's computer when the script is done. As for SC, the script makes an IPC$ connection passing the admin ID fromthe user's PC, so that the "service" can be run. As for doing it as a scheduled task, I have had mixed results with this. Almost every "application"server here is in a workgroup, with the user's login into a seperate domain. When I used SCHEDULETASK, I always get the error: quote: [FAIL ] ITaskScheduler::SetTargetComputer hr=0x80070005
which basically means that JT.exe doesn't have the right permission on the server to create the task, I believe. Mapping an IPC$ connection, like I did for SC, didn't help either, hence the service approach. I am going to try coding it up using a SQL DB as a source and see what happens.
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 972 anonymous users online.
|
|
|