Enabling metrics (Windows only)
This article will help users to enable metrics in Windows if for some reason it has been disabled. Possible reasons for disabled metrics can be — third-party Windows builds, Windows optimization software installed.
IMPORTANT: All methods in this article are performed at your own risk. The MoonTrader development team is not responsible. All responsibility rests with you. This article is only a translation of a third-party article (link) to an understandable instruction for the average Windows user.
All actions must be performed in the command line (console). To do this, click «Start» and search for «cmd», then MUST run the command line in Administrator mode — to do this, right-click on «command line» and select «run as administrator».
Now you need to enter commands in order and after each command press Enter. If at any stage you get an error, you most likely started the command line NOT as an administrator. In this case, close the console and do it all over again.
The following will be the commands and the example image in sequence.
Reg query HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PerfProc\Performance /s
![](https://blog2.moontrader.com/wp-content/uploads/2022/12/Screenshot_4.png)
Reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PerfProc\Performance /v «Disable Performance Counters» /t REG_DWORD /d 0
![](https://blog2.moontrader.com/wp-content/uploads/2022/12/Screenshot_5-2.png)
cd c:\windows\system32
lodctr /R
![](https://blog2.moontrader.com/wp-content/uploads/2022/12/Screenshot_6-3.png)
cd c:\windows\sysWOW64
lodctr /R
![](https://blog2.moontrader.com/wp-content/uploads/2022/12/Screenshot_7-2.png)
c:\windows\system32\wbem\winmgmt.exe /resyncperf
![](https://blog2.moontrader.com/wp-content/uploads/2022/12/Screenshot_8-2.png)
Information! Next, when entering commands, you may be asked to confirm the action, for this you need to change the keyboard layout to English and enter «Y» without quotation marks and press Enter.
net stop pla
net start pla
net stop winmgmt
net start winmgmt
After net start pla and net start winmgmt commands, a successful start notification should appear.
If you did everything correctly when entering the commands, you can now start MoonTrader and check the connection, if the problem was in the disabled metric, it should work. If there is still no connection, then restart your PC.
If after doing all these steps and restarting your PC you can’t connect to MoonTrader, there is most likely another problem. You can ask for help in the MoonTrader Support Telegram Chat (go to). Beforehand add to archive kernel logs, they are in folder «MoonTrader/logs/core/», select all, then right click and Send —> Compressed ZIP-folder. In the chat, describe your problem in detail and attach the log files.