updated#798
Open
OvaisRashid08 wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.