Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-2657

Reboot - Should detect Windows machine rename as pending reboot condition

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • 2
    • Windows 2015-10-07, Windows 2015-10-21

    Description

      One condition that necessitates a reboot on Windows is a computer rename.

      This can trivially be detected by comparing registry entries HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName and HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName

      The reason that this is a reboot condition is due to the Windows API call GetComputerName reading the NetBIOS name from the registry once upon boot, and that caching it for all subsequent calls. Note the documentation at https://msdn.microsoft.com/en-us/library/windows/desktop/ms724295(v=vs.85).aspx

      Attachments

        Issue Links

          Activity

            People

              ryan.gard Ryan Gard
              ethan Ethan Brown
              Ryan Gard Ryan Gard
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support