Cmstp command in Windows

The cmstp command installs or deletes the Connection Manager service configuration. If used without parameters, the cmstp command will install the service configuration with the default settings that are appropriate for the operating system and user rights.

Applies to : Windows Server (Semi-Annual Channel), Windows Server 2016, Windows Server 2012 R2, Windows Server 2012.

The cmstp command installs or deletes the Connection Manager service configuration. If used without parameters, the cmstp command will install the service configuration with the default settings that are appropriate for the operating system and user rights.

Cmstp command syntax

Syntax 1

 ServiceProfileFileName .exe /q:a /c:"cmstp.exe ServiceProfileFileName .inf [/nf] [/ni] [/ns] [/s] [/su] [/u]" 

Syntax 2

 cmstp.exe [/nf] [/ni] [/ns] [/s] [/su] [/u] [Drive:][path]ServiceProfileFileName.inf" 

Parameters

ParameterExample .exe

Specify, by name, for the installation package that contains the configuration you want to install.

Required for Syntax 1 but not valid for Syntax 2.

/ q: a

Specifies that the configuration will be installed without prompting the user. The message verifies that the installation was successful will still appear.

Required for Syntax 1 but not valid for Syntax 2.

[Drive:] [path] .inf

Necessary. Specify, by name, file to determine how the configuration is installed.

The parameter [Drive:] [path] is invalid for Syntax 1.

/ nf Specifies that the supported files should not be installed. / ni Assign that you should not create an icon on the screen. This parameter is only valid for computers running Windows 95, Windows 98, Windows NT 4.0 or Windows Millennium edition. / ns Specifies that the shortcut is not created on the screen. This parameter is only valid for computers that are running one of the operating systems that belong to the Windows Server 2003, Windows 2000, or Windows XP family. / s Specifies that the service configuration will be installed or uninstalled silently (without prompting user feedback or displaying verification messages). / su Specifies that the service configuration should be set for a single user instead of for all users. This parameter is only valid for computers that are running Windows Server 2003, Windows 2000, or Windows XP. / au Specifies that the service configuration should be installed for all users. This parameter is only valid for computers that are running Windows Server 2003, Windows 2000, or Windows XP. / u Specifies that the service configuration should be uninstalled. /? Show help at the command prompt.

Note

/ s is the only parameter you can use in conjunction with / u. Syntax 1 is the typical syntax used in a custom installation application. To use this syntax, you must run the cmstp command from the directory containing the .exe file .

For example

To install the Fiction service configuration without any support files, enter:

 fiction.exe /c:"cmstp.exe fiction.inf /nf" 

To silently configure the Fiction service for a user, enter:

 fiction.exe /c:"cmstp.exe fiction.inf /s /su" 

To silently uninstall the Fiction service configuration, enter:

 fiction.exe /c:"cmstp.exe fiction.inf /s /u" 

See more:

  1. Cmdkey command in Windows
  2. Color command in Windows
  3. Clip command in Windows
3.8 ★ | 5 Vote