Query status of Remote Desktop Access on local machine, command line

fDenyTSConnections key in registry is responsible about "turn on" or "turn off" remote desktop access on local machine.
0 - remote desktop is alowed
1 - remote desktop is not alowed

The UserAuthentication key in registry is responsible about security.
1 then secured mode is on.
0 then unsecured mode is on.

Extract sed.7z in directory where the bach file will have a good time:

And the code:
Or directly save "less secure" status to log file - set l=

No comments: