Scan configuration Cmdlet does not display Scan configuration parameters

CLOUD ON-PREMISES

Applies to Gizmo 2.0

This article describes how to display Scan configuration parameters when it contain an array of nested list objects.

Symptoms

When getting parameters from a Scan Configuration by running the Get-GsxScanConfiguration cmdlet, the values of the array are empty even though there are.

Problem

The values of the array are empty even though there are.

Solution

You need to use the following workaround.

  • Enter the following command:

$ChecksWhereToIgnoreDatabases = $Params.ChecksWhereToIgnoreDatabases
  • To see the list of ChecksWhereToIgnoreDatabases, you need to use the -join operator entering the following command:

$ChecksWhereToIgnoreDatabases -Join "`n"