Making Headers bold in the outputted csv file in powershell script -
Making Headers bold in the outputted csv file in powershell script -
how create headers bold when outputted in code below:
$header = "account,ace string,object path"
and if want lastly line outputted under same column header within csv, how do that:
$outinfo = $folder.fullname + "," + $acl.identityreference + "," + $acl.accesscontroltype + "," + $acl.isinherited + "," + $acl.inheritanceflags + "," + $acl.propagationflags
i want ($acl.accesscontroltype, $acl.isinherited, $acl.inheritanceflags , $acl.propagations flagsto displayed under column header of object path.
you have 2 questions here.
for first: csv file format has no styling/formatting capabilities. it's plain text, delimited columns. iow, you're asking can't done if want maintain using csv output.
for second: you're breaking csv file having more columns of info in headers. going prove mess.
better solution: pull info collection of objects (a 2-dimensional array, basically), pipe collection through export-csv
powershell
Comments
Post a Comment