How to install programs on a Remote Desktop Session Host

Sometimes you want to install programs for all users to be able to use on a Remote Desktop Session Host environment.  If you are installing a program that is not installed using an MSI file, you need to run the following command before installing:

change user /install

Once you are done installing, you can either restart the server, or run this command to change it back:

change user /execute