[SOLVED] Server 2019 TermServLic Service won´t start after windowsupdate

Rich (BB code):
Schlüssel kann nicht in Kryptografie importiert werden. Fehler 5.
Kryptografie kann nicht initialisiert werden - Fehlercode 5.
It seems there is a problem with the permissions of the following directory: C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys
What is the result of the following command:
Code:
icacls "C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys"
 
C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys Everyone:(OI)(CI)(RX)
Everyone:(R,W)
VORDEFINIERT\Administratoren:(F)

1 Dateien erfolgreich verarbeitet, bei 0 Dateien ist ein Verarbeitungsfehler aufgetreten.

Looks good for me.
 
It seems the following permissions are missing?
Code:
NT AUTHORITY\System:
NT AUTHORITY\NetworkService:

In this post at GitHub, Microsoft published this script to reset the permissions for that folder.

Rich (BB code):
md c:\temp
icacls C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys /t /c > c:\temp\BeforeScript_permissions.txt 
takeown /f "C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys" /a /r
icacls C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys /t /c /grant "NT AUTHORITY\System:(F)"
icacls C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys /t /c /grant "NT AUTHORITY\NETWORK SERVICE:(R)"
icacls C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys /t /c /grant "BUILTIN\Administrators:(F)"
icacls C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys /t /c > c:\temp\AfterScript_permissions.txt
 
Maxstar, you are great, thanks a lot. It worked. :-)

md c:\temp
icacls C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys /t /c > c:\temp\BeforeScript_permissions.txt Succeed
takeown /f "C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys" /a /r Succeed
icacls C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys /t /c /grant "NT AUTHORITY\System:(F)" Succeed

icacls C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys /t /c /grant "NT AUTHORITY\NETWORK SERVICE:(R)"
Mappings of account names and security identifiers were not performed.

icacls C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys /t /c /grant "BUILTIN\Administrators:(F)"
Mappings of account names and security identifiers were not performed.

BUT

the RDS Services starts without errors.

I feel happy.

Thank you, thank you, thank you
 
You're welcome and thank you for your kind words! Glad to hear resetting the permissions has fixed this issue.
I'll mark this thread as solved.
 
Last edited:

Has Sysnative Forums helped you? Please consider donating to help us support the site!

Back
Top