troubleshooting Question

powershell saving to file each time rather than memory

Avatar of techdrive
techdriveFlag for United States of America asked on
Powershell
6 Comments1 Solution115 ViewsLast Modified:
I work in a large enterprise and work with a lot of one liners that collection information and exports this out to a .csv. What I notice in powershell but have not been able to find for more solution there is a way to cycle through the command each time and save this in the file. The way I am currently using is as it cycles through it is stored in memory and when it finishes it then exports this into a file. I do not have a lot of RAM and would prefer each time that it runs a command on each user to export this directly into a file. I hope that I am clear.

embed=snippet 8294648]
Get-PublicFolder -Recurse -resultsize:unlimited | foreach {Get-PublicFolderClientPermission $_ }
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros