Configuration WindowsServices { Import-DscResource -ModuleName PSDesiredStateConfiguration Node localhost { # === REMOTE DESKTOP SERVICES === # Enable Terminal Services (Remote Desktop) Service TerminalServices { Name = "TermService" State = "Running" StartupType = "Automatic" } # === ADDITIONAL SERVICES CONFIGURATION === # Note: Other services from the registry.csv could be added here # if they were service-related rather than registry-based } } # Generate the MOF file WindowsServices -OutputPath "\temp\DSC\WindowsServices" # Apply the configuration Start-DscConfiguration -Path "\temp\DSC\WindowsServices" -Wait -Verbose -Force