Clear-Host $VBShellObj = new-object -comobject wscript.shell [void][System.Reflection.Assembly]::LoadWithPartialName('Microsoft.VisualBasic') $NomEspaceRecherche = [Microsoft.VisualBasic.Interaction]::InputBox("Entrez une partie du nom du quota recherché", "Quota recerche", "") $NomEspaceRecherche.ToLower() $fsrmremote = New-Object -com Fsrm.FsrmQuotaManager #$fsrmremote | GM $colItems = $fsrmremote.EnumQuotas("") #$colItems | GM write-host "Recherche de $NomEspaceRecherche" $NombreQuotasTrouves = 0 foreach ($objItem in $colItems) { #write-host "Path: " $objItem.Path $QuotaPath = $objItem.Path $QuotaPath = $QuotaPath.ToLower() $Trouve = $QuotaPath.contains($NomEspaceRecherche) if ($Trouve -eq $TRUE){ $NombreQuotasTrouves++ write-host "Path: " $objItem.Path } }