cosmistack-logo

Firewalls4Less is Live!Shop premium hardware at unbeatable prices.

Shop now
Article cover photo

How to Deploy Amazon AppStream 2.0 with Powershell

By Jake T on 6/27/25

Description: Need an automated way to deploy Amazon AppStream2.0 to your Windows devices? Read our tutorial to find out how!

In short:

Introduction

Amazon AppStream 2.0 is AWS' latest client software for its application virtualization solution, AppStream. Whether you're deploying an AppStream environment yourself, or your users just need to access an external SaaS application via AppStream, you've no doubt needed to deploy AppStream 2.0 to your endpoints.

While Amazon does provide some instructions on deployment via PowerShell, they are pretty surface level and assume you've already downloaded the install files on the specific endpoint. Moreover, if you're managing multiple endpoints, you're probably using an RMM tool and want to avoid manually remoting in to each endpoint, downloading the installers, and the script. Well, look no further! We've created a simple PowerShell script that takes care of this for you!

https://github.com/Cosmistack/Amazon_AppStream_2_0_Deployment

Bonus: How to Deploy with NinjaOne

Note: While these instructions specifically reference using NinjaOne RMM, the general concepts will be applicable to just about any RMM tool that can store and run PowerShell scripts. You will need sufficient access in NinjaOne to create automations before proceeding

1. Open NinjaOne and navigate to Administration > Library > Automation . Link here for your convenience.

NinjaOne Automations Library

2. Click Add > New Script

NinjaOne add new automation action

3. Now, in the script editor, copy and paste the contents of our AppStream2.0 PowerShell deployment script

4. Next, give the automation a name and add a description and categories, if desired. Set Language to "PowerShell", Operating System to "Windows", Architecture to "64-bit", and leave Run As set to the default of "System"

Cosmistack AppStream 2.0 Installation Script in NinjaOne editor

5. You now have the option to add script parameters. Our script takes two optional parameters: ForceInstall and NoUSBDriver.

By default, if the AppStream installer finds an existing "AppStreamClient" directory in `%localappdata%, it won't proceed with the installation as it assumes AppStream is already completely installed.

As it suggests, the NoUSBDriver option skips the installation of the driver for USB redirection with AppStream. Even if you aren't planning on using USB direction, we recommend installing the driver so you don't have to worry about configuring this later if the need arises.

If you want to configure any combinations of these parameters, add them as switches in the Parameters field, e.g. `-ForceInstall -NoUSBDriver`. Note that you can also add/edit them at the time you run the automation. In our example, we're adding the `-ForceInstall` switch as a preset.

6. Save the script

7. Find a suitable device to test the automation on. On the device page, use the "play" button icon to select Run Automation > Script

Screenshot 2025-06-20 173538.png

8. Select your AppStream deployment script from the list. Select or add any parameters as needed. Click Run

Screenshot 2025-06-20 173847.png

9. The script will now start running. Keep in mind, it may take some time to complete, especially as it needs to download the latest Enterprise Deployment Tool from Amazon first.

10. When the script completes, you can check the output by clicking on the activity detail

NinjaOne Automation Activity Details

11. As mentioned in the script's comments, keep in mind that AppStream 2.0 will not be available immediately. Amazon's AppStream installer instead waits until the next time a user signs in to finish installing. So, to test this, sign in on the test device and wait a minute or two for the AppStream icon to appear on the desktop.

Amazon AppStream icon on desktop

12. Double-click on the AppStream icon, and you will be ready to go!

Amazon AppStream 2.0 welcome screen

Conclusion

We hope this tutorial was helpful and that our deployment script works well for you! Keep in mind, the deployment script is just a starting point - feel free to customize it to your organization's needs to further streamline your deployment. Thanks for reading and for all of your IT consulting needs, contact Cosmistack today!

Join our Newsletter!

Stay up to date with the latest news from the IT industry and receive exclusive offers from Cosmistack!

By signing up, you agree to our Privacy Policy and to receive emails from Cosmistack. You can unsubscribe at any time.

Disclaimer: The information provided in this article is for educational and informational purposes only. The techniques, tools, and technologies discussed are intended to be used by individuals with a solid understanding of the subject matter. Readers are entirely responsible for any actions they take based on the content of this article. This blog and its authors do not assume any responsibility for any unintended outcomes, data loss, or issues that may arise from following the instructions or recommendations provided.

Copyright © 2024 Cosmistack, Inc. All rights reserved. | Privacy Policy