RDS 2012 R2 publish a shortcut link

Environment:  Windows 2012 R2 RDS services.
Issue:  Need to find a way to publish a remote application link, on another server, in RDS 2012 R2.
mford1959Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

Lionel MMSmall Business IT ConsultantCommented:
Do you mean you want to add a desktop shortcut for all users who logon to the network? if so you can add this by Group Policy https://technet.microsoft.com/en-us/library/cc753580.aspx
Navigate to the Computer Configuration\Preferences\Windows Settings\Shortcuts folder in the left pane of the Group Policy Editor window. Right-click the Shortcuts folder, click “New” and click “Shortcut.”
Click the “Action” box and click “Create.” Type a name for the shortcut into the Name field.
Click the “Target Type” box and click “File System Object” if it’s a shortcut to a file, “URL” if it’s a Web link or “Shell Object” if it’s another type of shortcut, such as a shortcut to a printer or computer.
Click the “Location” box and click "All Users Desktop.”
Type the destination for the shortcut into the “Target Path,” “Target URL” or “Target Object” box. A different box appears depending on which target type you selected. For example, type “C:\Example.exe” or “http://www.example.com.”;
Click the “...” button to the right of “Icon File Path,” browse to an icon file for the shortcut and double-click it.
Click “OK.”
mford1959Author Commented:
I have an application shortcut (.lnk) icon, on the desktop of a MS 2012 R2 server, that links to an application on another server.  The MS 2012 R2 server is part  of an RDS server farm.  I wish to create a "remoteapp" in the collection that can be accessed via the RDS Web Access site.

The application works fine if I logon to the server and launch it from the desktop.  It doesn't work when I try and create a "remoteapp" in the collection of the RDS farm.  Any ideas on how I can solve this issue?

Thank you in advance for your attention to this issue!
Aaron TomoskyDirector of Solutions ConsultingCommented:
You can't publish just a url, you publish the browser with whatever command line switch opens the page you want. Like  iexplore.exe "http://google.com"
IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

David Johnson, CD, MVPOwnerCommented:
if you have Remote Desktop Session Host on server 1 and 2 you can't add an app from Server 3
unless Remote Desktop Session Host is/ installed on server 3
mford1959Author Commented:
I know some online have the same issue and have received some technical responses as to how this may be accomplished.  Maybe someone with a bit more knowledge of RDS 2012 R2 can take a stab at this.

Thanks.
David Johnson, CD, MVPOwnerCommented:
note the application will not be actually running on the other server

The GUI has a local application restriction.  Powershell does not.
The local exec restriction in the UI is not present when using Powershell to create the remote app.  So for appc running over UNC  path, creating a new remote app through Powershell is the way to go!

1- Run Powershell as admin
2- Execute the following command:
New-RDRemoteApp -CollectionName [collection_name] -DisplayName [remote_app_display_name] -FilePath "\\server\share\executable.exe" -IconPath \\server\share\app.exe  (location of the original exe file, that shortcut was created) here is my example command

New-RDRemoteApp -Alias "App Name" -CollectionName Collection -DisplayName "APP Display" -FilePath "C:\Users\Public\Desktop\shortcut.lnk" -FolderName "Folder Name" -IconPath "\\server\share\app name.exe"

https://social.technet.microsoft.com/Forums/windowsserver/en-US/e0f60f90-1427-46f4-a498-45a33fb8e8c6/rds-2012-can-you-publish-apps-installed-on-a-network-from-the-rds-server?forum=winserverTS

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
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
Windows Server 2012

From novice to tech pro — start learning today.