This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Events broken in RR

Refering back to my ticket on the "old" forum...

http://en.community.dell.com/techcenter/data-protection/f/4816/t/19987712

 

Events in to the windows event viewer doesnt work. All normal bits checked, in RR, reg keys, support havent found a solution yet

Parents
  • So this is the Powershell (.ps1) script i have pieced together. Patch p-1859.msi needs to be on desktop of administrator .

    Has worked on a few cores!!

     

    #Script to Fiox RR not creating event log or events in windows (UK)
    #Script by Stephen Stern With assistance from Tudor Popescu (22/09/2016)
    
    Start-Transcript -Path "C:\RREventFix.LOG"
    
    # Set windows system local
    Set-WinSystemLocale  en-GB
    
    #Set RR region
    $lcid=”2057”
    Invoke-RestMethod -Uri "https://$($env:computername):8006/apprecovery/api/core/localization/newCulture/$lcid" -Method POST -UseDefaultCredentials
    
    Start-Sleep -s 30
    
    # Disable and stop some services
    Set-Service RapidRecoveryCore -StartupType "disabled"
    Stop-Service RapidRecoveryCore
    Stop-Service EventLog -force
    Stop-Service "SRM Web Service" -force
    Stop-Service DellDRLogSvc -force
    
    # Delete keys we dont need
    Set-Location -Path Registry::HKEY_LOCAL_MACHINE\SOFTWARE\AppRecovery\Core\Agents
    $allAgents = dir | select Name
    
    foreach ($agent in $allAgents)
    {
        $eventsService = "Registry::" + $agent.Name + "\EventsService"
        if (!(Test-Path $eventsService)) {continue}
        try {
            Remove-Item -Recurse -Path $eventsService
            Write ("Removed " + $eventsService)
        }
    	catch {}
    }
    
    #try {
    #        Remove-Item -Recurse -Path Registry::HKEY_LOCAL_MACHINE\SOFTWARE\AppRecovery\Core\Events
    #    }
    #	catch {}
    
    # Uninstall old patches
    $packages = @("P-18*")
    foreach($package in $packages){
      $app = Get-WmiObject -Class Win32_Product | Where-Object {
        $_.Name -match "$package"
      }
      $app.Uninstall()
    }
    
    # Wait for uninstall
    Start-Sleep -s 30
    
    # Install new patch which is on desktop
    Start-Process "c:\users\administrator\Desktop\P-1859.msi" /qn -Wait
    
    #end eventviewer if open
    taskkill /im "mmc.exe"
    
    # Start procs
    Start-Service EventLog
    Start-Service MSMQ
    Start-Service Wecsvc
    Start-Service NetMsmqActivator
    Start-Service "SRM Web Service"
    Start-Service DellDRLogSvc
    
    stop-Transcript
    

Reply
  • So this is the Powershell (.ps1) script i have pieced together. Patch p-1859.msi needs to be on desktop of administrator .

    Has worked on a few cores!!

     

    #Script to Fiox RR not creating event log or events in windows (UK)
    #Script by Stephen Stern With assistance from Tudor Popescu (22/09/2016)
    
    Start-Transcript -Path "C:\RREventFix.LOG"
    
    # Set windows system local
    Set-WinSystemLocale  en-GB
    
    #Set RR region
    $lcid=”2057”
    Invoke-RestMethod -Uri "https://$($env:computername):8006/apprecovery/api/core/localization/newCulture/$lcid" -Method POST -UseDefaultCredentials
    
    Start-Sleep -s 30
    
    # Disable and stop some services
    Set-Service RapidRecoveryCore -StartupType "disabled"
    Stop-Service RapidRecoveryCore
    Stop-Service EventLog -force
    Stop-Service "SRM Web Service" -force
    Stop-Service DellDRLogSvc -force
    
    # Delete keys we dont need
    Set-Location -Path Registry::HKEY_LOCAL_MACHINE\SOFTWARE\AppRecovery\Core\Agents
    $allAgents = dir | select Name
    
    foreach ($agent in $allAgents)
    {
        $eventsService = "Registry::" + $agent.Name + "\EventsService"
        if (!(Test-Path $eventsService)) {continue}
        try {
            Remove-Item -Recurse -Path $eventsService
            Write ("Removed " + $eventsService)
        }
    	catch {}
    }
    
    #try {
    #        Remove-Item -Recurse -Path Registry::HKEY_LOCAL_MACHINE\SOFTWARE\AppRecovery\Core\Events
    #    }
    #	catch {}
    
    # Uninstall old patches
    $packages = @("P-18*")
    foreach($package in $packages){
      $app = Get-WmiObject -Class Win32_Product | Where-Object {
        $_.Name -match "$package"
      }
      $app.Uninstall()
    }
    
    # Wait for uninstall
    Start-Sleep -s 30
    
    # Install new patch which is on desktop
    Start-Process "c:\users\administrator\Desktop\P-1859.msi" /qn -Wait
    
    #end eventviewer if open
    taskkill /im "mmc.exe"
    
    # Start procs
    Start-Service EventLog
    Start-Service MSMQ
    Start-Service Wecsvc
    Start-Service NetMsmqActivator
    Start-Service "SRM Web Service"
    Start-Service DellDRLogSvc
    
    stop-Transcript
    

Children
No Data