In past Windows versions, it was possible to create a backup of the entire registry using Command Prompt via what was known as a RegBack folder. However, since Windows 10 version 1803 onwards (including Windows 11), that option is no longer available. This was done to reduce the overall disk size of the Windows operating system.
As the RegBack folder is not accessible, you cannot use the Command Prompt to create and restore registry backups. (You can use Command Prompt for other things, such as finding and opening files in Windows.) You can no longer view the contents of the Config folder due to security reasons, but there are other ways to take back full ownership of the Windows registry keys.