In the following script how can I display the value of $computers variable before it writes the entry to the file and grabs the next value.
I want to display the value of $computers before it is passed on to the Get=WmiObject.
======================================================================
$computers = Get-Content -Path C:\Get-LocalUser.csv
Get-WmiObject -ComputerName $computers -Class Win32_UserAccount -Filter "LocalAccount='True'" |
Select PSComputername, Name | Export-csv C:\local_users2.csv -NoTypeInformation
=======================================================================
Thank You,
The way to do that is to