https://git.reactos.org/?p=reactos.git;a=commitdiff;h=90c5cac72c361ad83df2384bb94963e8dcfbfac4

commit 90c5cac72c361ad83df2384bb94963e8dcfbfac4
Author:     Eric Kohl <[email protected]>
AuthorDate: Mon Oct 28 22:27:38 2019 +0100
Commit:     Eric Kohl <[email protected]>
CommitDate: Mon Oct 28 22:30:21 2019 +0100

    [BOOTDATA][INF] Run the Dnscache service on the NetworkService account
    
    CORE-12159
---
 boot/bootdata/hivesft.inf | 1 +
 media/inf/nettcpip.inf    | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/boot/bootdata/hivesft.inf b/boot/bootdata/hivesft.inf
index 3cbf73b7361..a2bd6fe4f88 100644
--- a/boot/bootdata/hivesft.inf
+++ b/boot/bootdata/hivesft.inf
@@ -1782,6 +1782,7 @@ 
HKLM,"SOFTWARE\Microsoft\Ole","EnableRemoteConnect",0x00000000,"N"
 HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\SvcHost",,0x00000012
 HKLM,"SOFTWARE\Microsoft\Windows 
NT\CurrentVersion\SvcHost","DcomLaunch",0x00010000,"DcomLaunch","PlugPlay"
 HKLM,"SOFTWARE\Microsoft\Windows 
NT\CurrentVersion\SvcHost","netsvcs",0x00010000,"DHCP","BITS","lanmanserver","lanmanworkstation","Schedule","Themes","W32Time","winmgmt","wuauserv"
+HKLM,"SOFTWARE\Microsoft\Windows 
NT\CurrentVersion\Svchost","NetworkService",0x00010000,"DnsCache"
 
 ; Win32 config
 HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows",,0x00000012
diff --git a/media/inf/nettcpip.inf b/media/inf/nettcpip.inf
index d179e9d0499..00202f73d12 100644
--- a/media/inf/nettcpip.inf
+++ b/media/inf/nettcpip.inf
@@ -282,12 +282,12 @@ Description   = "Service that caches local DNS queries"
 ServiceType   = 0x20
 StartType     = 2
 ErrorControl  = 1
-ServiceBinary = "%11%\svchost.exe -k netsvcs"
+ServiceBinary = "%11%\svchost.exe -k NetworkService"
 LoadOrderGroup = TDI
 AddReg=dns_AddReg
 
 [dns_AddReg]
-HKR,,"ObjectName",0x00000000,"LocalSystem"
+HKR,,"ObjectName",0x00000000,"NT AUTHORITY\NetworkService"
 HKR,"Parameters","ServiceDll",0x00020000,"%SystemRoot%\system32\dnsrslvr.dll"
 
 ;-------------------------------- STRINGS -------------------------------

Reply via email to