I am having a problem running get-wmiobject against a couple of large web servers. Basically when I run:
$sites = Get-WMIObject -NameSpace "root\WebAdministration" -Class Site -Authentication PacketPrivacy -ComputerName COMPUTERNAME
I receive the error:
Get-WmiObject : Quota violation
+ CategoryInfo : InvalidOperation: (:) [Get-WmiObject], ManagementException
+ FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.Commands.GetWmiObjectCommand
I have attempted to limit what is returned by:
$sites = Get-WMIObject -NameSpace "root\WebAdministration" -Class Site -Authentication PacketPrivacy -ComputerName COMPUTERNAME -Property Name, Bindings, Id, LogFile
And a couple of other select and filter options with the same result. This is happening on multiple systems hosting 4000+ sites in IIS each.
I have seen the issue with WMI in Server 2k3, but these systems are all Server 2k8 r2 with the latest patches installed.
Thank you for any information.