Forum Discussion
DarrenRD
Nov 01, 2020Copper Contributor
foreach and out-file- no data
Hi, I need to return a list of active users: Display name etc. but no data is exported to my out-file. Any clues would be highly appreciated . Thanks $users = Get-Content "C:\dump\username...
Bapcosystems
Nov 01, 2020Copper Contributor
I would always display my output first to be sure I was getting something returned to the console.
Then write the output to a file.
Then write the output to a file.