Change ComputerName

  • Found an oddity that has been bugging me and I am wondering if you have any thoughts.

    During the computer rename I see that the following is run

    update_registry_key "/mnt/ntfs/Windows/System32/config/SYSTEM" "\ControlSet001\Control\ComputerName\ComputerName\ComputerName"

    I have confirmed that the name is getting changed by having the task finish to shell and manually checking the key.
    Also added to your script to cat the key prior to save.

    Unfortunately when Windows boots, the key is unchanged. Other keys seem to change as the Computer Name as reported by system properties is updated.

    This is on Windows 10 with the anniversary update. No sysprep files setup that I could find.

    Thanks in advance for any input.

  • I have seen this also with Windows 8. The only thing I can come up with is that Windows is somehow changing the key back to the old value. Perhaps some type of protection feature. I have not been able to get to the bottom of it or what It only seems to happen on some computers.