In Windows 10 Xbox Game Bar is useful to do screen recording. Unfortunately, it can't capture some programs, such as the entire desktop, File Manager but it does work desktop apps.
Steps:
1) Type the word Xbox Game Bar in search box of Windos 10 or you can use short cut Windows and G at the same time to open it.
2) Click the Capture button in the application to start the recording
3) Click the red recording button to stop the recording. This will be on the top right of the window. ( If it disappears you use Windows + G)
4) The recorded videos will be sahred in the Videos folder ( i.e ex C:\Users\yourusername\Videos\Captures)