Skip to content

Powershell script to change the theme color of TFS 2017 (useful and recommended only for test servers)

Notifications You must be signed in to change notification settings

leonjalfon1/TFS2017ThemeColorUpdater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TFS 2017 Theme Color Updater

Powershell script to change the theme color of TFS 2017 (useful and recommended only for test servers)

Welcome-Page Main-Page

General Description

The repository contain two scripts:

  • Tfs2017ThemeColorUpdater.ps1 - Update the current TFS theme colors
  • Tfs2017ThemeColorRestore.ps1 - Restore the TFS theme colors

Tfs2017ThemeColorUpdater.ps1

This script perform the following steps:

  1. Create a backup for the current theme (run only once - to backup the default theme)
  2. Update the ccs files (replace the current colors with the specified colors in all the css files)
  3. Restart the TFS server in order to apply the changes
  4. Note: If you delete the backup folder, you will not be able to restore the default values

Tfs2017ThemeColorRestore.ps1

This script perform the following steps:

  1. Restore the current theme with the backup created by the another script
  2. Restart the TFS server in order to apply the changes

Using

  • The scripts must be executed directly in the application tier with administrator privileges
  • All the parameters are optional and receive default values

Tfs2017ThemeColorUpdater.ps1

Parameters

CurrentPrimaryColor
  • Current color of the theme primary color
  • Default: #0078d7
CurrentSecondaryColor
  • Current color of the theme secondary color
  • Default: #106ebe
CurrentThirdColor
  • Current color of the theme third color
  • Default: #005a9e
NewPrimaryColor
  • New color for the theme primary color
  • Default: #e60000
NewSecondaryColor
  • New color for the theme secondary color
  • Default: #cc0000
NewThirdColor
  • New color for the theme third color
  • Default: #b30000
TfsPath
  • Team Foundation Server path (useful for non default TFS installations)
  • Default: "C:\Program Files\Microsoft Team Foundation Server 15.0"
AppThemesPath
  • 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"

Example:

.\Tfs2017ThemeColorUpdater.ps1 -NewPrimaryColor "#D7000C" -NewSecondaryColor "#AC000A" -NewThirdColor "#D7000C" 

Tfs2017ThemeColorRestore.ps1

Parameters

TfsPath
  • Team Foundation Server path (useful for non default TFS installations)
  • Default: "C:\Program Files\Microsoft Team Foundation Server 15.0"
AppThemesPath
  • 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"

Example:

.\Tfs2017ThemeColorRestore.ps1

Contributing

  • Please feel free to contribute, suggest ideas or open issues

About

Powershell script to change the theme color of TFS 2017 (useful and recommended only for test servers)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published