text
stringlengths
0
4.23k
/add:<targetname>
Adds a user name and password to the list.Requires the parameter of <targetname> which identifies the computer or domain name that this entry will be associated with.
/generic:<targetname>
Adds generic credentials to the list.Requires the parameter of <targetname> which identifies the computer or domain name that this entry will be associated with.
/smartcard
Retrieves the credential from a smart card. If more than one smart card is found on the system when this option is used, cmdkey displays information about all available smart cards, and then prompts the user to specify which one to use.
/user:<username>
Specifies the user or account name to store with this entry. If <username> isn't supplied, it will be requested.
/pass:<password>
Specifies the password to store with this entry. If <password> isn't supplied, it will be requested. Passwords are not displayed after they're stored.
/delete:{<targetname> \| /ras}
Deletes a user name and password from the list. If <targetname> is specified, that entry is deleted. If /ras is specified, the stored remote access entry is deleted.
/list:<targetname>
Displays the list of stored user names and credentials. If <targetname> isn't specified, all stored user names and credentials are listed.
/?
Displays help at the command prompt.
<targetname>
Requires the parameter of <targetname> which identifies the computer or domain name that this entry will be associated with.
<targetname>
<targetname>
Requires the parameter of <targetname> which identifies the computer or domain name that this entry will be associated with.
<targetname>
<username>
<username>
<password>
<password>
{<targetname> \| /ras}
<targetname>
/ras
<targetname>
<targetname>
Examples
To display a list of all user names and credentials that are stored, type:
cmdkey /list
To add a user name and password for user Mikedan to access computer Server01 with the password Kleo, type:
cmdkey /add:server01 /user:mikedan /pass:Kleo
To add a user name and password for user Mikedan to access computer Server01 and prompt for the password whenever Server01 is accessed, type:
cmdkey /add:server01 /user:mikedan
To delete a credential stored by remote access, type:
cmdkey /delete /ras
To delete a credential stored for Server01, type:
cmdkey /delete:server01
cmstp
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
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.
Syntax
Syntax 1 - This 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.
<serviceprofilefilename>.exe
<serviceprofilefilename>.exe /q:a /c:cmstp.exe <serviceprofilefilename>.inf [/nf] [/s] [/u]
Syntax 2
cmstp.exe [/nf] [/s] [/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 isn't valid for Syntax 1.
/nf
Specifies that the support files should not be installed.
/s
Specifies that the service profile should be installed or uninstalled silently (without prompting for user response or displaying verification message). This is the only parameter that you can use in combination with /u.
/u
Specifies that the service profile should be uninstalled.