PowerShell Error Debug Help: "Quota Violation"

Ok,

I've got this code running against a server:

Write-Output "..Event Log Warnings"
$WmidtQueryDT = [System.Management.ManagementDateTimeConverter]::ToDmtfDateTime([DateTime]::Now.AddDays(-7))
$colLoggedEvents = Get-WmiObject -computer $Target -Authentication PacketPrivacy -query ("Select * from Win32_NTLogEvent Where Type='Warning' and TimeWritten >='" + $WmidtQueryDT + "'")

Open in new window


(This was taken from another script that I've been modifying to debug a variety of errors, etc., but appeared to be working will until it ran into a server with a LARGE event log.)

While this code runs, I evently get his error:

Quota violation
At :line:152 char:33
+       $colLoggedEvents = Get-WmiObject <<<<  -computer $Target -Authentication PacketPrivacy -query ("Select * from Win32_NTLogEvent Where Type='Warning' and TimeWritten >='" + $WmidtQueryDT + "'")

Anyone know how to solve this issue?

GB
LVL 1
gerhardubAsked:
Who is Participating?
 
Adam BrownConnect With a Mentor Sr Solutions ArchitectCommented:
Well, there's a known bug when running WMI queries against a Windows 2003 machine...
http://support.microsoft.com/kb/828653
0
 
Adam BrownSr Solutions ArchitectCommented:
This is also running for me without errors. Are you using Powershell 1 or 2? If 1, upgrade to 2 and see if that fixes your problems. Download here: http://support.microsoft.com/kb/968930
0
 
gerhardubAuthor Commented:
I'm running v2 without a doubt.... it seems to no like this one server...  but hell if I know what a Quote violation would be from?
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
gerhardubAuthor Commented:
Well, the version in the listed hot-fix is much older than the one installed on the current Windows 2003 SP2 system I'm running the script against.

The version I've got is 5.2.3790.3959 (which is the same as the SP2 version).

The one listed in the article is 5.2.3790.86, and from 2003.

Also, the hotfix information doesn't list replacing the latest one with and significantly older one...  Whatcha all think?

GB
0
 
gerhardubAuthor Commented:
Now I've got a NEW error... I have "CALL CANCELLED"....

Check it out:


9-15-2010-3-30-58-PM.jpg
0
 
gerhardubAuthor Commented:
Any updates?
0
 
gerhardubAuthor Commented:
Thoughts?
0
 
gerhardubAuthor Commented:
Anyone....

I also get this error:

The WriteObject and WriteError methods cannot be called after the pipeline has been closed. Please contact Microsoft Support Services.
At :line:152 char:33
+       $colLoggedEvents = Get-WmiObject <<<<  -computer $Target -Authentication PacketPrivacy -query ("Select * from Win32_NTLogEvent Where Type='Warning' and TimeWritten >='" + $WmidtQueryDT + "'")
0
 
gerhardubAuthor Commented:
The answer to this question / problem is two fold.

1) As above with what ACBROWN2010 indicated...

2) When the remote registry service is not turned on.
0
 
gerhardubAuthor Commented:
I object, as I'd like to award at least partial points to ACBrown2010.

GB
0
 
Chris DentPowerShell DeveloperCommented:
This question has been classified as abandoned and is being closed as part of the Cleanup Program.  See my comment at the end of the question for more details.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.