Launching a VBS file via Citrix

Posted on 2009-12-18
Last Modified: 2013-12-24

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???
Question by:paullord
    LVL 12

    Expert Comment

    by:Daniel Borger
    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.

    Author Comment

    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.
    LVL 12

    Accepted Solution

    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.
    LVL 6

    Expert Comment

    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


    Author Closing Comment

    Problem was resolved using a group policy

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    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.

    #Citrix #Internet Explorer #Enterprise Mode #IE 11 #IE 8
    Citrix XenDesktop, Citrix Studio, Citrix Policies, Citrix XenApp
    The purpose of this video is to demonstrate how to create a Printer Friendly PDF on a WordPress Page. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome Screenshot” Google Chrome Extension, and Log…
    The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…

    759 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

    10 Experts available now in Live!

    Get 1:1 Help Now