Skip to main content

Manage Unknown ScreenConnect Client [Macintosh]

Overview

This automation audits all installed ScreenConnect Client instances on MacOS and compares them against approved identifiers.

Approved identifiers can come from:

Monitoring behavior is controlled by cPVAL Unknown ScreenConnect Monitoring:

  • Audit Only
  • Audit and Alert
  • Autofix and Alert on Failure

During each run, the automation updates:

If cPVAL Unknown ScreenConnect Monitoring is blank, the automation defaults to Audit Only.

If both Allowed Instances and cPVAL Whitelisted ScreenConnect Instances are blank, no instances are considered approved.

Related automation:

Related Compound Conditions:

Sample Run

Example 1: Audit only with empty whitelist

Image2

Expected Outcome: All detected ScreenConnect instances are marked unknown. cPVAL Unknown ScreenConnect Installed is checked. No removal and no alert exit.

Example 2: Audit and alert with partial whitelist

Image2

Expected Outcome: Approved rows show Whitelisted and unknown rows show Unknown. Alert output is returned and the script exits non-zero if any unknown instance exists.

Example 3: Autofix with custom field whitelist

Image2

Expected Outcome: Unknown instances are targeted for uninstall, then the device is re-audited. cPVAL Installed ScreenConnect Instances is updated with post-remediation results. Alert output occurs only if unknown instances remain.

Example 4: Autofix with runtime override

Image8

Expected Outcome: Allowed Instances overrides the blank custom field. Matching instances are preserved, and non-matching instances are targeted for uninstall.

Example 5: What-if preview before enforcement

Image9

Expected Outcome: No uninstall or cleanup occurs. Output shows detailed logs and what would be removed. cPVAL Installed ScreenConnect Instances is updated with WhatIf action text.

Dependencies

Parameters

NameExampleAccepted ValuesRequiredDefaultTypeDescription
Allowed Instancesc6bd08847e48343e,7df67d57637499f5Comma-separated identifiersNoblankString/TextOptional runtime list of approved identifiers. When set, it overrides cPVAL Whitelisted ScreenConnect Instances.
Debug Modetruetrue/false, 1/0, yes/no, on/offNoblankCheckboxEnables additional debug logging only. Does not change detection, alerting, or remediation logic.
What If Modetruetrue/false, 1/0, yes/no, on/offNoblankCheckboxDry-run mode for autofix. Shows what would be removed without uninstalling or deleting anything.

Custom Fields

Custom FieldField NameScopeTypeAccessUsed As
cPVAL Unknown ScreenConnect MonitoringcpvalUnknownScreenconnectMonitoringOrganization, Location, DeviceDrop-downReadSelects enforcement mode for audit, alerting, and remediation behavior.
cPVAL Whitelisted ScreenConnect InstancescpvalWhitelistedScreenconnectInstancesOrganization, Location, DeviceTextReadStores approved ScreenConnect identifiers used for allowlist matching.
cPVAL Installed ScreenConnect InstancescpvalInstalledScreenconnectInstancesDeviceWYSIWYGWriteStores current-run details for detected instances, status, actions, and timestamps.
cPVAL Unknown ScreenConnect InstalledcpvalUnknownScreenconnectInstalledDeviceCheckboxWriteSet to checked when any unknown instance is detected in the current scan.

Available Options and Behavior

cPVAL Unknown ScreenConnect Monitoring (Drop-down)

OptionBehavior
Audit OnlyAudits installed instances and updates custom fields only. No remediation and no alert failure exit.
Audit and AlertAudits and updates custom fields. Returns alert output and non-zero exit when unknown instances are detected.
Autofix and Alert on FailureAttempts uninstall of unknown instances, re-audits, updates custom fields, and alerts only when unknown instances remain.

If this field is blank or invalid, the script uses Audit Only.

cPVAL Unknown ScreenConnect Installed (Checkbox)

ValueMeaning
1 (checked / true)One or more unknown ScreenConnect instances were detected in the latest run.
0 (unchecked / false)No unknown ScreenConnect instances were detected in the latest run.

cPVAL Installed ScreenConnect Instances WYSIWYG Columns

Column NameDescription
NameDetected installed ScreenConnect Client display name.
DisplayVersionInstalled version from uninstall registry details when available.
InstallDateInstall date normalized to yyyy-MM-dd when parseable.
Whitelist StatusWhitelisted when identifier match is found; Unknown otherwise.
Action / ResultAudit-only status, remediation attempt result, or post-remediation verification status.
DataCollectionTimeTimestamp when the report row was generated for the current script phase.

Automation Setup/Import

Automation Configuration

Output

Changelog

2026-04-09

  • Initial version of the document