Quantcast
Viewing all articles
Browse latest Browse all 700

Detection State Unknown - Possible Cause

I have around 1000 machines i our environment in which i am facing the issue of detection state unknown .  

1. Inventory logs of these are good - as these are reporting to the database.

2. they are reporting to their MP and then to the Central Site.

3. even updates are getting sync in WUAHandler.log as getting the below logs.

Async searching of updates using WUAgent started. WUAHandler5/20/2013 10:47:21 AM4924 (0x133C)

Async searching completed.WUAHandler5/20/2013 10:49:28 AM4388 (0x1124)

Successfully completed scan.WUAHandler5/20/2013 10:49:29 AM4920 (0x1338)

Its a WSUS Update Source type ({5561D5BD-67C8-467D-A16D-0583DE9263ED}), adding it.WUAHandler5/20/2013 10:49:32 AM4920 (0x1338)

Existing WUA Managed server was already set (http://XXXXXXXXXXXXXXXXX:8530), skipping Group Policy registration.WUAHandler5/20/2013 10:49:32 AM4920 (0x1338)

Added Update Source ({5561D5BD-67C8-467D-A16D-0583DE9263ED}) of content type: 2WUAHandler5/20/2013 10:49:33 AM4920 (0x1338)

Async searching of updates using WUAgent started. WUAHandler5/20/2013 10:49:33 AM4920 (0x1338)

Async searching completed.WUAHandler5/20/2013 10:49:47 AM3568 (0x0DF0)

Successfully completed scan.WUAHandler5/20/2013 10:49:48 AM4920 (0x1338)

Async searching of updates using WUAgent started. WUAHandler5/20/2013 10:57:41 AM2212 (0x08A4)

Async searching completed.WUAHandler5/20/2013 10:58:01 AM3428 (0x0D64)

Successfully completed scan.WUAHandler5/20/2013 10:58:01 AM2212 (0x08A4)

Its a WSUS Update Source type ({5561D5BD-67C8-467D-A16D-0583DE9263ED}), adding it.WUAHandler5/21/2013 10:48:49 AM2456 (0x0998)

Existing WUA Managed server was already set (http://XXXXXXXXXXXX:8530), skipping Group Policy registration.WUAHandler5/21/2013 10:48:49 AM2456 (0x0998)

Added Update Source ({5561D5BD-67C8-467D-A16D-0583DE9263ED}) of content type: 2WUAHandler5/21/2013 10:48:49 AM2456 (0x0998)

Async searching of updates using WUAgent started. WUAHandler5/21/2013 10:48:50 AM2456 (0x0998)

Async searching completed.WUAHandler5/21/2013 10:49:32 AM2796 (0x0AEC)

Successfully completed scan.WUAHandler5/21/2013 10:49:33 AM2456 (0x0998).



I have tried below steps but with no luck.



1. Upgraded the Windows Update Agent on all the machines -  But nothing changes issue remains the same.
2. Checked all the status and client on MP for communication from client to MP machine is reporting to MP.
3. Checked the "windowsupdate.log"  for all machine everything looks good.
4. Followed below steps as found on Technet - 
                  1. Stop the Automatic Updates service and BITS service.
                         net stop wuauserv
                         net stop bits
                  2. Delete “%windir%\softwaredistribution” directory.
                  3. Start the Automatic Updates service and BITS service. When these two services 
                      have been started, they will auto-create “softwaredistribution” and its subfolder 
                     at system directory.
                                net start wuauserv
                               net start bits
                 4. After the “%windir%\softwaredistribution” directory has been generated, please 
                     let the client contact the WSUS server immediately.

                                wuauclt.exe /resetauthorization /detectnow
                 5. After 15 minutes, please check the client to confirm whether it detects needed 
                     updates. 

After following these steps also nothing changes and issue remains the same.

5. Run the blow script in order to update the status message - but nothing changes and issue remains the same.
     
     Option Explicit
       On Error Resume Next

        Call RefreshServerComplianceState

        ' WScript.Echo "Finished"

      Sub RefreshServerComplianceState()

              ' Initialize the UpdatesStore variable.
                dim newCCMUpdatesStore
   
    ' Create the COM object.
               set newCCMUpdatesStore = CreateObject ("Microsoft.CCM.UpdatesStore")

    ' Refresh the server compliance state by running the RefreshServerComplianceState method.
                newCCMUpdatesStore.RefreshServerComplianceState
   
    ' Output success message.
              '    wscript.echo "Ran RefreshServerComplianceState."

End Sub


 >>after this i came to a conclusion their can be an issue in the report also mentioned below.



          
              declare @DeploymentLocalID int
              select @DeploymentLocalID = AssignmentID from v_CIAssignment where Assignment_UniqueID = @DEPLOYMENTID
              declare @COLLCOUNT as int
              select @COLLCOUNT=count(*) from v_CIAssignmentTargetedMachines where AssignmentID=@DeploymentLocalID
              declare @LOCALUPDATEID int
              select @LOCALUPDATEID=CI_ID from v_UpdateCIs where CI_UniqueID=@UPDATEID

              select
              sn.StateName as Status,
              count(*) as NumberOfComputers,
              PComputers=convert(numeric(5,2), (isnull(count(*), 0)* 100.00 / isnull(nullif(@COLLCOUNT, 0), 1))),
              @DEPLOYMENTID as DeploymentID,
              @UPDATEID as UniqueUpdateID,
              sn.TopicType*10000 + sn.StateID as DeploymentStateID
              from v_UpdateState_Combined uc
              join v_StateNames sn
              on uc.StateType = sn.TopicType and sn.StateID=isnull(uc.StateID,0)
              join v_CIAssignmentTargetedMachines atm
              on uc.ResourceID = atm.ResourceID
              join v_CIAssignmentToCI aci on aci.CI_ID = @LOCALUPDATEID and aci.AssignmentID = @DeploymentLocalID
              where atm.AssignmentID=@DeploymentLocalID and uc.CI_ID=@LOCALUPDATEID
              group by sn.StateName, sn.TopicType, sn.StateID
              order by sn.StateName
            

]
            

But i am unable to get an idea that how and by which constraint and rule this query is taking the status (E.g by last states sent by the machine or any other)

4. I have created the below report in order to check the status of the machine state.

 Select US.ResourceID, vrs.Netbios_Name0,  sn.StateName , sn.StateDescription , us.StateTime, ws.LastHWScan, ws.TimeStamp from v_R_System vrs
            join v_UpdateState_Combined as us on vrs.ResourceID = us.ResourceID
            join v_StateNames as sn on us.StateID = sn.StateID
            Join v_GS_WORKSTATION_STATUS ws on ws.ResourceID = vrs.ResourceID
           where vrs.Netbios_Name0 = 'XXXXXX'

by this we are able to get the different status of the machine.






Viewing all articles
Browse latest Browse all 700

Trending Articles