text
stringlengths
0
4.23k
Remarks
Services running on systems that aren't running the Windows operating system can be configured with service instance accounts in AD DS. This allows any Kerberos client to authenticate to services that are not running the Windows operating system by using Windows KDCs.
The /princ parameter isn't evaluated by ktpass and is used as provided. There's no check to see if the parameter matches the exact case of the userPrincipalName attribute value when generating the Keytab file. Case-sensitive Kerberos distributions using this Keytab file might have problems if there's no exact case matc...
ldifde /f keytab_user.ldf /d CN=Keytab User,OU=UserAccounts,DC=contoso,DC=corp,DC=microsoft,DC=com /p base /l samaccountname,userprincipalname
Examples
To create a Kerberos .keytab file for a host computer that isn't running the Windows operating system, you must map the principal to the account and set the host principal password.
Use the active directory User and computers snap-in to create a user account for a service on a computer that is not running the Windows operating system. For example, create an account with the name User1.
Use the ktpass command to set up an identity mapping for the user account by typing:
ktpass /princ host/User1.contoso.com@CONTOSO.COM /mapuser User1 /pass MyPas$w0rd /out machine.keytab /crypto all /ptype KRB5_NT_PRINCIPAL /mapop set
Note
You cannot map multiple service instances to the same user account.
Merge the .keytab file with the /Etc/Krb5.keytab file on a host computer that isn't running the Windows operating system.
label
Creates, changes, or deletes the volume label (that is, the name) of a disk. If used without parameters, the label command changes the current volume label or deletes the existing label.
Syntax
label [/mp] [<volume>] [<label>]
Parameters
Parameter
Description
/mp
Specifies that the volume should be treated as a mount point or volume name.
<volume>
Specifies a drive letter (followed by a colon), mount point, or volume name. If a volume name is specified, the /mp parameter is unnecessary.
<label>
Specifies the label for the volume.
/?
Displays help at the command prompt.
<volume>
<label>
Remarks
Windows displays the volume label and serial number (if it has one) as part of the directory listing.
An NTFS volume label can be up to 32 characters in length, including spaces. NTFS volume labels retain and display the case that was used when the label was created.
Examples
To label a disk in drive A that contains sales information for July, type:
label a:sales-july
To view and delete the current label for drive C, follow these steps:
At the command prompt, type:
label
Output similar to the following should be displayed:
Volume in drive C: is Main Disk
Volume Serial Number is 6789-ABCD
Volume label (32 characters, ENTER for none)?
Press ENTER. The following prompt should be displayed:
Delete current volume label (Y/N)?
Press Y to delete the current label, or N if you want to keep the existing label.
list providers
Lists shadow copy providers that are currently registered on the system.
Syntax
list providers
Examples
To list the currently registered shadow copy providers, type:
list providers
Output that is similar to the following displays:
* ProviderID: {b5946137-7b9f-4925-af80-51abd60b20d5}
Type: [1] VSS_PROV_SYSTEM
Name: Microsoft Software Shadow Copy provider 1.0
Version: 1.0.0.7
CLSID: {65ee1dba-8ff4-4a58-ac1c-3470ee2f376a}
1 provider registered.
list shadows
Lists persistent and existing non-persistent shadow copies that are on the system.
Syntax
list shadows {all | set <setID> | id <shadowID>}
Parameters
Parameter
Description
all