Giter Club home page Giter Club logo

avd-webclient-downloadredirect's Introduction

What is this for?

This is to work around a compatability issue with the Azure Virtual Desktop Web Client File Sharing:

Copy and paste from the Remote Desktop web client:

The web client currently supports copying and pasting text only. Files can't be copied or pasted to and from the web client. Additionally, you can only use Ctrl+C and Ctrl+V to copy and paste text.

Saving files directly to the Downloads folder redirect isn't supported. This can be an issue from remote apps not having access to a full file explorer to copy and paste files.

What does this do?

LogonScript-Folder-Move.ps1 would be configured as a Logon Script on the session hosts. Once users login to the host, it attempts to map the RDWebClient Redirect download directory to a PSDrive and creates a folder within the users profile. The script runs a check on that created folder every five seconds. If a file is written to the directory, the script moves the file to the mapped PSDrive. This triggers the download on the remote browser.

Setup

Set the variables for Source and Target in the LogonScript-Folder-Move.ps1

# Variables to Set #
$dest = "X:\"
$sourcePath = "$($env:USERPROFILE)\Downloads\WebClient"
$credUserName = "localadmin"
# End to Variables to Set #

You will want your $sourcePath to be located within the users writeable profile.

Create a password.txt file to save your password for a Local Admin account:

$password = ConvertTo-SecureString -String "MYPASSWORD" -AsPlainText -Force
$password | ConvertFrom-SecureString | Out-File password.txt

The password.txt file much be generated per server and needs to be in the same directory as the LogonScript-Folder-Move.ps1

Future Features

Integrate with Azure Key Vault to eliminate the need for the password.txt

avd-webclient-downloadredirect's People

Contributors

lukearp avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.