I tried to re-add a restored VM to AD-domain to restore the trust relationship. However, I cannot change the workgroup/domain via Computer > Properties. There's an error message which says that C:\Windows\system32\netid.dll is broken and the "Computername" tab is not present in System Settings.
I ran SFC and it says the file is corrupt but can't repair it, and I didn't manage to replace it manually due to insufficient permissions. Using WMIC and "JoinDomainOrWorkgroup" also didn't work.
Is there any other way to fix this DLL / change the workgroup/domain membership / re-add the computer to the domain or restore the trust relationship?