I'm currently to get the quota details using the following powershell command.
get-fsrmquota -Path "C:Temp\ID\1500-1"
This works great. I'm trying to get a wildcard path to look for all the IDs that have a ID of 1500. I tried the following sets of commands but they return error
get-fsrmquota -Path "C:Temp\ID\1500-*"
get-fsrmquota -Path "C:Temp\ID\1500-?"
get-fsrmquota -Path "C:Temp\ID\*1500-"
get-fsrmquota -Path "C:Temp\ID\?1500-"
The error that I get is the following,
0x80045306, The specified path is invalid
I have got another way but it loops through all the folders and then filters the folders out, which takes the same time as looping through all the folder.
get-fsrmquota -Path "C:Temp\ID\..." | Where-Object {$_.Path - Like "C:Temp\ID\1500-*"}
I'm looking for another way to get the folder details for the same Id.
Any help would be greatly appreciated.
Thanks.