Your comments

Hey Dallas,

Can you please share the number of machines you interact with that have this requirement, the specific Windows OS, smart card provider, type of host connection (Access or Support session), and how you currently connect to these machines, I can get this in our backlog for future consideration.

Thanks!

Hello,

Control has the ability to integrate with Okta as described here: Set up Okta SAML - ConnectWise

Unfortunately, your scenario would not work out of the box. If the machines had a note or some other common field they could be grouped and then you could execute the command. 
That said, this may be possible with a custom extension and if it's something you will be doing often, it may be worth your time to create one, here are details on that program:

Create a private extension - ConnectWise

requests for a developer license must be sent to ctrlpm@connectwise.com.

Hi there,

This functionality already exists and is outlined here:
Run a command from the Host page - ConnectWise, you can multi-select machines, right click and choose Run Command or select Run Command from the session details column.

To make this easier you could put all of the machines in a session group and then do a Select All.

We added the ability for a guest on an access session to require consent, which can be invoked while a host is connected.

Here is a link to the documentation for this feature:
Enable a guest to require consent - ConnectWise

Please contact ControlSales@ConnectWise.com or call 919-532-0022 x1 for additional questions or for self-hosted options.

Makes sense. Best bet would be to put those machines that do need consent into a session group and then remove the HostSessionWithoutConsent for that session group.

Prompt for consent is the way to do this, you can then configure the timeout for auto-consent if there is either no user at the machine or the request is not acknowledged. 

Prompt guest for consent before connecting to a remote machine - ConnectWise
Automatically grant consent after a countdown - ConnectWise

Automatically grant consent if no user process is running - ConnectWise