Close Menu
    Facebook X (Twitter) Instagram
    Tuesday, May 20
    X (Twitter) LinkedIn
    All about Endpoint Management
    • Home
    All about Endpoint Management
    Home»CM2012»Configmgr 2012 Failed to get the Availability State on server for role SMS Distribution Point Error 6 sitestat.log

    Configmgr 2012 Failed to get the Availability State on server for role SMS Distribution Point Error 6 sitestat.log

    Eswar KonetiBy Eswar KonetiDecember 13, 3:08 pm2 Mins Read CM2012 7,964 Views
    Share
    Facebook Twitter LinkedIn Reddit

    Quick post on the Distribution Point availability Error.Primary Site cannot check the availability of the Remote Distribution Point servers and Sitestat.log generating error messages continuously for DP servers

    “omGetServerRoleAvailabilityState could not read from the registry on CMDP01.eskonr.com; error = 6:”

    “Failed to get the Availability State on server CMDP01.eskonr.com for role SMS Distribution Point.”

    image

    How to Fix this ?

    Create a DWord Registry key with name ‘Availability State’ and value=0 on the problem DP servers.

     

    image

    Path to create DW Registry name and value:

    HKLM\SOFTWARE\Microsoft\SMS\Operations Management\SMS Server Role\SMS Distribution Point

    After sometime, site server polls the Remote DP servers,it will check the availability and update the information in the Database.

    you see something like this.

    image

    if you are having this issue on multiple servers,use the below VB script.

    ON ERROR RESUME NEXT
    Const HKEY_LOCAL_MACHINE = &H80000002
    Set objfso = CreateObject ("Scripting.FileSystemObject")
    Set servers = objfso.OpenTextFile ("servers.txt", 1)
    Set outputList = objfso.OpenTextFile ("outputList.txt", 2, True)
    do While Not servers.AtEndOfStream
    strcomputer=servers.readline
    Set oReg=GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
    strKeyPath = "SOFTWARE\Microsoft\SMS\Operations Management\SMS Server Role\SMS Distribution Point"
    oreg.setDWORDValue HKEY_LOCAL_MACHINE,strkeypath, "Availability State" , "0"
    if err=0 then
    outputList.WriteLine "Registry added onto" & vbTab & strcomputer
    else
    outputList.WriteLine "Registry not added onto" & vbTab & strcomputer
    end if
    loop
    msgbox "Done"

    configmgr Error:6 Failed for role SMS Distribution get the Availability State omGetServerRoleAvailabilityState on server SCCM 2012 sitestat.log
    Share. Twitter LinkedIn Email Facebook Reddit

    Related Posts

    Migrate Microsoft 365 Updates from SCCM/MECM to Intune for Co-Managed Devices

    February 11, 9:50 pm

    How to detect the source of registry key modifications on windows devices – Intune

    November 21, 8:49 pm

    Identifying devices managed by Intune but not reporting to WUfB using KQL

    November 09, 10:28 am

    10 Comments

    1. Prashanth Kumar on August 6, 2014 7:49 PM

      Please find the sitestat.log error for DB server
      omGetServerRoleAvailabilityState could not read from the registry on XXXXXXDB1.domain.net; error = 5:
      ---->: Failed to get the Availability State on server XXXXXXDB1.domain.net for role SMS SQL Server.

      Reply
      • Eswar Koneti on August 12, 2014 11:33 AM

        the fix what is posted on the blog did not work on the DB server ?

        Reply
    2. Prashanth Kumar on August 6, 2014 1:48 PM

      thanks a lot it worked for our Dp's, but still the same issue for Data base server can you please help us

      Reply
    3. Marek G. on February 25, 2014 1:49 PM

      Site System Status Summarizer detected that the availability of the "Distribution point" role on server "" has changed to Online. This is ok . But state site status for this server component server is still critical

      Reply
      • Eswar Koneti on February 28, 2014 8:06 AM

        right click on the site status and see what the error says ? you can also check sitestat.log for any good findings.If you see the error about unable to find the valid drive or something related to drive info,you can ignore it.

        Reply
    4. Marek G. on February 25, 2014 1:00 PM

      Thank you for post . I look to the site status I have still status critical . In the log i found error and create reigistry key . But status is still critical ...

      Reply
      • Eswar Koneti on February 25, 2014 1:02 PM

        what does the error says ? can you post it pls ?

        Reply
    5. seb on February 5, 2014 2:38 AM

      hi, do you know why it's not working in the beginning?
      manually creating this key won't prevent the DP's to report an Availability state other that online if the need arise?
      thanks!

      Reply
      • Eswar Koneti on February 5, 2014 9:08 AM

        not sure what is the reason for reporting the DP state unavailable but creating the Reg value fixed the issue.
        and there is no reason that it happens for everyone.if it arises,fix it by using the reg key.

        Reply
    6. Matt on December 13, 2013 9:31 PM

      It worked perfectly. Thank you.

      Reply

    Leave a ReplyCancel reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Sign Up

    Get email notifications for new posts.

    Author

    I’m Eswar Koneti ,a tech enthusiast, security advocate, and your guide to Microsoft Intune and Modern Device Management. My goal? To turn complex tech into actionable insights for a streamlined management experience. Let’s navigate this journey together!

    Support

    Awards

    Archives

    © Copyright 2009-2024 Eswar Koneti, All rights reserved.

    Type above and press Enter to search. Press Esc to cancel.