troubleshooting Question

Parse dirquota output in PowerShell

Avatar of rookie_b
rookie_b asked on
PowershellWindows Server 2008Windows Server 2012
8 Comments4 Solutions20 ViewsLast Modified:
I am having to use dirquota to collect quota information from a number of servers, as FSRM Powershell is not an option. I need to somehow parse the output for a;l properties  to a csv file

How do I do that?
Here is an example:
dirquota q l /remote:server /path:D:\...
And here is the output it produces:

Quota Path:             D:\parent\folder1
Description:            None
Share Path:             \\server\share\folder1
                       
Source Template:        1 TB Limit Reports to User (Matches template)
Quota Status:           Enabled
Limit:                  1.00 TB (Hard)
Used:                   160.92 GB (16%)
Available:              863.08 GB
Peak Usage:             160.92 GB (05/07/2020 16:10)
Thresholds:
   Warning ( 85%):      E-mail, Report
   Limit (100%):        E-mail, Report

Quota Path:             D:\parent\folder2
Description:            None
Share Path:             \\server\share\folder2
Source Template:        1 TB Limit Reports to User (Matches template)
Quota Status:           Enabled
Limit:                  1.00 TB (Hard)
Used:                   14.63 GB (1%)
Available:              1,009.37 GB
Peak Usage:             17.34 GB (25/07/2020 09:18)
Thresholds:
   Warning ( 85%):      E-mail, Report
   Limit (100%):        E-mail, Report


Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 4 Answers and 8 Comments.
Join the Community
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 4 Answers and 8 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