Out-file to txt is fine, export-csv shows gibberish

I’m running a script to get the mailbox size for a specified list of users then exporting. if I export to a txt file the information is fine, but if i export to csv its just random gibberish (below for each result) 033ecb2bc07a4d43b5ef94ed5a35d280 Microsoft.PowerShell.Commands.Internal.Format.TableHeaderInfo 9e210fe47d09416682b841769c78b8a3 My script is as follows $users = gc “c:tempuser-listfull.txt” foreach […]

Get-WMIobject to a list of PCs

I’ve been tasked with logging off all users from about 1000 specific PCs , the best way I’ve found to do this is with get-WMIobject . I came across the following one liner : (Get-WmiObject -class Win32_computerSystem -Computername Computer1).Win32Shutdown(0) which works great for instantly logging off users from a single computer. So now I want […]