Friday, March 5, 2010

Configuring Services Startup Type from the Command Line

After installing a custom image using MDT2010 I noticed that aero was not enabled for my theme. In my task sequence I added the following command to run the Windows System Assessment Tool (Winsat)

winsat formal

This did not work and Aero still was not enabled.
To resolve the issue I found that the Desktop Window Manager service was not started and was set to manual. After starting the service, Aero was there in all its transparent beauty!

To have this happen during the build I added the following commands to the task sequence which start the service and set the service startup to automatic.

net start uxsms

Net can be used to start and stop a service but not to change the startup type of a service. To do so you must use the following command:

sc config start=

The values that can be used for mode are
auto: Automatically start the service
boot: Start service as a device driver loaded by the boot loader
demand: Manually start the service
disabled: Disable the service from running
system: Start a service during kernel initialization

For example,

sc config uxsms start= auto

No comments:

Post a Comment