For everyone that need a solution to this problem:
Make sure, you have the path to your registry (In my and most cases: C:\Windows\System32\ ) entry in your enviroment variables under Path: