Score:1

How to confirm whether I am running in a RDP mstsc /admin session?

us flag

Inside an already started RDP session how would I confirm whether I am indeed running inside a session successfully started with the admin switch (mstsc /admin)?

I think with older server versions you could see if the Session ID for the session was 0 (zero) but it does not seem that way anymore.

Rephrasing the question would be; Where or how inside the RDP sessions would I compare a session started with the /admin switch and one started without it to see which is which?

Score:1
us flag

Try to test the SystemInformation.TerminalServerSession property (https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.systeminformation.terminalserversession).

Create a PowerShell session and run the following commands:

Add-Type -AssemblyName System.Windows.Forms
[System.Windows.Forms.SystemInformation]::TerminalServerSession
Blurry Sterk avatar
us flag
This only indicates whether you are in a Terminal Server Session and not whether the session was started with the /admin switch or not
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.