'How to resolve PSRemoting error with powershell 7.2.1?

I have problem when trying to use Powershell when remoting seesion:

$PSSessionConfigurationName = 'Powershell.7.'

Enter-PSSession -ComputerName MyHostname

When i try these command this error appears :

C:\Windows\system32\Powershell\7.2.1\pwrshplugin.dll is not loaded. (with some stuff)

But this file really exists, os win server 2012 r2

Help please



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source