I am in the process of deploying a fairly large TS Server Farm with Windows Server 2008. You probably know that in 2008, you have roles and features that can be added to the Operating System. In fact, PowerShell shows up as a feature in 2008.
All of these roles and features are managed through an MMC called ServerManager. It’s fairly intuitive to add or remove roles and features using this tool. There is also a command line version called servermanagercmd.
I just started playing with this and you can use servermanagercmd to install or remove roles, and you can also use it to query what is installed. The cool thing about the query feature is that it can dump it to an XML file.
So check this out
Their is also input functionality built into the tool and I am sure that this is reversible. I’ll keep you posted on how that goes.