Dscmdexport via Task Scheduler
Moderators: chulett, rschirm, roy
I tried to add the /D command, but it gave me the error below:chulett wrote:Wasn't talking about the Windows scheduler or what user it uses to run the task but rather something you probably need to add to the dscmdexport command line:
dscmdexport /H=%Host% /U=%User% /P=%Password% /D=????
dscmdexport aborted:
Failed to attach to the project
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
I know they're not supposed to be positional, but try it with the domain switch first. For example:
Code: Select all
dscmdexport /D=%Domain% /U=%User% /P=%Password% /H=%Server% %ProjectName%
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Thanks, but I tried it that way.ray.wurlod wrote:I know they're not supposed to be positional, but try it with the domain switch first. For example:Code: Select all
dscmdexport /D=%Domain% /U=%User% /P=%Password% /H=%Server% %ProjectName%
Yes, sir. Run just fine when I kick off the batch file manually via command line. Will not run via windows task scheduler.PhilHibbs wrote:And you say that exactly the same batch works fine when you run it manually?brownnt wrote:I tried to add the /D command, but it gave me the error below:
dscmdexport aborted:
Failed to attach to the project
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
I just encountered the same issue. I tried /O it did not complain but did not work. I tried /NODEPENDENTS which also did not work. These all did not bring up a dialog box. When I ran under cmd directly then I get a dialog box when I leave off /O and /NODEPENDENTS. If all I do is reselect the project it outputs a DSX file. Not cool. Need a patch.brownnt wrote:I tried to add the /D command, but it gave me the error below:chulett wrote:Wasn't talking about the Windows scheduler or what user it uses to run the task but rather something you probably need to add to the dscmdexport command line:
dscmdexport /H=%Host% /U=%User% /P=%Password% /D=????
dscmdexport aborted:
Failed to attach to the project
Mamu Kim
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
That suggests that the username/password in the command is incorrect, or that the login/security service (in the services tier - the machine where WAS is installed) is not running/inaccessible.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.