How to output to a text file (beginner)

It should be simple, but somehow I always stuble with this. In the linked script, it outputs to the screen ok, but if I add ” | Export-Csv -Path exp.csv -Append” to the $Obj line, the column SubNets gets somehow changed into “System.DirectoryServices.ActiveDirectory.ActiveDirectorySubnetCollection” for every line?

https://pastebin.com/H5gnbfEH

submitted by /u/fxtl
[link] [comments]

Leave a Reply