Registry Key Service Startup Type

0 views
Skip to first unread message

Chanelle Glugla

unread,
Aug 5, 2024, 10:34:27 AM8/5/24
to stacevsenni
Viathe registry you won't be able to tell what state a service is currently in, only it's start-up mode setting (manual, automatic, disabled, etc.). This will be held in a key named "Start" within the service's branch in the registry.

Using Set-Service, I'm able to change the StartType of my services between the accepted values of Boot, System, Automatic, Manual, Disabled. Using services.msc, I'm able to set some services to startup with a Priority of Automatic (Delayed Start). However, Get-Service still reports these delayed-start services as StartType : Automatic, and Set-Service errors out when attempting to set these values.


In my application, I need to fetch the details of services using the wmi32 service class. In this document, it is mentioned that the property DelayedAutoStart is only supported for Windows Server 2016 and Windows 10. I need to fetch the same for other OS too. Is there any way to find theAutomatic (Delayed Start) in the registry for lower Windows version?


I would like to disable service programmatically through registry. To do that, I modify the following registry key : Computer\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\SensorDataService\Start, where I set its value 0x4 which corresponds to disabled state. Now, when I check service in Windows Service Manager - it's reported as disabled and I can't start it.


I was able to reproduce this, and to make it work with the plain registry change for service with name "SensorDataService" as you want Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SensorDataService\Start and then change the value to 0x4 which indeed means disabled, then you have to restart your computer and then the exception you want is thrown when you start the service from code.


When one changes it by hand in the Services GUI, I assume they call Service Control Manager and it changes the registry entry and also something internal like in memory cache or creates some file somewhere, if you are able to reload it maybe restart is not necessary.


The HKLM\SYSTEM\CurrentControlSet\Services registry tree stores information about each service on the system. Each driver has a key of the form HKLM\SYSTEM\CurrentControlSet\Services\DriverName.


The PnP manager passes this path of a driver in the RegistryPath parameter when it calls the driver's DriverEntry routine. A driver can store global driver-defined data under the Parameters subkey of its key in the Services tree using an AddReg directive in the driver's INF file. To access that key at runtime, a WDM driver should use IoOpenDriverRegistryKey with a DRIVER_REGKEY_TYPE of DriverRegKeyParameters and a WDF driver should use WdfDriverOpenParametersRegistryKey. Information that is stored under this key is available to the driver during its initialization.


ImagePath

A value entry that specifies the fully qualified path of the driver's image file. Windows creates this value by using the required ServiceBinary entry in the driver's INF file. This entry is in the service-install-section referenced by the driver's INF AddService directive.


Parameters

A key that is used to store driver-specific data. For some types of drivers, the system expects to find specific value entries. You can add value entries to this subkey using AddReg directives in the driver's INF file.


Performance

A key that specifies information for optional performance monitoring. The values under this key specify the name of the driver's performance DLL and the names of certain exported functions in that DLL. You can add value entries to this subkey using AddReg directives in the driver's INF file.


It involves editing the registry, but service information can be found in HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services. Find the service you want to redirect, locate the ImagePath subkey and change that value.


"C:\xampp\apache\bin\httpd.exe" -k runservice foe XAMPP for others point to the location where Apache is installed and inside locate the bin folder "C:(Apache installed location)\bin\httpd.exe" -k runservice


Step 3: Locate the service you want to modify and click on it. On theright-hand side, you will find all the metadata properties for theservice, including the ImagePath. Right-click on the ImagePathmetadata property, and you can edit the path in the Value data field.


The dependent services of the Netlogon service have been changed from the default values and are not properly configured. You may be unable to access some network resources on the computer because the Netlogon service is not started.


This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, see How to back up and restore the registry in Windows.


It is having a hard time talking to the domain controller. DNS is right? Gateway is right? Dual nic cards plugged in but not teamed properly? IF you manually restart the NLA service does it automatically change to DOMAIN?


Also might be worth checking your network card driver and/or firmware version. Update as needed. If the machine is legitimately having an issue with network connectivity, that could cause the issue as well.


okay so i have added the DNS suffix in the network adapter, changed nlasvc to delayed start, put the DNS suffix in my group policy, made sure that my DNS suffix in my registry matches correctly to the one in my network adapter, created the dependency for the nlasvc to work with netlogon, and i have changed the network profile category to a 2 in my registry. None of these have worked for me. I could write a script to restart the adapter at startup i suppose but I was wondering if anyone else has done something that works that i havent tried yet. None of the changes survive the reboot, it reverts back to the private network instead of the domain network


Is it really this hard to resolve the hard block that is probably one or two if statements to allow either the GPO to take Domain, or the -NetworkCategory to take Domain (So you could at least run a script to fix it as the other alternative. Restart-Service nlasvc -Force only fixes it 90% of the time, sometimes disable/re-enable of the adapter is required)


I have tracked down the VT which attempts to start the remote registry service. The logic of the NASL script is sound, but the part which tells the server to start the remote registry service apparently never gets executed. I verified this because I expect an impacket call to be executed during this VT but it never runs.


I am using windows 7 in security mode with network I can not use common mode so I wanted to know how to start the driver in that mode somehow..adding key in the registry or something like that thanks!


Theoretically, you could tinker with the start type, so that NPF looks like an essential driver to Windows. Personally, I think this is a bad idea. It could leave your system unbootable to a point that you require a reinstallation.


NPF certainly requires a driver for the network card. There might be other dependencies, like NDIS or some mini driver. I don't know, if NPF has error handling for such harsh and unexpected conditions. One of the developers might be able to add a few details.


Often, a program starts automatically because of a shortcut in the Startup folder in the Start menu. The program may also run automatically from a registry entry. To remove programs from automatic startup, follow these instructions in order. After completing each set of steps, reboot your device to see if the problem is fixed. If necessary, you can then continue to the next set of instructions.


Some startup items have no shortcut in the Startup folder. You can disable these with either the Startup apps/tasks tool in Settings or the Task Manager. Otherwise, they are only accessible through the registry. If you are unfamiliar or uncomfortable with registry editing, use these utilities.


First, you need to open the registry editor. To do this, press the Windows key (the one with the emblem) + R on the keyboard, and in the Run window that appears, type regedit and press Enter or Ok.


There are other sections related to automatically loaded components, but we will not touch them: all the programs that can slow down the system, make the computer boot too long and just unnecessary, you will find it in these two sections.


The parameter name usually (but not always) corresponds to the name of the automatically launched program, and the value is the path to the executable program file. If you wish, you can add your own programs to the autoload or delete what is not needed there.


Schema Registry provides a centralized repository for managing and validating schemas for topic message data, and for serialization and deserialization of the data over the network.Producers and consumers to Kafka topics can use schemas to ensure data consistency and compatibility as schemas evolve. Schema Registry is a key component for data governance,helping to ensure data quality, adherence to standards, visibility into data lineage, audit capabilities, collaboration across teams, efficient application development protocols, and system performance.


Schema Registry is a key component of Stream Governance,available in Essentials and Advanced Stream Governance packages,and a premium feature of self-managed Confluent Platform that provides a centralizedrepository for managing and validating schemas used in data processing andserialization (into and out of binary format). As an event based system,Confluent brokers uses Schema Registry to intelligently transfer Kafka topic message dataand events between producers and consumers.

3a8082e126
Reply all
Reply to author
Forward
0 new messages