Home

Registry Service Image Path

%3CLINGO-SUB%20id%3D%22lingo-sub-366705%22%20slang%3D%22en-US%22%3ERegistry%20Service%20Image%20Path%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-366705%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20software%20includes%20a%20service%20created%20using%20Windows%20functions%20(OpenSCManager%20and%20CreateService)%2C%20named%20%22MyService%22.%3C%2FP%3E%3CP%3EOnce%20the%20service%20is%20created%2C%20registry%20key%20in%20HKLM%20(HKEY_LOCAL_MACHINE%5CSYSTEM%5CCurrentControlSet%5CService%5CMyService)%20targets%20the%20binary%20file%20using%20name%20%22ImagePath%22%20with%20type%20%22REG_EXPAND_SZ%22.%20And%20the%20value%20contains%20%22%25SystemRoot%25%20environment%20variable.%3C%2FP%3E%3CP%3EAt%20this%20point%2C%20the%20service%20works%20fine.%3C%2FP%3E%3CP%3EAfter%2019H1%20upgrade%20(version%2018353)%2C%20the%20service%20is%20not%20launched%20anymore.%20In%20registry%2C%20the%20name%20%22ImagePath%22%20has%20been%20changed%20and%20now%20uses%20type%20%22REG_SZ%22.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhy%20the%2019H1%20upgrade%20change%20the%20registry%20data%20type%20for%20services%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%2C%3C%2FP%3E%3CP%3EMickael.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Mickael11
New Contributor

Hello,

 

My software includes a service created using Windows functions (OpenSCManager and CreateService), named "MyService".

Once the service is created, registry key in HKLM (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Service\MyService) targets the binary file using name "ImagePath" with type "REG_EXPAND_SZ". And the value contains "%SystemRoot% environment variable.

At this point, the service works fine.

After 19H1 upgrade (version 18353), the service is not launched anymore. In registry, the name "ImagePath" has been changed and now uses type "REG_SZ".

 

Why the 19H1 upgrade change the registry data type for services?

 

Regards,

Mickael.

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
35 Replies
Extentions Synchronization
ChirmyRam in Discussions on
3 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
9 Replies