Link to home
Start Free TrialLog in
Avatar of andrew_aj1
andrew_aj1Flag for United States of America

asked on

Mapped drives not working when using RemoteApp

I have a program that I am trying to deploy using TS RemoteApp. This application requires a mapped network drive. I have a logon script that works perfect when a user logs into a computer or remotely using remote desktop, but it does not work when I try using RemoteApp. The logon script is deployed through group policy.How can i get this logon script to run so the application will work using RemoteApp?
Avatar of sublifer
sublifer

Have a copy of your script handy on the server, Follow the instructions here ( http://technet.microsoft.com/en-us/library/cc730673.aspx#BKMK_CustomRDPSettings ) to get the rdp settings for your deployment, and while you're creating your settings, expand the options, go to the programs tab, select the box to "start program on connection" and point to your drive map script.
Avatar of andrew_aj1

ASKER

It looks like the setting I want to copy and apply is this:
alternate shell:s:\\s1dc01\NETLOGON\logonScript.vbs
 This issue now is that when I do this is that I get an error that states 'The following RDP settings cannot be overridden.'
How can I get this to work?
Did you see step 4) ?

If the Error with Custom RDP Settings dialog box appears, do the following:

Click Remove to automatically remove the settings that are either not valid or cannot be overridden, or click OK to remove the settings manually.
After the settings are removed, click Apply again.

Not sure if this applies but it sounds right.
Yes, I do see that. I need that line though. It is the line that runs the logon script.
Ahhh... its funny how I overlook the notes they try to make stand out

You cannot override settings that are available in the global deployment settings in TS RemoteApp Manager. If you do so, you will be prompted to remove those settings when you click Apply.

So you need to either remove the respective "alternate shell..." line from your global deployment settings or add it in its entirety there in the RemoteApp manager.
Where do I add this information?
It looks like it didn't take my last comment...

You should look to add that when you create the rdp or msi package from the RemoteApp program that you are trying to deploy.

If all else fails, create the rdp as it will, then manually edit the rdp to change that line.
I added 'alternate shell:s:\\s1dc01\NETLOGON\logonScript.vbs' (replacing the line currently in there) by opening the rdp file in notepad. I launched it and the script did not run. I could not access the mapped drives.
ASKER CERTIFIED SOLUTION
Avatar of sublifer
sublifer

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for the help. This is not the exact solution I was hopeing for, but I made a batch file to open a local copy of the script and then the program. It is the only way that I could figure out how to get it to work. Thanks again.