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
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.Shel
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:ro
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:ro
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.Shel
WshShell.Run "cscript //NOLOGO C:\StartDesktop.vbs", 0, False
3 --------------------------
HKEY_LOCAL_MACHINE\SOFTWAR
edit the value off Shell into. explorer.exe ---> wscript "c:\logon.vbs"