Partilhar via


Cmstp

 

Applies To: Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows 8

Installs or removes a Connection Manager service profile. Used without optional parameters, cmstp installs a service profile with default settings appropriate to the operating system and to the user's permissions. For examples of how this command can be used, see Examples.

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

Parameter

Description

< ServiceProfileFileName >.exe

Specifies, by name, the installation package that contains the profile that you want to install.

Required for Syntax 1 but not valid for Syntax 2.

/q:a

Specifies that the profile should be installed without prompting the user. The verification message that the installation has succeeded will still appear.

Required for Syntax 1 but not valid for Syntax 2.

[Drive:][Path] <ServiceProfileFileName>.inf

Required. Specifies, by name, the configuration file that determines how the profile should be installed.

The [Drive:][Path] parameter is not valid for Syntax 1.

/nf

Specifies that the support files should not be installed.

/ni

Specifies that a desktop icon should not be created. This parameter is only valid for computers running Windows 95, Windows 98, Windows NT 4.0, or Windows Millennium Edition.

/ns

Specifies that a desktop shortcut should not be created. This parameter is only valid for computers running a member of the Windows Server 2003 family, Windows 2000, or Windows XP.

/s

Specifies that the service profile should be installed or uninstalled silently (without prompting for user response or displaying verification message).

/su

Specifies that the service profile should be installed for a single user rather than for all users. This parameter is only valid for computers running a Windows Server 2003, Windows 2000, or Windows XP.

/au

Specifies that the service profile should be installed for all users. This parameter is only valid for computers running Windows Server 2003, Windows 2000, or Windows XP.

/u

Specifies that the service profile should be uninstalled.

/?

Displays Help at the command prompt.

Remarks

/s is the only parameter that you can use in combination with /u.

Syntax 1 is the typical syntax used in a custom installation application. To use this syntax, you must run cmstp from the directory that contains the <ServiceProfileFileName>.exe file.

Examples

To install the Fiction service profile without any support files, type:

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

To silently install the Fiction service profile for a single user, type:

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

To silently uninstall the Fiction service profile, type:

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

Additional references