ivobauerjr Posted February 26, 2020 Posted February 26, 2020 Hi! I have a question about services. How can i get a info about "service start type"? I used a script Services.au3 where i got these values: $SERVICE_BOOT_START $SERVICE_SYSTEM_START $SERVICE_AUTO_START $SERVICE_DEMAND_START $SERVICE_DISABLED but i need to also get a Automatic (Delayed Start).. do you guys now how to get it? Thanks!
ivobauerjr Posted February 26, 2020 Author Posted February 26, 2020 I used this*: _Service_QueryStartType("TrkWks") But Automatic (Delayed Start) is missing.
Nine Posted February 26, 2020 Posted February 26, 2020 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\NameOftheServiceHere Property : DelayedAutoStart at 0x01 ivobauerjr 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
ivobauerjr Posted February 26, 2020 Author Posted February 26, 2020 Thanks a lot! If you set the service type to Automatic (Delayed Start) and then to Automatic, the value in DelayedAutoStart will be 0x00. I am smarter now. Thanks for fast reply, have a good day!!
FrancescoDiMuro Posted February 27, 2020 Posted February 27, 2020 (edited) @ivobauerjr Just for information, there's a WMI class which is called Win32_Service, from which you can query all the services information, as well as the StartMode, which is "clearly" wrote as a string, and not as a constant as it is returned by that function in Service.au3. There are a lot of examples about WMI object, which is really useful in various cases EDIT: In the Win32_ServiceClass, the DelayedAutoStart is a boolean, and not a StartMode. Edited February 27, 2020 by FrancescoDiMuro Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
Nine Posted February 27, 2020 Posted February 27, 2020 FYI, WMI has this field only in Win10. It won't work in Win7... FrancescoDiMuro 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
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