Home » Microsoft Operations Manager 2005 » Check regkey and service startup mode


Welcome to contoso.se! My name is Anders Bengtsson and this is my blog about Azure infrastructure and system management. I am a senior engineer in the FastTrack for Azure team, part of Azure Engineering, at Microsoft.  Contoso.se has two main purposes, first as a platform to share information with the community and the second as a notebook for myself.

Everything you read here is my own personal opinion and any code is provided "AS-IS" with no warranties.

Anders Bengtsson

MVP awarded 2007,2008,2009,2010

My Books
Service Manager Unleashed
Service Manager Unleashed
Orchestrator Unleashed
Orchestrator 2012 Unleashed
Inside the Microsoft Operations Management Suite

Check regkey and service startup mode

Last week me and some friends found a strange mismatch with a server that has remote desktop enable and the terminal service application computer group. I have done a script that will check a regkey (not the one in this example) and a service startup type. If the startup type is not auto, the script will change it and generate a information event in the local event viewer. It is a little bit strange script, but I am sure someone more that us can use it 🙂

The event that is generated in the local event viewer has event id 0 and the type is information

Unfortunately my WordPress theme dont really like long lines in scripts, so I have uploaded it as a file instead. You can download it here

1 Comment

Comments are closed.