Appearance
Starting and Stopping the Service
DICOM Printer 2 runs as a Windows service that can be managed through various methods.
Service Information
- Service Name:
DICOMPrinterService - Display Name: DICOM Printer 2 Service
- Startup Type: Automatic (starts with Windows)
- Log On As: Local System account (default)
Using the Control Application
The easiest way to manage the service is through the Control Application.
Starting the Service
- Launch the Control Application
- Click the Start Service button
- Service status changes to "Running"
Stopping the Service
- Click the Stop Service button
- Service begins graceful shutdown
- Currently processing jobs complete before shutdown
- Service status changes to "Stopped"
Restarting the Service
- Click Stop Service
- Wait for service to stop completely
- Click Start Service
OR use the Restart Service button if available.
Using Windows Services
Opening Services Management
Method 1: Run Dialog
- Press
Win + R - Type
services.msc - Press Enter
Method 2: Control Panel
- Open Control Panel
- Administrative Tools → Services
Method 3: Task Manager
- Open Task Manager (
Ctrl + Shift + Esc) - Services tab
- Click "Open Services" at bottom
Starting the Service
- Locate "DICOM Printer 2 Service" in the list
- Right-click the service
- Select Start
OR
- Select the service
- Click Start in the left panel or toolbar
Stopping the Service
- Right-click "DICOM Printer 2 Service"
- Select Stop
OR
- Select the service
- Click Stop in the left panel
Restarting the Service
- Right-click "DICOM Printer 2 Service"
- Select Restart
Using Command Line
Using net Command
Start Service
cmd
net start DICOMPrinterServiceStop Service
cmd
net stop DICOMPrinterServiceRestart Service
cmd
net stop DICOMPrinterService && net start DICOMPrinterServiceUsing sc Command
Start Service
cmd
sc start DICOMPrinterServiceStop Service
cmd
sc stop DICOMPrinterServiceQuery Service Status
cmd
sc query DICOMPrinterServiceOutput:
SERVICE_NAME: DICOMPrinterService
TYPE : 10 WIN32_OWN_PROCESS
STATE : 4 RUNNING
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0Configure Startup Type
cmd
sc config DICOMPrinterService start= autoOptions:
auto- Automaticdemand- Manualdisabled- Disabled
Note: Space after = is required.
Using PowerShell
Start Service
powershell
Start-Service -Name "DICOMPrinterService"Stop Service
powershell
Stop-Service -Name "DICOMPrinterService"Restart Service
powershell
Restart-Service -Name "DICOMPrinterService"Get Service Status
powershell
Get-Service -Name "DICOMPrinterService"Output:
Status Name DisplayName
------ ---- -----------
Running DICOMPrinterService DICOM Printer 2 ServiceSet Startup Type
powershell
Set-Service -Name "DICOMPrinterService" -StartupType AutomaticOptions:
Automatic- Starts with WindowsManual- Starts only when requestedDisabled- Cannot start
Service Startup Types
Automatic
Service starts automatically when Windows starts.
Best for:
- Production environments
- Always-on operation
- Unattended systems
Manual
Service must be started manually.
Best for:
- Development/testing
- On-demand processing
- Resource conservation
Disabled
Service cannot be started.
Best for:
- Temporarily decommissioning service
- Troubleshooting conflicts
Graceful Shutdown
When stopping the service:
- Service receives stop signal
- Stops accepting new jobs
- Completes currently processing jobs
- Closes connections to DICOM servers
- Writes final log entries
- Service stops
Timeout: If shutdown exceeds 30 seconds, Windows may forcefully terminate the service.
Checking Service Status
Control Application
Service status is displayed prominently in the main window:
- Running - Green indicator
- Stopped - Red indicator
- Starting - Yellow indicator
- Stopping - Yellow indicator
Windows Services
Status column shows:
- Running
- Stopped
- Starting
- Stopping
Command Line
cmd
sc query DICOMPrinterServiceLook for STATE field:
4 RUNNING1 STOPPED
PowerShell
powershell
Get-Service -Name "DICOMPrinterService" | Select-Object StatusCommon Scenarios
Applying Configuration Changes
- Stop the service
- Edit
config.xml - Start the service
Configuration is loaded at service startup.
After Software Update
- Stop the service
- Run installer/updater
- Start the service
Ensures files aren't locked during update.
Troubleshooting Issues
- Stop the service
- Increase log verbosity in config.xml
- Start the service
- Reproduce issue
- Check logs
- Stop service
- Restore normal verbosity
- Start service
Changing Service Account
- Stop the service
- Open Services → Properties → Log On tab
- Select account
- Enter credentials
- Click OK
- Start the service
Required if service needs specific permissions.
Troubleshooting
Service Won't Start
Possible Causes:
- Configuration errors
- Invalid license
- Port conflicts
- File permissions
Solutions:
- Check service logs for errors
- Verify configuration file is valid XML
- Check license activation
- Ensure no other service using same ports
- Verify service account has necessary permissions
Service Stops Unexpectedly
Possible Causes:
- Unhandled exceptions
- License expiration
- Resource exhaustion
- Configuration errors
Solutions:
- Review service logs for errors immediately before stop
- Check license validity
- Monitor system resources (CPU, memory, disk)
- Validate configuration
Service Won't Stop
Possible Causes:
- Stuck processing job
- Network connection timeout
- Resource deadlock
Solutions:
- Wait longer (up to 2 minutes)
- Force stop using Task Manager (last resort)
- Check logs for jobs in progress
- Restart computer if necessary
"Access Denied" Errors
Cause: Insufficient permissions
Solutions:
- Run command prompt as Administrator
- Use Control Application (Run as Administrator)
- Verify account permissions
Service Dependencies
DICOM Printer 2 service has no dependencies on other services, but requires:
- TCP/IP stack (for DICOM communication)
- File system access
- Windows event log
If these are unavailable, service may fail to start or function incorrectly.