TfsConfig identities /change /fromdomain: /todomain: /account: /toaccount: /sqlInstance: /databaseName: /usesqlalwayson Changes ...

TfsConfig identities /change /fromdomain: /todomain: 
                               [/account: [/toaccount:]]
                               [/sqlInstance: 
                                /databaseName:]
                               [/usesqlalwayson]
                               
            Changes SIDs of Windows identities. Command will apply to all
            identities from domain D1 where matching account exists in target 
            domain D2 (for local accounts, the computer name must be specified
            as the domain).

            When the optional account parameter is included, command will only 
            apply to that account. For this case of a single account, a 
            different target account name can also be specified. 

            The command optionally accepts database connection parameters,
            which can be used to run the command even before configuring the
            application tier (for example, to switch the service account on
            a cloned server). The sql instance and database name should point
            to the configuration database.

TfsConfig identities [/account:]
                     [/sqlInstance: 
                      /databaseName:]
                     [/usesqlalwayson]
            List status of Windows identities in Team Foundation. When the 
            optional account parameter is included, only identities with 
            matching account names will be listed.

            The command optionally accepts database connection parameters,
            which can be used to run the command even before configuring the
            application tier. The sql instance and database name should point
            to the configuration database.

            The UseSqlAlwaysOn option should be used if your databases are
            on a Sql Server High Availability AlwaysOn Availability Group.  
            This option sets MultiSubnetFailover in the connection string.