Postagens

Mostrando postagens de dezembro, 2017

How to resolve "The trust relationship between this workstation..."

How to resolve "The trust relationship between this workstation and the primary domain failed" # Enter a Command Prompt (Local admin) C:\> netdom.exe resetpwd /s:<server> /ud:<username> /pd:* Where: <server> = a domain controller in the joined domain <user> = DOMAIN\User format with rights to change the computer password # Powershell Reset-ComputerMachinePassword [-Credential <PSCredential>] [-Server <String>]

Change TFS Database to other server

To change TFS Database to other server: # Preview Note: You can use the /preview at the end to display the actions that you must take to update the configuration. This just shows a preview of what is to be done. # Stop IIS/TFS iisreset /stop -> Stop IIS net stop TfsJobAgent -> Stop TFS Job Agent # Backup SQL Databases # Restore SQL Databases # Prepare SQL Server for Team Foundation Server - For Old versions TFSConfig PrepSQL /SQLInstance: ServerName\InstanceName # Remap DB to other server   TFSConfig RemapDBs /DatabaseName:ServerName\ Instance;Tfs_Configuration /SQLInstances:ServerName\ Instance # Change the Ownership of the Restored Databases TFSConfig Accounts /ResetOwner /SQLInstance:ServerName\ Instance /DatabaseName:Database # Register the Location of the Restored Databases if You Are Not Restoring the Application Tier TfsConfig registerDB /SQLInstance:ServerName\ Instance /DatabaseName:Database # Start IIS