Good day,
I have a script that I utilize to add nodes to Solar Winds. In this script, I am able to add strings to "Comments" but for some reason, I can't add strings to "Custom_Comments".
I have this so far:
$nodeList+= [pscustomobject]@{caption = 'r' + $number + '-VSAT'; ipAddress = $Subnet + '.100'; deviceType = 'Modem'; department = 'Network'; district = $district; comment = 'Add "SDWAN" to Custom Comment' ; Type = $Type; community = "public"; pollType ='ICMP'}
foreach($node in $nodeList)
{
$customPropOptions = @{
District = $node.district
EKGDevice = 'Active'
Production_Server = 'N/A'
Number = $Number
Department = $node.department
DeviceType = $node.deviceType
Type = $node.Type
comment = $node.comment
I have attempted to execute this, but it doesn't seem to work.
$nodeList+= [pscustomobject]@{caption = 'r' + $number + '-VSAT'; ipAddress = $Subnet + '.100'; deviceType = 'Modem'; department = 'Network'; district = $district; Custom_comment = SDWAN ; Type = $Type; community = "public"; pollType ='ICMP'}
foreach($node in $nodeList)
{
$customPropOptions = @{
District = $node.district
EKGDevice = 'Active'
Production_Server = 'N/A'
Number = $Number
Department = $node.department
DeviceType = $node.deviceType
Type = $node.Type
Custom_comment = $node.Custom_comment
With this previous modifications, I keep getting this error:

I looked up the script for the web page, found this.

So I am a little confused on why I can add a normal comment, but not a Custom_Comment. Any suggestions?