Deleting all users WER (Windows error reporting) files

Hi,
I am using windows server 2008 R2 (Standard), I have created around 120 users in this server, yesterday i found that my C drive is full, after checking all i found around 30GB is used for Windows error reporting files, Please help me to delete This files
Please, i cant delete all files one by one...

For what it's worth, this is the script I use to find Windows Error Reports that have not been sent, and delete archived Windows Error Reports:
It's not currently doing per-user error reports, as we don't have people logging into the servers, typically.
Karl
<#
.SYNOPSIS
Find-WER - Finds Windows Error Reports that have not been sent to Microsoft.
.DESCRIPTION
This script finds Windows Error Reports that have not been sent to Microsoft.
This script also deletes archived Windows Error Reports.
.NOTES
File Name: Find-WER.ps1
Author: Karl Mitschke
Requires: Powershell V2
Created: 12/16/2011
.EXAMPLE
C:\PS>.\Find-Wer.ps1
Description
Finds Windows Error Reports on the local computer.
.EXAMPLE
C:\PS>.\Find-WER -Computer Exch2010
Description
Finds Windows Error Reports on the computer Exch2010.
.EXAMPLE
C:\PS> Get-ExchangeServer | Find-WER
Description
Finds Windows Error Reports on all Exchange servers.
.EXAMPLE
C:\PS> $cred = Get-Credential -Credential mitschke\karlm
C:\PS>.\Find-WER.ps1 -ComputerName (Get-Content -Path ..\Servers.txt) -Credential $cred
Description
Finds Windows Error Reports on all servers in the file Servers.txt.
.PARAMETER ComputerName
The Computer(s) to search for Windows Error Reports. If not specified, defaults to the local computer.
.PARAMETER Credential
The Credential to use. If not specified, runs under the current security context.
#>
[CmdletBinding(SupportsShouldProcess=$true, ConfirmImpact='Medium')]
param (
[parameter(
Position = 1,
Mandatory=$false,
ValueFromPipeline=$true)
[String[]]$ComputerName=$Env:ComputerName,
[Parameter(
Position = 2,
Mandatory = $false,
ValueFromPipeline=$false)
$Credential
BEGIN{
#region PSBoundParameters modification
if ($Credential -ne $null -and $Credential.GetType().Name -eq "String"){
$PSBoundParameters.Remove("Credential") | Out-Null
$PSBoundParameters.Add("Credential", (Get-Credential -Credential $Credential))
$PSBoundParameters.Remove("WhatIf") | Out-Null
#endregion
$ReportPath = "C:\\ProgramData\\Microsoft\\Windows\\WER\\ReportQueue"
$ArchivePath = "C:\\ProgramData\\Microsoft\\Windows\\WER\\ReportArchive"
$FoundReport = $false
$DeleteFailure = $false
PROCESS {
$PSBoundParameters.Remove("ComputerName") | Out-Null
foreach ($StrComputer in $ComputerName){
$Count = @((Get-WmiObject Win32_Directory -Filter "Name= '$ReportPath'" -ComputerName $StrComputer @PSBoundParameters).GetRelated('Win32_directory') |? {$_.name -match $ReportPath}).Count
if ($Count -gt 0){
Write-Warning "There are $Count Windows Error Reports on $StrComputer."
$FoundReport = $true
Else{
Write-Output "There are no Windows Error Reports on $StrComputer."
$Archives = @((Get-WmiObject Win32_Directory -Filter "Name= '$ArchivePath'" -ComputerName $StrComputer @PSBoundParameters).GetRelated('Win32_directory') |? {$_.name -match $ArchivePath})
if ($Archives.Count -gt 0){
Write-Output "Deleting Archived Windows Error Reports on $StrComputer."
foreach ($Folder in $Archives)
if ($pscmdlet.ShouldProcess($($StrComputer), "Deleting '$($folder.name.split("\")[-1])'")){
$Return = $Folder.Delete()
if ($Return.ReturnValue -ne 0){
$DeleteFailure = $true
if ($DeleteFailure -eq $true){
Write-Warning "Could not delete all Archived Windows Error Reports on $StrComputer."
END {
If ($FoundReport){
Write-Warning "Remember to run the Action items on the servers."
else{
Write-Output "There are no Windows Error Reports."
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
My Blog: Unlock PowerShell
My Book:
Windows PowerShell 2.0 Bible
My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

Similar Messages

  • Where is the System queued windows error reporting?

    Hi Guys,
    I would like to increase the free disk usage to more than 15% on the mailbox server Drive C. After check and discuss, we are to achieve this goal that move the system queued windows error reporting to other place. However, i can't find this file after
    read the relevant documents and can't find this file in Drive C.  Could you help me found path of this file? it's urgent. i will waiting at online.
    note: Our boss is not allow to delete this file. i am so sorry.

    Hi,
    You can check the Windows Error Reporting Service queue in the paths below:
    C:\ProgramData\Microsoft\Windows\WER\ReportQueue
    C:\Users\Username\AppData\Local\Microsoft\Windows\WER\ReportQueue (For Users)
    Best regards,
    Susie
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]
    Hi Susie,
    This is Daniel.
    I note that This file take 18.2GB through view disk clear up, but these all folder just take 800M, I would like to they are not in their proper place.
    but I would like to thanks for you help.

  • Windows Error Reporting service connection failure

    For some reason unknown to me, the Windows Error Reporting service has now decided that it cannot send crash reports to Microsoft.
    I get the above error when I try to "Check for a solution" from Review Problem Reports Dialog. "Trying again later"
    does not work. I've tried several recommended "fixes" including scanning for corrupted system files, making sure the WER service is running, and, checking firewall issues. Sending crash reports used to work, so, I'm at a loss as to why this is happening.
    Can anyone shed some light on a possible cause?
    Gort, Klaatu, Barada Nikto

    Relating to the WER-Diagnostics, Vaseem posted some useful steps to resolve that issue here: http://answers.microsoft.com/en-us/windows/forum/windows_7-performance/possible-heap-corruption-detected-exception-code/0657809a-a78b-48c7-9e6e-ac8ca97522c2
    Here are the steps suggested:
    Method 1:
    Run System File Checker tool and check for missing or corrupted files follow the steps in the link:
    http://support.microsoft.com/kb/929833
    Method 2:
    Open performance troubleshooter. Follow the steps in the link:
    http://windows.microsoft.com/en-US/windows7/Open-the-Performance-troubleshooter
    Method 3:
    If the above step fails follow these steps:
    Step a:
    Restart computer in safe mode. Follow the steps from the link:
    http://windows.microsoft.com/en-US/windows7/Start-your-computer-in-safe-mode
    Step b:
    If safe mode works then try in clean boot. Follow the steps from the link:
    http://support.microsoft.com/kb/929135
    Follow the step 7 from the article to “Reset the computer to start as usual”, after performing the clean boot troubleshooting.
    Also follow the steps in the link:
    http://support.microsoft.com/kb/937093
    Note: This above article is applicable for Windows 7 as well.
    Don't forget to mark the post that solved your issue as &quot;Answered.&quot; By marking the Answer you are enabling users with similar issues to find what helped you. Lewis Renwick - IT Professional

  • I deleted a user with a lot of files but the memory of my MacbookAir wasn't freed

    I deleted a user with a lot of files (more than 200 Gb) thinking that it should free some space, I took the option "remove all files from this user", the user was removed, but the space wasn't freed. I still have those 200 Gb blocked. How can I free that space?

    Select the icon of your startup volume ("Macintosh HD," unless you renamed it) in the sidebar of a Finder window, and open the Info window. How much space is Available? Specify gigabytes (GB) or megabytes (MB).

  • Windows Update and the Windows Error reports

    31/08/2014 08:41        
    Windows Error Reporting       
    Fault bucket 124661653, type 21&#x000d;&#x000a;Event Name:
    WindowsUpdateFailure&#x000d;&#x000a;Response: Not available&#x000d;&#x000a;Cab Id: 0&#x000d;&#x000a;&#x000d;&#x000a;Problem signature:&#x000d;&#x000a;P1:
    7.6.7600.320&#x000d;&#x000a;P2:
    80246002&#x000d;&#x000a;P3: D67661EB-2423-451D-BF5D-13199E37DF28&#x000d;&#x000a;P4:
    Scan&#x000d;&#x000a;P5: 101&#x000d;&#x000a;P6: Unmanaged&#x000d;&#x000a;P7: &#x000d;&#x000a;P8: &#x000d;&#x000a;P9: &#x000d;&#x000a;P10: &#x000d;&#x000a;&#x000d;&#x000a;Attached
    files:&#x000d;&#x000a;&#x000d;&#x000a;These files may be available here:&#x000d;&#x000a;C:\ProgramData\Microsoft\Windows\WER\ReportArchive\NonCritical_7.6.7600.320_888a386ad31bd7d883fbf736bf547a8a1bd5bd9c_150a7995&#x000d;&#x000a;&#x000d;&#x000a;Analysis
    symbol: &#x000d;&#x000a;Rechecking for solution: 0&#x000d;&#x000a;Report Id: 8809d3a9-30ea-11e4-8d08-5442495ff252&#x000d;&#x000a;Report Status: 0
    Does the reference to
    D67661EB-2423-451D-BF5D-13199E37DF28
    refer to Windows Update Agent and is a scan to find and down the updated version simply failing?
    TIA, Gerry

    Hi,
    This structure is a general Windows Error report structure. There are different meanings for different types.
    For the details, you could read this article:
    WerReportSetParameter function
    http://msdn.microsoft.com/en-us/library/windows/desktop/bb513626(v=vs.85).aspx
    For your specific error, we could get these:
    P1: 7.6.7600.320 means Windows agent version.
    P2: 80246002 means the exact error code
    P3: D67661EB-2423-451D-BF5D-13199E37DF28
    should be the specific Windows Agent GUID.
    Let's verify it:
    Look for this GUID in your Windows Update log file located in C:\Windows\WindowsUpdate.log. There you could verify if it's a Windows agent.
    Karen Hu
    TechNet Community Support

  • Event Viewer Windows 8.1 - Windows Error Reporting

    Have the following repeating error in Event Viewer / in the level of information/ :
    Event Name:Application
    Sorce:        Windows Error Reporting
    Data:          2015-03-19 14:53:50
    Identification:1001
    Category : none
    Description:
    Errors batch 91181006742, typ 5
    Name of event: PDUWICA
    Reply : no available
    File Cab: 0
    P1: 101
    P2: 1.9
    P3: 6.3.0.0
    P4: 1045
    P5: 29
    P6:
    P7:
    P8:
    P9:
    P10:
    I would appreciate explanation of this event and help in this respect.
    Thanks in advance for reply and best regards, Ewa

    Hi EWAGOSIA,
    After all, I am supposing this is an information or warning level event, does your computer have symptoms such like frequently hanging, random freezing or blue screen? If not so I guess it's nothing to worry about.
    I still think it is caused by bad compatibility of some applications or drivers. You could start with update your video driver and DirectX.
    If the error still persists update all device drivers and keep your system up to date for good measure.
    Regards
    D. Wu
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How to set mozilla firefox homepage for all users in windows 7?

    I want to set same homepage for all users in windows 7.

    You can use a mozilla.cfg file in the Firefox program folder to lock prefs or specify new (default) values.
    Place a local-settings.js file in the defaults\pref folder where also the channel-prefs.js file is located to specify using mozilla.cfg.
    pref("general.config.filename", "mozilla.cfg");
    These functions can be used in the mozilla.cfg file:
    defaultPref(); // set new default value
    pref(); // set pref, but allow changes in current session
    lockPref(); // lock pref, disallow changes
    See:
    *http://kb.mozillazine.org/Locking_preferences
    *http://mike.kaply.com/2012/03/16/customizing-firefox-autoconfig-files/

  • How does Windows Error Reporting identify your application?

    When an error occurs and you are requested to send an error report, how does Windows Error Reporting service identify your application so that you can view the reports in your dashboard?
    How do I register my applications for Windows Error Reporting?
    To get a Windows logo an application must only handle expected errors and allow Windows Error Reporting (WER) to handle unexpected errors according to an article at
    http://blogs.msdn.com/b/amitava/archive/2007/07/24/certified-for-windows-vista-logo-test-case-faq-test-case-32.aspx

    An article How can a company get access to Windows Error Reporting data? at
    http://blogs.msdn.com/b/oldnewthing/archive/2005/08/10/449865.aspx hints that the link is a registered code signing certificate.
    https://sysdev.microsoft.com/en-US/Desktop/member/services/UpdateDigitalSignature.aspx

  • Pin shortcuts to Taskbar and Start Menu for all users in Windows 7

    How can i Pin shortcuts to Taskbar and Start Menu for All Users in Windows 7? Office 2007 Word, Excel and Outlook.

    There are a few ways...
    You can configure a default profile which will give you the ability to setup the Start Menu as you want it with the items pinned how you like.  However, in my experience customizations done to the Taskbar are not maintained in a default profile.
    So, one way to get around that would be to create a script and use the "Active Setup" hooks that are built into Windows 7 to achieve the desired results.
    If you combine this script...
    http://blogs.technet.com/deploymentguys/archive/2009/04/08/pin-items-to-the-start-menu-or-windows-7-taskbar-via-script.aspx
    With Active Setup...
    http://www.visualbasicscript.com/Active-Setup-Examples-m67461.aspx
    You can get the results you want to get...
    Pinned items on the Taskbar have two components, one is in the file system and the other is in the registry.  You could also use GPO Preferences to add both components to a new profile and therby get similar results.  I played around with this method a little and did get it to work also.
    Mike N.

  • I accidentally deleted all of my Logic Pro X files and put them in my trash but now that I copied them back to my documents they all play in the wrong places in my projects

    I accidentally deleted all of my Logic Pro X files and put them in my trash but now that I copied them back to my documents they all play in the wrong places in my projects

    Buddhaguru wrote:
    I know that Mac's don't have a roll back like PC's
    They do. It's called Time Machine.
    You need to reinstall all of your Apps. That should replace all of the support files you nuked.

  • Delete all users except one?

    hi there,
    I'm in a lab environment where I need to be able to delete all user accounts except "Administrator" on remote machines from ARD that accumulate from unsuccessful syncs, etc.
    Is it possible to run a selective rm -rf command that will do this? I've googled, but the solutions don't seem to work for me.
    Thanks!

    I found this article: http://snippets.dzone.com/posts/show/3908
    It says to use this command:
    find . ! -name "*.ogg" -exec rm -f {} \;
    Adapted for my purposes:
    find . ! -name "administrator" -exec rm -rf {} \;
    I tried this on a folder called "test" on my local machine with folders named 1, 2, and 3 (keeping 2) and it worked, but I want to make sure this is a good idea before I push it out via ARD to 90 workstations. Thanks!

  • Using Powershell to delete all users from the Portal

    Summary
    This script will delete all users from the Portal except for Administrator and the Built-In Sync account.
    Based on Markus's "Delete a User" script.
    Useful when developing your system if you want to quickly clear out the data and start again.
    set-variable -name URI -value "http://localhost:5725/resourcemanagementservice' " -option constant
    function DeleteObject
    PARAM($objectType, $objectId)
    END
    $importObject = New-Object Microsoft.ResourceManagement.Automation.ObjectModel.ImportObject
    $importObject.ObjectType = $objectType
    $importObject.TargetObjectIdentifier = $objectId
    $importObject.SourceObjectIdentifier = $objectId
    $importObject.State = 2
    $importObject | Import-FIMConfig -uri $URI
    if(@(get-pssnapin | where-object {$_.Name -eq "FIMAutomation"} ).count -eq 0) {add-pssnapin FIMAutomation}
    $allobjects = export-fimconfig -uri $URI `
    –onlyBaseResources `
    -customconfig "/Person"
    $allobjects | Foreach-Object {
    $displayName = $_.ResourceManagementObject.ResourceManagementAttributes | `
    Where-Object {$_.AttributeName -eq "DisplayName"}
    if([string]::Compare($displayName.Value, "Administrator", $True) -eq 0)
    {write-host "Administrator NOT deleted"}
    elseif([string]::Compare($displayName.Value, "Built-in Synchronization Account", $True) -eq 0)
    {write-host "Built-in Synchronization Account NOT deleted"}
    else {
    $objectId = (($_.ResourceManagementObject.ObjectIdentifier).split(":"))[2]
    DeleteObject -objectType "Person" `
    -objectId $objectId
    write-host "`nObject deleted`n" $displayName.Value }
    Go to the FIM ScriptBox
    http://www.wapshere.com/missmiis

    The DeleteObject function opens and closes a connection for each object.  This approach is faster:
    http://social.technet.microsoft.com/wiki/contents/articles/23570.how-to-use-powershell-to-delete-fim-users-that-have-a-null-attribute-name.aspx
    Mike Crowley | MVP
    My Blog --
    Planet Technologies

  • Can i delete all users in one go?

    I am using SAP authentication. Afer defining my Entitlement system, under options i did not chose to Import users for the imported role.
    But All users for the imported rloe are imported. i dont want all users. It is painful as well to delete each user at a time for 500 users. How can i delete all users in a sinlge go?
    Please help
    --Krish

    This may ork: Try to set the Force user synchronization option under CMC->Authentication->SAP->Options and remove the role temporarily.
    Such a behaviour  can be xeplained only through the setting of the option Automatically import users under CMC->Authentication->SAP->Options . Even for a short period of time.
    You MUST create a role that contains only the SAP users you want to accept in your BOBJ system and import this role in the CMC
    Regards,
    Stratos

  • How to delete all users quickly in EOP

    I need to delete all user inside my standalone EOP. I need to remove the domains but it won't let me since there are users in the domain. It will only allow 20 at a time to be deleted. I am sure there is a PowerShell way but I need this done ASAP.
    Thanks,
    Mike
    MRR

    As it ended up, I didn't need to because Microsoft resolved the issue after telling me at first they couldn't. :-) I am a little amazed no one responded to this. Maybe it is one of those so simple things they think we are morons for asking. :-) 
    MRR

  • Fault bucket -Windows Error reporting

    Fault bucket 3981204210, type 5
    What does type 5 signify?
    TIA, Gerry

    Hi,
    I found this WIKI
    Event ID 1001: Windows Error Reporting, from this article I see a sentence:
    The bucket table (that is,
    the Fault bucket type) for phony error bucket numbers is 5.
    The article above also gives an explanation for type 1 to 4:
    1:Crash32 buckets
    2: Setup buckets
    3: Crash64 buckets
    4: Generic reports
    Hope this might help
    Best regards
    Michael Shao
    TechNet Community Support

Maybe you are looking for

  • To identify the user running the job at runtime

    Hi All, My requirement is to develop a program which need to send mail only if a particular user runs the job. I need to read the user who runs the job at runtime, i tried with SY-UNAME but it holds the user name of the person who created the job at

  • Dvd drive no longer recognized

    My dvd drive is no longer recognized in my HP Pavilion dv9000 notebook.  Do I need a new driver?  How do I get it?

  • Acrobat  9 standard no copy without encryption

    I just upgraded from 6 to 9. I want to prohibit copying in security but the dialog box wants to encrypt and I don't want to encrypt. I just want to disallow copying.

  • Re-issue PO Output

    Hi All, I have an output setup (email) in the PO.  When the PO gets created we have conditions setup in MN04/MN05/MN06 to release it automatically.  Does anyone know of a way to re-issue the output in MASS (maybe 20 PO's) after the output has already

  • XI Security

    Hi, We have XI soapAdapter and need to turn off the seurity on this? Thanks Som