i have the following code , is output the RSOP XML value to CSV:
$a=@{ 'name' =$xmldoc.rsop.ComputerResults.ExtensionData.Extension.SecurityOptions.Display | Where {$_.Name -eq "Interactive logon: Message text for users attempting to log on" }| Select -expand "DisplayStrings" | Select -expand Value } $a |export-CSV b.csv
as expected, the output not what i wanted,it output systemobject .
I tried to join the string, but failed
...... 'Name'=$xmldoc.rsop.ComputerResults.ExtensionData.Extension.SecurityOptions.Display | Where {$_.Name -eq "Interactive logon: Message text for users attempting to log on" }| Select -expand "DisplayStrings" | Select -expand Value, @{Name='DisplayStrings';Expression={[string]::join(“;”, ($_.DisplayStrings))}} ..........
I cant use psobject method due to my production environment security rules, Any help will be appreciated.