chaos945 Posted November 9, 2005 Share Posted November 9, 2005 (edited) While looking for an easy way to deploy predefined Service settings on Windows XP, I stumbled across a few interesting things in the registry. Firstly all service information is stored in: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\ServicesMost of us already know that by using Services.msc a service can be set to Automatic, Manual, or Disabled.But there are other service start values that I discovered such as Boot and System.After looking at my own services for a while I found this URL, which will give you an idea of what you would see if you looked into your own registry. Notice specifically the START type: Boot, System, and Automatic. I thought it was interesting how these services were not listed in Services.msc nor very well documented.So, here is the idea. Create a GUI tool that can read the registry for BOOT, SYSTEM, and normal visible services. Allow their "Start" value to be seen, the "DisplayName", the "Description", the "Group", and any other interesting keys. By doing this one could easily see and manage these services without pouring through the registry. I would also like to see a "recommended presets" option to easily allow preset "Start" values for common configurations to remove useless or harmful services. SC.exe could be integrated to uninstall services, see documentation by typing "sc /?" in command prompt.Example:[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\cbidf2k]"ErrorControl"=dword:00000001 ;I'm not sure about this, I didn't look into it, I assume it sets what to do if a service fails, may be interesting to include."Group"="SCSI miniport";perhaps allow services with the same "Start" parameter to be arranged by "Group" so you can see what is all running in a group."Start"=dword:00000004"Tag"=dword:00000019;I'm not sure about this, I didn't look into it. Notice the URL uses this TAG information, could be interesting."Type"=dword:00000001;I'm not sure about this, I didn't look into it. Could be ownership of service.Here is a list of the available "Start" parameters. Value = Startup Type 0 = boot 1 = system 2 = automatic 3 = manual 4 = disabledThere are more values than these for some services but, just as a start, enumerating this information would be very interesting and useful in developing a more complex program later on. Edited November 9, 2005 by chaos945 Link to comment Share on other sites More sharing options...
ptrex Posted November 9, 2005 Share Posted November 9, 2005 @chaos945Maybe you can reuse my Gui as a starting point.Run Au3 as a Windows ServiceNice informations though. Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New Link to comment Share on other sites More sharing options...
blitzkrg Posted November 9, 2005 Share Posted November 9, 2005 if you click on a service, you can set the starup type. boot, auto, system.. etc etc.. this has always been like this Link to comment Share on other sites More sharing options...
GaryFrost Posted November 9, 2005 Share Posted November 9, 2005 doesn't need to be done thru registry or msc, can be done from autoit (beta) using objects code extract form AdminTool Case $State = "Boot" Or $State = "System" Or $State = "Automatic" Or $State = "Manual" Or $State = "Disabled" $ret_status = $objItem.ChangeStartMode ($State) SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
chaos945 Posted November 9, 2005 Author Share Posted November 9, 2005 (edited) if you click on a service, you can set the starup type.boot, auto, system.. etc etc..this has always been like thisI don't know about your windows but on mine, XP Pro, all I can set in Services.msc is auto/manual/disable. And I can't even see boot or system services.I'd love to write this program but I don't have the time, just the time to post on fourms. A friend of mine wrote some test code, using beta.I'm still wanting to see: Description retrieval, a right-click or button to Start/Stop services, display options to show hide boot/system/normal services, a backup current services button, a undo current session (of changes) button (both of these would be nice in a menu), a presets selection to apply Start states to certain common services, and a create new service option.This is exactly what I was thinking. I hope it inspires some more thought on the matter.serviceadmin.au3serviceadmin.rar Edited November 9, 2005 by chaos945 Link to comment Share on other sites More sharing options...
blitzkrg Posted November 9, 2005 Share Posted November 9, 2005 I don't know about your windows but on mine, XP Pro, all I can set in Services.msc is auto/manual/disable. And I can't even see boot or system services.I'd love to write this program but I don't have the time, just the time to post on fourms. A friend of mine wrote some test code, using beta.I'm still wanting to see: Description retrieval, a right-click or button to Start/Stop services, display options to show hide boot/system/normal services, a backup current services button, a undo current session (of changes) button (both of these would be nice in a menu), a presets selection to apply Start states to certain common services, and a create new service option.This is exactly what I was thinking. I hope it inspires some more thought on the matter.hmm my xp box at work is like yours to..i know i've seen otherwise..perhaps it's my 2k3 server i'm thinking of? I'll check my xp box when i get home and see whats what Link to comment Share on other sites More sharing options...
blitzkrg Posted November 9, 2005 Share Posted November 9, 2005 hmm my xp box at work is like yours to..i know i've seen otherwise..perhaps it's my 2k3 server i'm thinking of? I'll check my xp box when i get home and see whats whati wonder if SP2 took those options away?i know i didnt dream that crap up.. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now