Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


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

Posted on 2010-11-30
Medium Priority
Last Modified: 2012-05-10
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

Question by:jortbarenbrug
  • 3
  • 2

Expert Comment

ID: 34238297
You can put your application on the Startup folder on the Start Menu. Everytime you loggin will run everything on that folder.

Author Comment

ID: 34238439
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.


Expert Comment

ID: 34238516
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).

Accepted Solution

jortbarenbrug earned 0 total points
ID: 34310623
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
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)
      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)
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"

Author Closing Comment

ID: 34341557
Found out myself and would like to add it into archive for the next person with this question

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If your vDisk VHD file gets deleted from the image store accidentally or on purpose, you won't be able to remove the vDisk from the PVS console. There is a known workaround that is solid.
Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

579 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question