Event Viewer cannot open the event Log or Custom view. Verify that the Event log service is running or query is too long. The instance name passed was not recognized as valid by a WMI data provider(4201).

"Event Viewer cannot open the event Log or Custom view. Verify that the Event log service is running or query is too long. The instance name passed was not recognized as valid by a WMI data provider(4201)"
This error keeps cropping up now and again on most of our domain controllers (OS-2008 AND 2008R2)...Usually a restart fixes the issue however the issue repeats and security logs don't generate.
Any advice on how to fix this issue permanently would be greatly appreciated.

Please see this: https://social.technet.microsoft.com/Forums/windows/en-US/95987ca3-a1b2-4da6-95b7-d825d06cdac7/error-code-4201-the-instance-name-passed-was-not-recognized-as-valid-by-a-wmi-data-provider?forum=w7itprosecurity
You can also try rebuilding the WMI repository: http://blogs.technet.com/b/askperf/archive/2009/04/13/wmi-rebuilding-the-wmi-repository.aspx
This posting is provided AS IS with no warranties or guarantees , and confers no rights.
Ahmed MALEK
My Website Link
My Linkedin Profile
My MVP Profile

Similar Messages

  • "Help viewer cannot open this content"

    In iPhoto '09 Help window I would get the following error message when I tried viewing any topic:
    "Help viewer cannot open this content"
    Problem solved with help from "Apple Expert" phone support following these steps:
    1. reboot in safe mode - I think this clears system cache and runs a disk repair utility
    2. reboot
    3. delete ~/Library/Caches
    4. empty trash
    5. log out
    6. log back in
    7. empty trash
    Apparently the problem was caused by a corrupt cached file.

    This worked for me.
    From http://www.thexlab.com/faqs/helpviewer.html#Anchor-Reset-35882
    Quit Help Viewer if it is open. Leopard users should click the red Close button in the upper-left corner of the Help Viewer window. Users of Tiger and earlier can press the Command-Q (Quit) keyboard shortcut.
    Trash the following three files in your Home > Library > Preferences folder, if extant:
    * com.apple.help.plist
    * com.apple.helpui.plist
    * com.apple.helpviewer.plist
    Trash the following two folders in your Home > Library > Caches folder, if extant:
    1. com.apple.helpui folder
    2. com.apple.helpdata
    Empty the Trash.
    Test that Help Viewer is now operating normally.
    Sell Apple stock before the market gets wind of this.
    Message was edited by: LazloG

  • I cannot open my images in elements 12 with my recently purchased canon 760d, what do I need to do to update the softwear

    I cannot open my images in elements 12 with my recently purchased canon 760d, what do I need to do to update the softwear

    Unfortunately, you're in the wrong forum.  This is not the Elements forum. 
    Here's the link to the forum you want:
    https://forums.adobe.com/community/photoshop_elements/content

  • I cannot open Photobooth. I keep getting a message that says "Photobooth cannot open because no camera is attached or the camera is in use by another application." As far as I can tell, no other application is using the camera. Help?

    I cannot open Photobooth. I keep getting a message that says "Photobooth cannot open because no camera is attached or the camera is in use by another application." As far as I can tell, no other application is using the camera. Help?

    Run the apple hardware test.

  • I cannot open my document in pages 5.0.1 that I created in same. Computer tells me that I need to have a later version of pages. What do I do?

    i cannot open my document in pages 5.0.1 that I created in same. Computer tells me that I need to have a later version of pages. What do I do?

    You're running an older version of Pages, perhaps in a folder called "iWork '09" in the Applications folder, or else on your Desktop. Quit it and launch the one at the top level of Applications.

  • Cannot open project. Just got an error message that says:  '  project contained a sequence that coul

    Cannot open project. Just got an error message that says:  '  project contained a sequence that could not be opened. No sequence preview preset file or codec could be associated witht his sequence type. "  how do I navigate this and reopen my project. ( note: I recently transitioned from the 30 day free trial to 'buying in' to the license cloud application; if that has relevance....)

      FAQ: Why are some codecs and sequence presets missing from my installation of Premiere Pro?

  • HT1339 My ipod was not recognized by itunes and not does not power on after I restarted the ipod service in the Windows admin tools. I cannot restore the ipod since it is not recognized by my PC now. Any suggestions?

    My ipod was not recognized by itunes and not does not power on after I restarted the ipod service in the Windows admin tools. I cannot restore the ipod since it is not recognized by my PC now. Any suggestions?

    Time to replace it: $49 2nd Gen shuffle at online Apple Store...

  • I get a message that my reader cannot open in protected mode. how do i fix that?

    I get a message that my reader cannot open in protected mode. how do i fix that?

    What is your operating system?  Reader version?
    What happens if you select 'Always open with Protected Mode disabled'?

  • Apple TV cannot see my computer even though I have verified that both are set to the same home sharing network. I can see my music and Netflix but not photos.

    Applw TV cannot "see" my computer even though I have verified that both are set to the same home sharing account. The router works OK as Netflix comes through as does access to music.

    Welcome to the Apple Community.
    The following article(s) may help you.
    Troubleshooting Homesharing
    Troubleshooting Wi-Fi networks and connections
    Recommended Wi-Fi settings

  • Calendar Server Error: At least one sharee was not recognized by the server. New invitations have not been sent.

    I deployed a Mountain Lion Server with the calendar service active. Every time a user tries to share a calendar they have created under thier account to an external person using thier email address, the server gives the following error: "At least one sharee was not recognized by the server. New invitations have not been sent."
    Invites to share a calendar to OD accounts on the server seem to work fine.
    I have a calendar specific email address for external invites set up. The server seems to send individual event invites to external email addresses just fine, so I am thinking the email is working. Email is not served on the Mountain Lion Server. The account is through Google Apps using IMAP and SMTP.
    What's even stranger, is that there doesn't seem to be any message in the Calendar error logs.
    I've tried creating a new test account and no luck.
    I don't know what else to try.
    Thanks in advance for any help!

    another 3rd party sofwtare that allows you opent he backup and grab info
    http://www.processtext.com/abcblackberry.html
    trial for 30 days, good program for that 30 days, I hear they arent a pleasant company to purchase from though

  • Loop with WMI Query taking too long, need to break out if time exceeds 5 min

    I've written a script that will loop through a list of computers and run a WMI query using the Win32_Product class. I am pinging the host first to ensure its online which eliminates wasting time but the issue I'm facing is that some of the machines
    are online but the WMI Query takes too long and holds up the script. I wanted to add a timeout to the WMI query so if a particular host will not respond to the query or gets stuck the loop will break out an go to the next computer object. I've added my code
    below:
    $Computers = @()
    $computers += "BES10-BH"
    $computers += "AUTSUP-VSUS"
    $computers += "AppClus06-BH"
    $computers += "Aut01-BH"
    $computers += "AutLH-VSUS"
    $computers += "AW-MGMT01-VSUS"
    $computers += "BAMBOOAGT-VSUS"
    ## Loop through all computer objects found in $Computes Array
    $JavaInfo = @()
    FOREACH($Client in $Computers)
    ## Gather WMI installed Software info from each client queried
    Clear-Host
    Write-Host "Querying: $Client" -foregroundcolor "yellow"
    $HostCount++
    $Online = (test-connection -ComputerName ADRAP-VSUS -Count 1 -Quiet)
    IF($Online -eq "True")
    $ColItem = Get-WmiObject -Class Win32_Product -ComputerName $Client -ErrorAction SilentlyContinue | `
    Where {(($_.name -match "Java") -and (!($_.name -match "Auto|Visual")))} | `
    Select-Object Name,Version
    FOREACH($Item in $ColItem)
    ## Write Host Name as variable
    $HostNm = ($Client).ToUpper()
    ## Query Named Version of Java, if Java is not installed fill variable as "No Java Installed
    $JavaVerName = $Item.name
    IF([string]::IsNullOrEmpty($JavaVerName))
    {$JavaVerName = "No Installed"}
    ## Query Version of Java, if Java is not installed fill variable as "No Java Installed
    $JavaVer = $Item.Version
    IF([string]::IsNullOrEmpty($JavaVer))
    {$JavaVer = "Not Installed"}
    ## Create new object to organize Host,JavaName & Version
    $JavaProp = New-Object -TypeName PSObject -Property @{
    "HostName" = $HostNm
    "JavaVerName" = $JavaVerName
    "JavaVer" = $JavaVer
    ## Add new object data "JavaProp" from loop into array "JavaInfo"
    $JavaInfo += $JavaProp
    Else
    {Write-Host "$Client didn't respond, Skipping..." -foregroundcolor "Red"}

    Let me give you a bigger picture of the script. I've included the emailed table the script produces and the actual script. While running the script certain hosts get hung up when running the WMI query which causes the script to never complete. From one of
    the posts I was able to use the Get-WmiCustom function to add a timeout 0f 15 seconds and then the script will continue if it is stuck. The problem is when a host is skipped I am not aware of it because my script is not reporting the server that timed out.
    If you look at ZLBH02-VSUS highlighted in the report you can see that its reporting not installed when it should say something to the effect query hung.
    How can I add a variable in the function that will be available outside the function that I can key off of to differentiate between a host that does not have the software installed and one that failed to query?
    Script Output:
    Script:
    ## Name: JavaReportWMI.ps1 ##
    ## Requires: Power Shell 2.0 ##
    ## Created: January 06, 2015 ##
    <##> $Version = "Script Version: 1.0" <##>
    <##> $LastUpdate = "Updated: January 06, 2015" <##>
    ## Configure Compliant Java Versions Below ##
    <##> $java6 = "6.0.430" <##>
    <##> $javaSEDEVKit6 = "1.6.0.430" <##>
    <##> $java7 = "7.0.710" <##>
    <##> $javaSEDEVKit7 = "1.7.0.710" <##>
    <##> $java8 = "8.0.250" <##>
    <##> $javaSEDDEVKit8 = "1.8.0.250" <##>
    ## Import Active Directory Module
    Import-Module ActiveDirectory
    $Timeout = "False"
    Function Get-WmiCustom([string]$computername,[string]$namespace,[string]$class,[int]$timeout=15)
    $ConnectionOptions = new-object System.Management.ConnectionOptions
    $EnumerationOptions = new-object System.Management.EnumerationOptions
    $timeoutseconds = new-timespan -seconds $timeout
    $EnumerationOptions.set_timeout($timeoutseconds)
    $assembledpath = "\\" + $computername + "\" + $namespace
    #write-host $assembledpath -foregroundcolor yellow
    $Scope = new-object System.Management.ManagementScope $assembledpath, $ConnectionOptions
    $Scope.Connect()
    $querystring = "SELECT * FROM " + $class
    #write-host $querystring
    $query = new-object System.Management.ObjectQuery $querystring
    $searcher = new-object System.Management.ManagementObjectSearcher
    $searcher.set_options($EnumerationOptions)
    $searcher.Query = $querystring
    $searcher.Scope = $Scope
    trap { $_ } $result = $searcher.get()
    return $result
    ## Log time for duration clock
    $Start = Get-Date
    $StartTime = "StartTime: " + $Start.ToShortTimeString()
    ## Environmental Variables
    $QueryMode = $Args #parameter for either "Desktops" / "Servers"
    $CsvPath = "C:\Scripts\JavaReport\JavaReport" + "$QueryMode" + ".csv"
    $Date = Get-Date
    $Domain = $env:UserDomain
    $HostName = ($env:ComputerName).ToLower()
    ## Regional Settings
    ## Used for testing
    IF ($Domain -eq "abc") {$Region = "US"; $SMTPDomain = "abc.com"; `
    $ToAddress = "[email protected]"; `
    $ReplyDomain = "abc.com"; $smtpServer = "relay.abc.com"}
    ## Control Variables
    $FromAddress = "JavaReport@$Hostname.na.$SMTPDomain"
    $EmailSubject = "Java Report - $Region"
    $computers = @()
    $computers += "ZLBH02-VSUS"
    $computers += "AUTSUP-VSUS"
    $computers += "AppClus06-BH"
    $computers += "Aut01-BH"
    $computers += "AutLH-VSUS"
    $computers += "AW-MGMT01-VSUS"
    $computers += "BAMBOOAGT-VSUS"
    #>
    ## Loop through all computer objects found in $Computes Array
    $JavaInfo = @()
    FOREACH($Client in $Computers)
    ## Gather WMI installed Software info from each client queried
    Clear-Host
    Write-Host "Querying: $Client" -foregroundcolor "yellow"
    $HostCount++
    $Online = (test-connection -ComputerName ADRAP-VSUS -Count 1 -Quiet)
    IF($Online -eq "True")
    $ColItem = Get-WmiCustom -Class Win32_Product -Namespace "root\cimv2" -ComputerName $Client -ErrorAction SilentlyContinue | `
    Where {(($_.name -match "Java") -and (!($_.name -match "Auto|Visual")))} | `
    Select-Object Name,Version
    FOREACH($Item in $ColItem)
    ## Write Host Name as variable
    $HostNm = ($Client).ToUpper()
    ## Query Named Version of Java, if Java is not installed fill variable as "No Java Installed
    $JavaVerName = $Item.name
    IF([string]::IsNullOrEmpty($JavaVerName))
    {$JavaVerName = "No Installed"}
    ## Query Version of Java, if Java is not installed fill variable as "No Java Installed
    $JavaVer = $Item.Version
    IF([string]::IsNullOrEmpty($JavaVer))
    {$JavaVer = "Not Installed"}
    ## Create new object to organize Host,JavaName & Version
    $JavaProp = New-Object -TypeName PSObject -Property @{
    "HostName" = $HostNm
    "JavaVerName" = $JavaVerName
    "JavaVer" = $JavaVer
    ## Add new object data "JavaProp" from loop into array "JavaInfo"
    $JavaInfo += $JavaProp
    Else
    {Write-Host "$Client didn't respond, Skipping..." -foregroundcolor "Red"}
    #Write-Host "Host Query Count: $LoopCount" -foregroundcolor "yellow"
    ## Sort Array
    Write-Host "Starting Array" -foregroundcolor "yellow"
    $JavaInfoSorted = $JavaInfo | Sort-object HostName
    Write-Host "Starting Export CSV" -foregroundcolor "yellow"
    ## Export CSV file
    $JavaInfoSorted | export-csv -NoType $CsvPath -Force
    $Att = new-object Net.Mail.Attachment($CsvPath)
    Write-Host "Building Table Header" -foregroundcolor "yellow"
    ## Table Header
    $list = "<table border=1><font size=1.5 face=verdana color=black>"
    $list += "<tr><th><b>Host Name</b></th><th><b>Java Ver Name</b></th><th><b>Ver Number</b></th></tr>"
    Write-Host "Building HTML Table" -foregroundcolor "yellow"
    FOREACH($Item in $JavaInfoSorted)
    Write-Host "$UniqueHost" -foregroundcolor "Yellow"
    ## Alternate Table Shading between Green and White
    IF($LoopCount++ % 2 -eq 0)
    {$BK = "bgcolor='E5F5D7'"}
    ELSE
    {$BK = "bgcolor='FFFFFF'"}
    ## Set Variables
    $JVer = $Item.JavaVer
    $Jname = $Item.JavaVerName
    ## Change Non-Compliant Java Versions to red in table
    IF((($jVer -like "6.0*") -and (!($jVer -match $java6))) -or `
    (($jName -like "*Java(TM) SE Development Kit 6*") -and (!($jName -match $javaSEDEVKit6))) -or `
    (($jVer -like "7.0*") -and (!($jVer -match $java7))) -or `
    (($jName -like "*Java SE Development Kit 7*") -and (!($jName -match $javaSEDEVKit7))))
    $list += "<tr $BK style='color: #ff0000'>"
    ## Compliant Java version are displayed in black
    ELSE
    $list += "<tr $BK style='color: #000000'>"
    ## Populate table with host name variable
    $list += "<td>" + $Item."HostName" + "</td>"
    ## Populate table with Java Version Name variable
    $list += "<td>" + $Item."JavaVerName" + "</td>"
    ## Populate table with Java Versionvariable
    $list += "<td>" + $Item."JavaVer" + "</td>"
    $list += "</tr>"
    $list += "</table></font>"
    $End = Get-Date
    $EndTime = "EndTime: " + $End.ToShortTimeString()
    #$TimeDiff = New-TimeSpan -Start $StartTime -End $EndTime
    $StartTime
    $EndTime
    $TimeDiff
    Write-Host "Total Hosts:$HostCount"
    ## Email Function
    Function SendEmail
    $msg = new-object Net.Mail.MailMessage
    $smtp = new-object Net.Mail.SmtpClient($smtpServer)
    $msg.From = ($FromAddress)
    $msg.ReplyTo =($ToAddress)
    $msg.To.Add($ToAddress)
    #$msg.BCC.Add($BCCAddress)
    $msg.Attachments.Add($Att)
    $msg.Subject = ($EmailSubject)
    $msg.Body = $Body
    $msg.IsBodyHTML = $true
    $smtp.Send($msg)
    $msg.Dispose()
    ## Email Body
    $Body = $Body + @"
    <html><body><font face="verdana" size="2.5" color="black">
    <p><b>Java Report - $Region</b></p>
    <p>$list</p>
    </html></body></font>
    <html><body><font face="verdana" size="1.0" color="red">
    <p><b> Note: Items in red do not have the latest version of Java installed. Please open a ticket to have an engineer address the issue.</b></p>
    </html></body></font>
    <html><body><font face="verdana" size="2.5" color="black">
    <p>
    $StartTime<br>
    $EndTime<br>
    $TimeDiff<br>
    $HostCount<br>
    </p>
    <p>
    Run date: $Date<br>
    $Version<br>
    $LastUpdate<br>
    </p>
    </html></body></font>
    ## Send Email
    SendEmail

  • Moving the 80 Million records from Conversion database to System Test database (Just for one transaction table) taking too long.

    Hello Friends,
    The background is I am working as conversion manager and we move the data from oracle to SQL Server using SSMA and then we will apply the conversion logic and then move the data to system test ,UAT and Production.
    Scenario:
    Moving the 80 Million records from Conversion database to System Test database (Just for one transaction table) taking too long. Both the databases are in the same server.
    Questions are…
    What is best option?
    IF we use the SSIS it’s very slow and taking 17 hours (some time it use to stuck and won’t allow us to do any process).
    I am using my own script (Stored procedure) and it’s taking only 1 hour 40 Min. I would like know is there any better process to speed up and why the SSIS is taking too long.
    When we move the data using SSIS do they commit inside after particular count? (or) is the Microsoft is committing all the records together after writing into Transaction Log
    Thanks
    Karthikeyan Jothi

    http://www.dfarber.com/computer-consulting-blog.aspx?filterby=Copy%20hundreds%20of%20millions%20records%20in%20ms%20sql
    Processing
    hundreds of millions records can be done in less than an hour.
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • "System.FormatException: The string was not recognized as a valid DateTime" when running SharePoint Configuration Wizard step 9

    Dears,
    We have a problem upgrading sharepoint
    From: SharePoint 2007 SP2 12.0.0.6535 - April 10 cumulative Update
    To: SharePoint 2007 SP2 12.0.6557.5000 - April 11 cumulative Update
    We start installing WSS CU in our standalone environment
    Then we start running the SharePoint Configuration Wizard and it is failed in step 9 with the following error in "PSCDiagnostics" log:
    File reader could not understand line 15679. Line was: 06/26/2011 10:11:35  1  INF              Entering function PsconfigLinkLabel.LinkLabelClickedEventHandler. Error was: System.FormatException:
    The string was not recognized as a valid DateTime. There is a unknown word starting
     at index 24.
     at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)
     at UlsGump.Column.TimeColumn.ParseTime(StringFacade timeString)
     at UlsGump.UlsEntry.SetEntryFromThread(StringFacade[] threadFacades, StringCacheFile stringCacheFile, Int64 messageLocation)
     at UlsGump.UlsEntry.ReadFromUlsBuffer(Char[] buffer, Int32 bufferStart, Int32 bufferCount, StringCacheFile stringCacheFile, Int64 fileStart)
     at UlsGump.FilePump.ReadJob()
     Please help and advise to solve this error in order to get upgrading sharepoint succeed
    Regards, Anas N. Alhussein | Sharepoint Senior Developer

    Hi,
    From your narration, you can clear the configuration cache, then re-run the SharePoint Configuration Wizard, check the effect.
    Cleared the cache of config database by following below steps.
    1. Stopped the Windows SharePoint Services Timer service.
    2. Started on the SharePoint Server where Central Administration Site is hosted. Browse to
    C:\Documents and Settings\All Users\Application Data\Microsoft\SharePoint\Config\
    3. Deleted all the xml files. (But do not delete the cache.ini file.)
    4. Then Edited the cache.ini and replaced the current value with "1".
    5. Restarted the Windows SharePoint Services Timer service on the Central Admin server .
    Thanks,
    Rock Wang
    Forum Support
    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]
    Regards, Rock Wang Microsoft Online Community Support

  • "The selected video could not be played. The format was not recognized."

    I am having problems with "The selected video could not be played. The format was not recognized." It happens when I try to watch TV show/Movie previews.
    I can usually watch a few previews before the error comes up. Once the error comes up, sometimes I cannot watch the previews that I was able to watch just minutes ago. Other times, it seems to be dependent on the preview - some previews work fine and others don't work at all.
    Fortunately, I can still watch all purchased content.
    Apple TV is at 2.4. I've tried de/reauthorizing iTunes and logging out/in via Apple TV.
    Can anyone offer help? Anyone have the same issue?
    Message was edited by: Boople

    I just purchased a music video from iTunes onto my MacBook Pro and downloaded it to my apple tv and had the same problem.
    I also rented two movies on my MacBook Pro while traveling in Spain, when I got home and sync'd with apple tv it would not play on apple tv only the laptop. Got not authorized error... I then rent a movie directly from apple tv and that does play.
    This is painful and I just bought a second apple tv unit... regretting it so far!

  • They changed the way we see our appointments. That's awful! Is there a way to chnage back to the "old" way when you could see all your appointments at a glance????

    They changed the way we see our appointments. That's awful! Is there a way to chnage back to the "old" way when you could see all your appointments at a glance????

    Maybe I'm fool, but how I get the "day view"? I have three options on the top line, an icon that seems a computer (a square and two lines), a magnifying glass to search a especific item and a "plus" to add appointments. The "day view" isn't any more there - that's the point!!! Using the first icon a get the full month-that uses 2/3 of the screen- and two lines of appointments...To see the rest I have to slide up and down the two lines taking care to not touch the month...

Maybe you are looking for

  • Can no longer leave mail on server

    After 4 hours with ATT and Apple including an Apple call back that never came I have not solved what seemed a simple problem. In the past my phones have left messages that I deleted from my phone on the Att/yahoo server. They no longer do. If I delet

  • How to Update Encryption in WebLogic 7

    I am currently working on a web application and our payment provider has stopped supporting low strength encryption. This has caused the webapp to fail each time we try to send a secure transaction thru to the Payment Provider. Does anyone know the b

  • Wifi will connect but internet won't work

    So my iphone 4 will say its connected to the network (check mark beside network and good signal) but when I try to open a web page/app store/youtube it says "cannot open page not connected blah blah blah" some of my friends iphone 3gs' work no proble

  • Loss of the services of Oracle 10g Express DB

    Hi, I don't know why those services disappeared this morning after I've logged into the PC, on which everything was set up (I mean the DB) and was working fine. It seems they disappeared after the reboot of the machine. Nothing was intentionally done

  • No sim card installed error on itunes, noservice on the phone.

    am using iphone 3gs version 4.1.. now tried to upgrade it to iOS 6, trieed to download and install through itunes. After updating am unable to activate the phone, as its saying connect to itunes to activate. When I connect it to itunes its showing th