Skip to content

Commit

Permalink
chore: Add information about PCSC service testing
Browse files Browse the repository at this point in the history
  • Loading branch information
microshine committed Aug 29, 2024
1 parent e71059e commit ff04953
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions packages/server/DEVELOPERS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Developers Guide

Welcome to the Developers Guide for this project. This document provides essential information and instructions for developers working on the project. It includes guidelines for setting up the development environment, managing dependencies, running tests, and other important tasks.

## Managing PCSC Service on Windows

For testing various states of the PCSC (Smart Card) service on Windows, you may need to start, stop, and change the startup type of the service. Below are the commands to manage the PCSC service.

**Note:** Ensure you open the terminal with administrative privileges to execute these commands.

### Disable and Stop the PCSC Service

To disable and stop the PCSC service, run the following commands in PowerShell with administrative privileges:

```powershell
# Disable the PCSC service
Set-Service -Name "SCardSvr" -StartupType Disabled
# Stop the PCSC service
Stop-Service -Name "SCardSvr"
```

### Enable and Start the PCSC Service

To enable and start the PCSC service, run the following commands in PowerShell with administrative privileges:

```powershell
# Set the PCSC service to start automatically
Set-Service -Name "SCardSvr" -StartupType Automatic
# Start the PCSC service
Start-Service -Name "SCardSvr"
```

### Check the Status of the PCSC Service

To check the current status of the PCSC service, run the following command in PowerShell:

```powershell
Get-Service -Name "SCardSvr"
```

This command will display the current status of the service, including whether it is running, stopped, and its startup type.

0 comments on commit ff04953

Please sign in to comment.