Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2010-11-30
5
Medium Priority
?
1,718 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
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.
Suggested Courses

963 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