Ok, I’m new to powershell and I’m doing a basic task.
#creating a new collection of object - blank canvas
$debugIISObj = New-Object -TypeName psobject
#add new object
Add-Member -InputObject $debugIIS Obj -MemberType NoteProperty -Name “Status” -Value “NON-COMPLIANT”
Write-Output $debugIISObj
put it to an html format
$debugIISObj |ConvertTo-Html -Fragment -As List -PreContent "Debegug"
but I get this instead
*:NON-COMPLIANT
*:NON-COMPLIANT
It should be
Status: NON-COMPLIANT
what’s the problem with this?, why I’m getting this result?
simple scrit