Quantcast
Channel: Active questions tagged terminal - Super User
Viewing all articles
Browse latest Browse all 521

What Changed in CMD in Windows 11 22H2 [closed]

$
0
0

So with the move to Windows 11 22H2 and the change to Terminal as the default, there has been some additional changes to CMD. I would like to know what has changed to cause the different behavior in CMD. I have tried to run in Terminal using CMD, I have also started CMD on it own and tried the Legacy mode, all of which has the new behavior in Windows 11.

Below are two examples of the same command being run and the different outcomes. Yes I understand this should be written differently, but the point of the question is to get a deeper understanding of the changes and how they will impact other areas.

Old Version: Windows 11 21H2

C:\Windows\system32>SC CONFIG ThisProgram binPath= """"C:\Program Files (x86)\ThisProgram\ThisProgram.exe""""

Output :[SC] OpenService FAILED 1060:

The specified service does not exist as an installed service.

New Version: Windows 11 23H2

C:\Users\jameson.turner>SC CONFIG ThisProgram binPath= """"C:\Program Files (x86)\ThisProgram\ThisProgram.exe""""

DESCRIPTION:Modifies a service entry in the registry and Service Database.USAGE:sc config [service name] ...

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= tag= <yes|no>depend= <Dependencies(separated by / (forward slash))>obj= <AccountName|ObjectName>DisplayName= password=

On the new Windows 11 23H2 it is as if it doesn't read the parameter and is trying to provide help text for the command.

Knowing that it did work for many years in CMD and now it does not, means there is a change. This change could have other impacts and am looking to explore what these are. This could have impacts to other areas and processes as we are developing products.

So the question is, why did this work up until the release of 22H2 and not afterwards and what caused these changes. Any extra information on other impacts would be greatly appreciated.

Thank you


Viewing all articles
Browse latest Browse all 521

Trending Articles