次の方法で共有


cmdkey

保存されたユーザー名とパスワードのほか、資格情報の作成、一覧表示、削除を行います。

Syntax

cmdkey [{/add:<targetname>|/generic:<targetname>}] {/smartcard | /user:<username> [/pass:<password>]} [/delete{:<targetname> | /ras}] /list:<targetname>

Parameters

Parameters Description
/add:<targetname> ユーザー名とパスワードを一覧に追加します。

<targetname> には、このエントリが関連付けられるコンピューターまたはドメイン名を識別するためのパラメーターが必要です。

/generic:<targetname> 汎用的な資格情報をリストに追加します。

<targetname> には、このエントリが関連付けられるコンピューターまたはドメイン名を識別するためのパラメーターが必要です。

/smartcard スマート カードから資格情報を取得します。 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> このエントリで格納するユーザー名またはアカウント名を指定します。 <username> が指定されていない場合は、要求されます。
/pass:<password> このエントリで格納するパスワードを指定します。 <password> が指定されていない場合は、要求されます。 パスワードは、保存された後は表示されません。
/delete:{<targetname> \| /ras} ユーザー名とパスワードを一覧から削除します。 <targetname> が指定されている場合、そのエントリが削除されます。 /ras が指定されている場合、保存されているリモート アクセス エントリが削除されます。
/list:<targetname> 保存されているユーザー名と資格情報の一覧を表示します。 <targetname> が指定されていない場合は、保存されているユーザー名と資格情報がすべて一覧表示されます。
/? コマンド プロンプトにヘルプを表示します。

Examples

保存されているすべてのユーザー名と資格情報の一覧を表示するには、次のように入力します。

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

リモート アクセスによって保存された資格情報を削除するには、次のように入力します。

cmdkey /delete /ras

To delete a credential stored for Server01, type:

cmdkey /delete:server01