tig / mcec

Robust remote control of Windows PCs over the network.
https://tig.github.io/mcec/
MIT License
80 stars 13 forks source link

Enabling Commands #17

Closed wayner9 closed 3 years ago

wayner9 commented 3 years ago

When you try to use MCE Controller you get a message like:

2020-12-20 23:40:52,508 INFO - Command: Attempt to execute a disabled command (ch-) 2020-12-20 23:40:52,511 INFO - As of MCE Controller v2.2.1 commands are disabled by default. 2020-12-20 23:40:52,513 INFO - Edit MCEControl.commands to enable commands (change `Enabled="false"' to 'Enabled="true"').

I didn't notice anything in the documentation about this. Why were all commands disabled? Presumably for security but by default nothing works and it seems kind of painful to go through and enable every command.

What's the easiest way to enable all commands? Do a replace('enabled="false"','enabled="true"') in the MCEControl.commands file or will that hose something else?

tig commented 3 years ago

Yes, it is for security. Sorry it’s a pita. It is documented here:

image

I remembered that I did SOMETHING to enable all of them.

image

So… open your .commands file and delete the “Version” attribute. Re-run MCE Controller.

image

Let me know if this works!

wayner9 commented 3 years ago

Thanks Charlie - that worked. But it gives a bit of a confusing message when it starts up:

"MCEControl.commads was created with a legacy version of MCE Controller. Converting it and enabling all commands it contains."

Shouldn't it say "Converting it will enable all commands that it contains."

tig commented 3 years ago

Thanks Charlie - that worked. But it gives a bit of a confusing message when it starts up:

"MCEControl.commads was created with a legacy version of MCE Controller. Converting it and enabling all commands it contains."

Shouldn't it say "Converting it will enable all commands that it contains."

No, I think the wording is correct as the log entry is describing what MCE Controller was actually doing:

Normally this code would only run if someone upgraded MCE Controller from a pre-whatever-version-didn't-have-version info.