GithubHelp home page GithubHelp logo

garrydown / avd-shadowing Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 2.0 73 KB

Scripts to allow an Administrator or Helpdesk User to Shadow a users AVD Session

PowerShell 100.00%
wvd shadow shadowing session mstsc powershell powershell-script avd azurevirtualdesktop

avd-shadowing's Introduction

AVD \ WVD Shadowing

Providing Remote Support, Shadowing, for a WVD Session is currently not available 'Out of the Box' in AVD

To Shadow a use you can use either Remote Assist or MSTSC, on a Client Device Remote Assist is enabled by Default but needs to be enabled in a Server OS

Remote Assist

The following command is used to run MSTSC:

msra.exe /OfferRa 'Session Host FQDN' 'Users UPN':'Session ID'

MSTSC.exe

The following command is used to run MSTSC:

mstsc.exe /v:'Session Host FQDN' or 'IP' /shadow:'Session ID'

There are two additional, optional switches

  • /noConsentPrompt
    Allows you to connect to the users session without them being prompted to all the connection
    Note: If the GPO Setting Set rules for remote control of Remote Desktop Services user sessions is set to force the Consent Prompt then this switch has no effect
  • /Control
    Allows you to interact with the users session (if not set โ€“ a users session is in view mode only)

This means Support have to find out the Users UPN, which Session Host the User is connected too and their Session ID to be able to run this command

Therefore, I wrote these PowerShell scripts to automate this process

Version Description
v1.0 Initial version that only supported the Fall Edition, using a Service Principal ID to connect to the WVD Management Plane
v1.1 Updated to allow Authentication to the WVD Management Plane to be via User Account as well as Service Principal ID
v2.0 Updated to support both the Fall and Spring Releases of WVD
v2.1 Bug Fixes Applied
v3.0 Updated to Support the Use of Remote Assist as well as MSTSC
Updated to support AVD being hosted in more than one Azure Subscription
Support for Fall Release REMOVED

avd-shadowing's People

Contributors

garrydown avatar

Stargazers

 avatar

Watchers

 avatar

avd-shadowing's Issues

Gather Host Pools Function

I get the following error and I have the variables correctly set. Please help. I really want to use this code then implement for a big client.

The property 'text' cannot be found on this object. Verify that the property exists and can be set.
At C:\Users\ericd\Downloads\New Script\AVD Shadowing.ps1:243 char:5

  • $Subscriptions.text          = $AVDSubscriptions
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : PropertyNotFound

Gather_HostPools : The term 'Gather_HostPools' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At C:\Users\ericd\Downloads\New Script\AVD Shadowing.ps1:245 char:5

  • Gather_HostPools
    
  • ~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (Gather_HostPools:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

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.