Reason
This happens because you haven’t yet logged on locally on the server and you are launching a gpresult
command in a PSSession.
Solution
Just logon once interactively in a RDP session on the target computer and you will be able to launch the gpresult
command in a PSSession without this error.