Hi Guys,
I have the follwoing script that creates a text file of users who are over the default quota and it works a treat. Until I want it to create it as an HTML or and CSV file. Insteah of only giving me the filtered detail it gives me all of the get-mailbox data.
So the following works....
get-mailbox -Filter "UseDatabaseQuotaDefaults -eq `$false" -ResultSize Unlimited > OverDefaultQuota.txt
but this gives me too much info....
get-mailbox -Filter "UseDatabaseQuotaDefaults -eq `$false" -ResultSize Unlimited | ConvertTo-Html | Out-File quota.html
and
get-mailbox -Filter "UseDatabaseQuotaDefaults -eq `$false" -ResultSize Unlimited | Export-csv quota.csv
Any ideas?
John
get-mailbox -Filter scriipt issue
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
get-mailbox -Filter scriipt issue
You need to use Select-Object to specify the properties you want:get-mailbox | select this,that,anotherthing | export-csv myfile.csv