Powershell script to change the theme color of TFS 2017 (useful and recommended only for test servers)
The repository contain two scripts:
- Tfs2017ThemeColorUpdater.ps1 - Update the current TFS theme colors
- Tfs2017ThemeColorRestore.ps1 - Restore the TFS theme colors
This script perform the following steps:
- Create a backup for the current theme (run only once - to backup the default theme)
- Update the ccs files (replace the current colors with the specified colors in all the css files)
- Restart the TFS server in order to apply the changes
- Note: If you delete the backup folder, you will not be able to restore the default values
This script perform the following steps:
- Restore the current theme with the backup created by the another script
- Restart the TFS server in order to apply the changes
- The scripts must be executed directly in the application tier with administrator privileges
- All the parameters are optional and receive default values
- Current color of the theme primary color
- Default: #0078d7
- Current color of the theme secondary color
- Default: #106ebe
- Current color of the theme third color
- Default: #005a9e
- New color for the theme primary color
- Default: #e60000
- New color for the theme secondary color
- Default: #cc0000
- New color for the theme third color
- Default: #b30000
- Team Foundation Server path (useful for non default TFS installations)
- Default: "C:\Program Files\Microsoft Team Foundation Server 15.0"
- Path of the App_Themes folder
- This folder path changes in each TFS version, use "auto" to find the path automatically
- Default: "auto"
- Example: "C:\Program Files\Microsoft Team Foundation Server 15.0\Application Tier\Web Services_static\tfs\Dev15.M125.1\App_Themes"
.\Tfs2017ThemeColorUpdater.ps1 -NewPrimaryColor "#D7000C" -NewSecondaryColor "#AC000A" -NewThirdColor "#D7000C"
- Team Foundation Server path (useful for non default TFS installations)
- Default: "C:\Program Files\Microsoft Team Foundation Server 15.0"
- Path of the App_Themes folder
- This folder path changes in each TFS version, use "auto" to find the path automatically
- Default: "auto"
- Example: "C:\Program Files\Microsoft Team Foundation Server 15.0\Application Tier\Web Services_static\tfs\Dev15.M125.1\App_Themes"
.\Tfs2017ThemeColorRestore.ps1
- Please feel free to contribute, suggest ideas or open issues