Skip to content

updated#798

Open
OvaisRashid08 wants to merge 1 commit into
mainfrom
origin-script-new-remote-control-tools-audit
Open

updated#798
OvaisRashid08 wants to merge 1 commit into
mainfrom
origin-script-new-remote-control-tools-audit

Conversation

@OvaisRashid08

Copy link
Copy Markdown
Collaborator

Hello Rajni

Bug Reported/Enhancement:

Enhancement: The existing "Installed Remote Tool Audits" solution only stored data in a WYSIWYG Custom Field. Partners requested an additional Multi-Line Text Custom Field to store only the tool names, as WYSIWYG fields cannot be used in Ninja dynamic groups or exported.

Resolution:
Modified the PowerShell script to extract the names of the detected remote access tools and write them as a newline-separated list to a new Multi-Line Text Custom Field, while preserving the original detailed HTML table in the WYSIWYG field.

What steps were changed in the content

Step 1 (Variable Initialization): Added a new variable at the top of the script: $OutputMultiLineField = 'cpvalDetectedRemoteToolNames' to define the target Multi-Line Text field.
Step 2 (Data Publishing Logic): Added a new if/else block inside the existing #region Set Ninja Custom Field section at the bottom of the script. This new block filters the $activeRemoteAccessTools array to extract only the Name property, joins them with a carriage return/newline ("rn"), and uses Ninja-Property-Set to write to the new field. If no tools are detected, it sets the field value to $null to keep it clean.

@OvaisRashid08
OvaisRashid08 requested a review from Rj98-sh July 23, 2026 15:57
@OvaisRashid08 OvaisRashid08 self-assigned this Jul 23, 2026
@OvaisRashid08 OvaisRashid08 added the enhancement New feature or request label Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant