Comment

Thanks Luc. I was trying to use the Export-Xls too for other script and it were changing the columns order... then i've used Export-Csv $path -NoTypeInformation -UseCulture.

I know this is a problem related to the powershell v3 like you mentioned in your blog, but i'm getting the problem with a powershel v1...:smileyconfused: weird..

--------------------------------------------------------

Refreshing:

LucD, both scripts i mentioned here are OK. I was having problem to run your Unused-PortGroups script because of my computer. I ran from another and took just fine!

The expor-xls now becomes Export-xlsx and everything is better than ever. Thank you for both!Smiley Happy

By the way, i'll refresh this script as soon as possible 'cause the results are being returned in duplicity and showing "Vmkernel Vm" and "Management Network" as Portgroups.