Desired Configuration Maintenance
To specify the service configuration on a server, you need to know the state each of the services should be in. Knowing which services should be running, stopped, or disabled is important, but it is only a small part of the process. You also need to know how they start, any dependencies they may have, and which logon account they utilize. It also makes sense to have a way to match the current running configuration with what you have documented. An easy way to do this is to run a script on a server that is running in the state you want to document. This can be the work station, the server you want to maintain, or some other server that has a similar configuration. To begin, select the name and the status of each ...
Get Windows PowerShell™ Scripting Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.