Author Posts

January 1, 2012 at 12:00 am

by lhornyak at 2013-04-12 07:15:31

I am working on a script that will return all groups and members of the groups from a site location into html format. When the report runs, I get the data
@{Member Name=User1} @{Member Description=Loss Control Rep} @{GroupType=Security}
@{Member Name=User2} @{Member Description=Loss Control Specialist} @{GroupType=Security}
@{Member Name=User3} @{Member Description=Loss Control Specialist} @{GroupType=Security} etc .returned in the webspage. I tried using the .split command but it is not working exactly the way I would like. How can I format this output to look better?

Add-Content $report "

$MName $MDes $MGroup $Member.Description