A. As I discussed in the FAQ "Q. How can I automatically display computer information on my desktop?", Sysinternals offers a free utility called BgInfo that displays configurable system information on your desktop wallpaper. To add local FSMO information to the BgInfo system information, perform the following steps:
- Open the script localsrvroles.vbs, which is presented in the FAQ "Q. How can I check the Flexible Single-Master Operation (FSMO) roles for the local server from the command line?".
- For the script to work in BgInfo, replace all instances of WScript.Echo with Echo and save the script.
- Start BgInfo (bginfo.exe).
- Click the Custom button, then click New.
- In the Identifier field, enter the identifier "FSMO Roles". Then, under "Replace identifier with," select "VB Script file," as this figure shows.
- Click Browse, navigate to the location of the localsrvroles.vbs file, then click Open.
- Click OK to close the Define New Field dialog box.
- Click OK to close the User Defined Fields dialog box.
- Select FSMO Roles from the Fields list, then click Add.
Now when you click OK to run BgInfo, the local FSMO roles appear on the desktop with the other system information. In this figure, notice that the domain controller (DC) doesn't hold any Schema or Domain Naming forest roles. The localsrvroles.vbs file and the server.bgi configuration file that I used to create the sample output are available at the URL above.