Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

PowerShell Error Debug Help: "Quota Violation"

Posted on 2010-09-15
13
Medium Priority
?
1,836 Views
Last Modified: 2012-05-10
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
0
Comment
Question by:gerhardub
  • 8
  • 2
13 Comments
 
LVL 43

Expert Comment

by:Adam Brown
ID: 33684859
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
 
LVL 1

Author Comment

by:gerhardub
ID: 33684936
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
 
LVL 43

Accepted Solution

by:
Adam Brown earned 2000 total points
ID: 33685004
Well, there's a known bug when running WMI queries against a Windows 2003 machine...
http://support.microsoft.com/kb/828653
0
WatchGuard Case Study: Museum of Flight

“With limited money and limited staffing, we didn’t have a lot of choices in terms of what we could do to bring efficiency. WatchGuard played a central part in changing that.” To provide strong, secure Wi-Fi access within the museum, Hunter chose to deploy WatchGuard’s AP120 APs.

 
LVL 1

Author Comment

by:gerhardub
ID: 33685701
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
 
LVL 1

Author Comment

by:gerhardub
ID: 33685801
Now I've got a NEW error... I have "CALL CANCELLED"....

Check it out:


9-15-2010-3-30-58-PM.jpg
0
 
LVL 1

Author Comment

by:gerhardub
ID: 33735382
Any updates?
0
 
LVL 1

Author Comment

by:gerhardub
ID: 33774309
Thoughts?
0
 
LVL 1

Author Comment

by:gerhardub
ID: 33886941
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
 
LVL 1

Author Comment

by:gerhardub
ID: 34149109
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
 
LVL 1

Author Comment

by:gerhardub
ID: 34149125
I object, as I'd like to award at least partial points to ACBrown2010.

GB
0
 
LVL 71

Expert Comment

by:Chris Dent
ID: 34488379
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

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question