Behavior Change with multiple Double Quotes #21750

Closed
opened 2026-01-31 07:53:49 +00:00 by claunia · 2 comments
Owner

Originally created by @JTTELCOR on GitHub (May 22, 2024).

Windows Terminal version

1.19.11213.0

Windows build number

10.0.22631.3593

Other Software

No response

Steps to reproduce

We have two computers running Windows 11, one is 23H2 using Windows Terminal and the other is 21H2 using CMD. I have changed the Windows Terminal to use Windows Console Host and Command Prompt.

When I run the following command we are getting different responses.
Expected Behavior is from the 21H2 - [Version 10.0.22000.2899]
Actual behavior is from the 23H2

image

Expected Behavior

c:\>SC CONFIG ThisProgram binPath= """"C:\Program Files (x86)\ThisProgram\ThisProgram.exe""""
[SC] OpenService FAILED 1060:

The specified service does not exist as an installed service.

Actual Behavior

c:\>SC CONFIG ThisProgram binPath= """"C:\Program Files (x86)\ThisProgram\ThisProgram.exe""""
DESCRIPTION:
        Modifies a service entry in the registry and Service Database.
USAGE:
        sc <server> config [service name] <option1> <option2>...

OPTIONS:
NOTE: The option name includes the equal sign.
      A space is required between the equal sign and the value.
      To remove the dependency, use a single / as dependency value.
 type= <own|share|interact|kernel|filesys|rec|adapt|userown|usershare>
 start= <boot|system|auto|demand|disabled|delayed-auto>
 error= <normal|severe|critical|ignore>
 binPath= <BinaryPathName to the .exe file>
 group= <LoadOrderGroup>
 tag= <yes|no>
 depend= <Dependencies(separated by / (forward slash))>
 obj= <AccountName|ObjectName>
 DisplayName= <display name>
 password= <password>
Originally created by @JTTELCOR on GitHub (May 22, 2024). ### Windows Terminal version 1.19.11213.0 ### Windows build number 10.0.22631.3593 ### Other Software _No response_ ### Steps to reproduce We have two computers running Windows 11, one is 23H2 using Windows Terminal and the other is 21H2 using CMD. I have changed the Windows Terminal to use Windows Console Host and Command Prompt. When I run the following command we are getting different responses. Expected Behavior is from the 21H2 - [Version 10.0.22000.2899] Actual behavior is from the 23H2 ![image](https://github.com/microsoft/terminal/assets/154908323/aab8a5ff-58c8-4526-9899-586731129ae4) ### Expected Behavior ``` c:\>SC CONFIG ThisProgram binPath= """"C:\Program Files (x86)\ThisProgram\ThisProgram.exe"""" [SC] OpenService FAILED 1060: The specified service does not exist as an installed service. ``` ### Actual Behavior ``` c:\>SC CONFIG ThisProgram binPath= """"C:\Program Files (x86)\ThisProgram\ThisProgram.exe"""" DESCRIPTION: Modifies a service entry in the registry and Service Database. USAGE: sc <server> config [service name] <option1> <option2>... OPTIONS: NOTE: The option name includes the equal sign. A space is required between the equal sign and the value. To remove the dependency, use a single / as dependency value. type= <own|share|interact|kernel|filesys|rec|adapt|userown|usershare> start= <boot|system|auto|demand|disabled|delayed-auto> error= <normal|severe|critical|ignore> binPath= <BinaryPathName to the .exe file> group= <LoadOrderGroup> tag= <yes|no> depend= <Dependencies(separated by / (forward slash))> obj= <AccountName|ObjectName> DisplayName= <display name> password= <password> ```
claunia added the Issue-BugNeeds-Tag-Fix labels 2026-01-31 07:53:49 +00:00
Author
Owner

@JTTELCOR commented on GitHub (Jun 4, 2024):

This ended up being a change to the sc.exe program.

@JTTELCOR commented on GitHub (Jun 4, 2024): This ended up being a change to the sc.exe program.
Author
Owner

@DHowett commented on GitHub (Jun 4, 2024):

Thanks for following up!

@DHowett commented on GitHub (Jun 4, 2024): Thanks for following up!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#21750