Easiest / best way to launch ica direclty from startup - Xenapp6 latest secure gateway .

Hello  Guys and Girls,

Can someone point me in the right direction here?

I am looking for a way to launch the citrix desktop direactly at startup for my clients with a script from the winlogon folder or something in that region. I don't want them to start Citrix from their Windows Desktop. I've been experimenting with de pnagent. exe and wfcrun32.exe but i would like to spare some time.

There are no passwords on the client pc's.
I use the latets online plugin
I use Xenapp6 with a secure gateway

Regards, Jort

jortbarenbrugAsked:
Who is Participating?
 
jortbarenbrugConnect With a Mentor Author Commented:
1.      Edit the BOLD part into the applicatie you'd like to start automatic. Save as  c:\StartDesktop.vbs
2.      save section 2 as  c:\logon.vbs
3.      Edit the register with the informatie from section 3

1 ---------------------------------------------------------------------------------------------------------------------
on error resume next
Set WshShell = CreateObject("WScript.Shell")
i = 0
Do
WshShell.Run """C:\Program Files (x86)\Citrix\ICA Client\pnagent.exe ""/CitrixShortcut: (3) /QLaunch ""Farm1:desktop""", 0, True
      wscript.sleep 20000
      set svc=getobject("winmgmts:root\cimv2")
      sQuery="select * from win32_process where name='wfica32.exe'"
      set cproc=svc.execquery(sQuery)
      iniproc=cproc.count
      Do While iniproc >= 1
            wscript.sleep 2000
            set svc=getobject("winmgmts:root\cimv2")
            sQuery="select * from win32_process where name='wfica32.exe'"
            set cproc=svc.execquery(sQuery)
            iniproc=cproc.count
      Loop
if MsgBox("Klik YES to shutdown pc or clikk NO to login once more", 4, "Do you want to shut down now?") = 6 then
i = 1
end if
Loop while i = 0
WshShell.Run "shutdown -s -t 0 -f", 0, True
2 ---------------------------------------------------------------------------------------------------------------------
on error resume next
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "cscript //NOLOGO C:\StartDesktop.vbs", 0, False
3 ---------------------------------------------------------------------------------------------------------------------
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
edit the value off  Shell into. explorer.exe ---> wscript "c:\logon.vbs"
0
 
amateusnCommented:
You can put your application on the Startup folder on the Start Menu. Everytime you loggin will run everything on that folder.
0
 
jortbarenbrugAuthor Commented:
Well thats a start but.. I dont want to see my local explorer.exe.
And i would like to shut down the local pc when citrix is logged off.



 
0
 
amateusnCommented:
Well that's possible, but the button must be configured for that, you have change de source code. I'm a infraesctruture guy, so I can't help you further then this (laugh).
0
 
jortbarenbrugAuthor Commented:
Found out myself and would like to add it into archive for the next person with this question
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.