Connect-RemoteAssistance.ps1


Description

Purpose

Connects to a remote computer using Remote Assistance.

Detailed Description

The Connect-RemoteAssistance function allows you to connect to a remote computer using Remote Assistance. It retrieves the active user on the remote computer and initiates a Remote Assistance session with the specified computer.

Back to Top

Usage

Example 1

Connect-RemoteAssistance -Computer "skywalker"

Connects to the remote computer named “skywalker” using Remote Assistance.

Back to Top

Notes

No additional notes.

Back to Top


Script

# Description: Connect to a remote computer using Remote Assistance
# $Computer = "skywalker"
# $ActiveUser = Get-RDPUserReport -ComputerName $Computer
# msra.exe /offerra $Computer ($env:USERDOMAIN + "\" + ($ActiveUser.Username + ":" + $ActiveUser.ID))

<#
.SYNOPSIS
Connects to a remote computer using Remote Assistance.

.DESCRIPTION
The Connect-RemoteAssistance function allows you to connect to a remote computer using Remote Assistance. It retrieves the active user on the remote computer and initiates a Remote Assistance session with the specified computer.

.PARAMETER Computer
The name of the remote computer to connect to.

.EXAMPLE
Connect-RemoteAssistance -Computer "skywalker"
Connects to the remote computer named "skywalker" using Remote Assistance.

#>

function Connect-RemoteAssistance {
    [CmdletBinding()]
    param (
        [Parameter(Mandatory = $true, ValueFromPipeline = $true)]
        [string]$Computer
    )
    $ActiveUser = Get-RDPUserReport -ComputerName $Computer
    msra.exe /offerra $Computer ($env:USERDOMAIN + "\" + ($ActiveUser.Username + ":" + $ActiveUser.ID))

}

Back to Top

Download

Please feel free to copy parts of the script or if you would like to download the entire script, simply click the download button. You can download the complete repository in a zip file by clicking the Download link in the menu bar on the left hand side of the page.


Report Issues

You can report an issue or contribute to this site on GitHub. Simply click the button below and add any relevant notes. I will attempt to respond to all issues as soon as possible.

Issue


Back to Top