https://github.com/stetze/rds-shadow
Enables you to remotely control an active session of another user on a Remote Desktop Session Host server without admin rights.
https://github.com/stetze/rds-shadow
csharp rds remote-desktop visual-studio windows windows-app winui3
Last synced: about 1 year ago
JSON representation
Enables you to remotely control an active session of another user on a Remote Desktop Session Host server without admin rights.
- Host: GitHub
- URL: https://github.com/stetze/rds-shadow
- Owner: stetze
- License: mit
- Created: 2024-01-12T12:33:21.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-11-21T19:50:18.000Z (over 1 year ago)
- Last Synced: 2025-03-24T06:54:41.620Z (about 1 year ago)
- Topics: csharp, rds, remote-desktop, visual-studio, windows, windows-app, winui3
- Language: C#
- Homepage:
- Size: 2.97 MB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[![Stargazers][stars-shield]][stars-url]
[![MIT License][license-shield]][license-url]
RDS-Shadow
Made with Microsoft Template Studio
## Pre-requisites
1. Active Directory
Create an AD-Group "Domain\RDS-Shadow"
Add Users in "Domain\RDS-Shadow"
2. Configure the database for the Connection Broker
```
USE [master]
GO
CREATE LOGIN [Domain\RDS-Shadow] FROM WINDOWS WITH DEFAULT_DATABASE=[RDSFARM]
GO
USE [RDSFARM]
GO
CREATE USER [Domain\RDS-Shadow] FOR LOGIN [Domain\RDS-Shadow]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[Shadowing]
AS
SELECT Session.UserName, Pool.DisplayName AS PoolName, Target.Name AS ServerName, Session.SessionId
FROM rds.Session AS Session
INNER JOIN rds.Target AS Target ON Target.Id = Session.TargetId
INNER JOIN rds.Pool AS Pool ON Target.PoolId = Pool.Id
WHERE (Session.State = 0) OR (Session.State = 1)
GO
GRANT SELECT ON [dbo].[Shadowing] TO [Domain\RDS-Shadow]
GO
```
3. Add the Group (Domain\RDS-Shadow) to the role db_datareader
```
ALTER ROLE db_datareader ADD MEMBER [Domain\RDS-Shadow]
```
4. Add rights to Terminalserver
```
wmic /namespace:\\root\CIMV2\TerminalServices PATH Win32_TSPermissionsSetting WHERE (TerminalName ="RDP-Tcp") CALL AddAccount "domain\rds-shadow",2
```
## Available on msstore
or installation via winget "winget install 9NLQV1VWWCLC -s msstore"
[stars-shield]: https://img.shields.io/github/stars/stetze/RDS-Shadow.svg?style=for-the-badge
[stars-url]: https://github.com/stetze/RDS-Shadow/stargazers
[license-shield]: https://img.shields.io/github/license/stetze/RDS-Shadow.svg?style=for-the-badge
[license-url]: https://github.com/stetze/RDS-Shadow/blob/master/LICENSE.txt