PowerShell – Automated Remote Desktop Services (RDS) web feed.

Recently I wanted to make it easy for users to add a Remote Desktop Service web feed through group policies. I created a script that needs to be run in the user context.

You need to specify a URL in the script as a variable.

Feel free to use it.

 

Experienced advanced operations engineer with a demonstrated history of working in the information technology and services industry. Skilled in Windows Server, Azure, Ethical Hacking, Office 365, Exchange, Jenkins, SCCM, Octopus Deploy and PowerShell to name a few. Strong engineering professional with a big passion for knowledge.

4 Comments

  1. Roger

    Not even 5 years later and someone uses this script. 😉
    Thank you very much Alex for sharing this. This is still absolutely useful, because its still not possible to provide more than one default feed per GPO.
    The most important thing is the info you are providing here (with the script as bonus). How to construct the wpx XML file and how to use it with rundll32.exe.
    Only the line:
    Remove-Item -Path ($Directory[0] + “\” + $Directory[1]) -Force -Confirm:$false -Recurse;
    is a bit dangerous, when you change the $Directory from “C:\” to e.g. “C:\temp”. My whole temp was deleted. Thank god I didn’t use C:\users\roger
    Thanks again. I’m happy that I found this.
    Greets Roger

  2. mike

    can this script be used with GPO to have only admin users get the remote apps? offhand question do you have any ideas why after a fresh image of a computer the remote apps and desktop user gpo that i have set is being blocked or just not applying with win 11 22h2 and when i run your script it adds the apps for the user but then it gives an error of the remote computer requires network level authentication?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.