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?
LVL 24
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Have a copy of your script handy on the server, Follow the instructions here ( ) 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.
andrew_aj1Author Commented:
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.
Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

andrew_aj1Author Commented:
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.
andrew_aj1Author Commented:
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.
andrew_aj1Author Commented:
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.
perhaps rdp is incapable of running vb script... can you create a batch file to call the vbs?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
andrew_aj1Author Commented:
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.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Server OS

From novice to tech pro — start learning today.