Smart Card and Remote Desktop Services (2024)

  • Article
  • Applies to:
    Windows 11, ✅ Windows 10, ✅ Windows Server 2022, ✅ Windows Server 2019, ✅ Windows Server 2016

This topic for the IT professional describes the behavior of Remote Desktop Services when you implement smart card sign-in.

Smart card redirection logic and WinSCard API are combined to support multiple redirected sessions into a single process.

Smart card support is required to enable many Remote Desktop Services scenarios. These include:

  • Using Fast User Switching or Remote Desktop Services. A user isn't able to establish a redirected smart card-based remote desktop connection. That is, the connect attempt isn't successful in Fast User Switching or from a Remote Desktop Services session
  • Enabling Encrypting File System (EFS) to locate the user's smart card reader from the Local Security Authority (LSA) process in Fast User Switching or in a Remote Desktop Services session. If EFS isn't able to locate the smart card reader or certificate, EFS can't decrypt user files

Remote Desktop Services redirection

In a Remote Desktop scenario, a user is using a remote server for running services, and the smart card is local to the computer that the user is using. In a smart card sign-in scenario, the smart card service on the remote server redirects to the smart card reader that is connected to the local computer where the user is trying to sign in.

Smart Card and Remote Desktop Services (1)

Remote Desktop redirection

Notes about the redirection model:

  1. This scenario is a remote sign-in session on a computer with Remote Desktop Services. In the remote session (labeled as Client session), the user runs net use /smartcard
  2. Arrows represent the flow of the PIN after the user types the PIN at the command prompt until it reaches the user's smart card in a smart card reader that is connected to the Remote Desktop Connection (RDC) client computer
  3. The authentication is performed by the LSA in session 0
  4. The CryptoAPI processing is performed in the LSA (lsass.exe). This is possible because RDP redirector (rdpdr.sys) allows per-session, rather than per-process, context
  5. The ScHelper library is a CryptoAPI wrapper that is specific to the Kerberos protocol
  6. The redirection decision is made on a per smart card context basis, based on the session of the thread that performs the SCardEstablishContext call

RD Session Host server single sign-in experience

As a part of the Common Criteria compliance, the RDC client must be configurable to use Credential Manager to acquire and save the user's password or smart card PIN. Common Criteria compliance requires that applications not have direct access to the user's password or PIN.

Common Criteria compliance requires specifically that the password or PIN never leave the LSA unencrypted. A distributed scenario should allow the password or PIN to travel between one trusted LSA and another, and it can't be unencrypted during transit.

When smart card-enabled single sign-in (SSO) is used for Remote Desktop Services sessions, users still need to sign in for every new Remote Desktop Services session. However, the user isn't prompted for a PIN more than once to establish a Remote Desktop Services session. For example, after the user double-clicks a Microsoft Word document icon that resides on a remote computer, the user is prompted to enter a PIN. This PIN is sent by using a secure channel that the credential SSP has established. The PIN is routed back to the RDC client over the secure channel and sent to Winlogon. The user doesn't receive any additional prompts for the PIN, unless the PIN is incorrect or there are smart card-related failures.

Remote Desktop Services and smart card sign-in

Remote Desktop Services enables users to sign in with a smart card by entering a PIN on the RDC client computer and sending it to the RD Session Host server in a manner similar to authentication that is based on user name and password.

In addition, group policy settings that are specific to Remote Desktop Services need to be enabled for smart card-based sign-in.

To enable smart card sign-in to a Remote Desktop Session Host (RD Session Host) server, the Key Distribution Center (KDC) certificate must be present on the RDC client computer. If the computer isn't in the same domain or workgroup, the following command can be used to deploy the certificate:

certutil.exe -dspublish NTAuthCA "DSCDPContainer"

The DSCDPContainer Common Name (CN) is usually the name of the certification authority.

Example:

certutil -dspublish NTAuthCA <CertFile> "CN=NTAuthCertificates,CN=Public Key Services,CN=Services,CN=Configuration,DC=engineering,DC=contoso,DC=com"

For information about this option for the command-line tool, see -dsPublish.

Remote Desktop Services and smart card sign-in across domains

To enable remote access to resources in an enterprise, the root certificate for the domain must be provisioned on the smart card. From a computer that is joined to a domain, run the following command at the command line:

certutil.exe -scroots update

For information about this option for the command-line tool, see -SCRoots.

For Remote Desktop Services across domains, the KDC certificate of the RD Session Host server must also be present in the client computer's NTAUTH store. To add the store, run the following command at the command line:

certutil -addstore -enterprise NTAUTH <CertFile>

Where CertFile is the root certificate of the KDC certificate issuer.

For information about this option for the command-line tool, see -addstore.

Note

To sign in with a smart card from a computer that is not joined to a domain, the smart card must contain the root certification of the domain controller. A public key infrastructure (PKI) secure channel cannot be established without the root certification of the domain controller.

Sign-in to Remote Desktop Services across a domain works only if the UPN in the certificate uses the following form: <ClientName>@<DomainDNSName>.

The UPN in the certificate must include a domain that can be resolved. Otherwise, the Kerberos protocol can't determine which domain to contact. You can resolve this issue by enabling GPO X509 domain hints. For more information about this setting, see Smart Card Group Policy and Registry Settings.

Smart Card and Remote Desktop Services (2024)
Top Articles
Why have Americans racked up so much credit card debt?
Why Invest in Multifamily Over a 401(k) or an IRA
Is Whitney Williams Wgem Married
Tony's Delicatessen & Fresh Meats
Mapgeo Nantucket
How Much Food Should I Buy For Christmas? | Gousto Christmas
WWE Bash In Berlin 2024: CM Punk Winning And 5 Smart Booking Decisions
Cincinnati Adult Search
Giant Egg Classic Wow
They Cloned Tyrone Showtimes Near Showbiz Cinemas - Kingwood
Jackie Knust Wendel
Un-Pc Purchase Crossword Clue
Apple Store Location
Word Jam 1302
Dirty Old Man Birthday Meme
The Menu Showtimes Near Regal Edwards Ontario Mountain Village
Southpaws Grill Menu
Crete Il Forum
Patriot Ledger Obits Today
35 Best Anime Waifus Of All Time: The Ultimate Ranking – FandomSpot
Ratchet And Clank Tools Of Destruction Rpcs3 Freeze
Ice Quartz Osrs
Ip Address Issue Nad 3303
Bannerlord How To Get Your Wife Pregnant
5 takeaways from Baylor’s historic comeback win vs. UCF: Bears find new energy in Orlando
Peoplesoft Oracle Americold Login
Joy Ride 2023 Showtimes Near Cinemark Huber Heights 16
8005607994
Skechers Outlet Greensboro Nc
Who We Are | Kappa Delta Sorority
Road Conditions Riverton Wy
neither of the twins was arrested,传说中的800句记7000词
Drury Plaza Hotel New Orleans
Myrtle Beach Armslist
Wells Fargo Hiring Hundreds to Develop New Tech Hub in the Columbus Region
One Person Dead In East Charlotte - WCCB Charlotte's CW
Costco Gasoline and Sam's Club Fuel Center Gas Savings - Consumer Reports
FedEx in meiner Nähe - Wien
Americas Cardroom Promo Code For Existing Users
Jodie Sweetin Breast Reduction
Cheap Motorcycles For Sale Under 1000 Craigslist Near Me
American Freight Mason Ohio
Jcp Meevo Com
450 Miles Away From Me
Texas State Academic Probation
Kayla Simmons Of Leak
Buhsd Studentvue
Rush Copley Swim Lessons
Osrs Nex Mass
palm springs free stuff - craigslist
49 CFR Part 581 -- Bumper Standard
Latest Posts
Article information

Author: Maia Crooks Jr

Last Updated:

Views: 6103

Rating: 4.2 / 5 (63 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Maia Crooks Jr

Birthday: 1997-09-21

Address: 93119 Joseph Street, Peggyfurt, NC 11582

Phone: +2983088926881

Job: Principal Design Liaison

Hobby: Web surfing, Skiing, role-playing games, Sketching, Polo, Sewing, Genealogy

Introduction: My name is Maia Crooks Jr, I am a homely, joyous, shiny, successful, hilarious, thoughtful, joyous person who loves writing and wants to share my knowledge and understanding with you.