Solved

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

Posted on 2010-11-30
5
1,656 Views
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

0
Comment
Question by:jortbarenbrug
  • 3
  • 2
5 Comments
 
LVL 3

Expert Comment

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

Author Comment

by:jortbarenbrug
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.



 
0
 
LVL 3

Expert Comment

by:amateusn
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).
0
 

Accepted Solution

by:
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
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
 

Author Closing Comment

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

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

CITRIX XENAPP 6.5 FARM CUSTOM POLICY - CHANGE MANAGEMENT WINDOW REBOOT SCHEDULE
Several part series to implement Internet Explorer 11 Enterprise Mode
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.

757 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now