Launching a VBS file via Citrix

Experts

I'm attemping to launch a simple VBS file via a Citrix

Set objNetwork = CreateObject("WScript.Network")
objNetwork.MapNetworkDrive "n:" , "\\client\n$"

It maps a n drive to the users local PC and works when executed from a citrix cmd prompt or file manager. When the fiel is published and selected the error given is "the Citrix server is unable to process your request...." error

Can someome please help???
paullordAsked:
Who is Participating?
 
Daniel BorgerConnect With a Mentor Senior Citrix Engineer- CCEECommented:
I would not publish the vbs, you should either put that in the startup folder or use a group policy to run the script at logon.
0
 
Daniel BorgerSenior Citrix Engineer- CCEECommented:
Look at the file secuirty properties in connection center to make sure you have given Citrix permission to access the drives. (see Pic)

Also check properties of ICA protocols and citrix polices to make sure mapping client drives are not disabled.
conncenter.jpg
0
 
paullordAuthor Commented:
Security is set to full/ never ask. Ask I said, when I Citrix into file explorer / command prompt and run the login script, it works fine. It's just when launching the file within the published applications list.
0
 
rimmenaCommented:
When you publish the application you need to include the location of wscript.exe i.e.

c:\windows\system32\wscript.exe c:\test\test.vbs

1
 
paullordAuthor Commented:
Problem was resolved using a group policy
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.