COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => COGNOS Connection => Topic started by: ik2710 on 18 Oct 2012 11:22:28 AM

Title: Batch File to connect to cognos
Post by: ik2710 on 18 Oct 2012 11:22:28 AM
I want to run a batch file to connect to cognos.

I am using the following link:

http://localhost:9400/p2pd/servlet/dispatch?b_action=xts.run&m=portal/main.xts&CAMUsername=XYZ&CAMPassword=****&h_CAM_action=logonAs

When I run this link in the browser it works. However when i run it in command prompt or in a batch file using "START" command, it opens the cognos window and prompts me to enter my credentials again.

Can anyone please help me with this.

Thanks!
Title: Re: Batch File to connect to cognos
Post by: tjohnson3050 on 18 Oct 2012 12:39:06 PM
Try using using 'runas'

  Run mycommand.exe as the user Jdoe on domain SS64dom

  Runas /user:SS64Dom\jDoe "mycommand.exe"