Server 2008 vm won't update

This is a server 2008 vm which originally was hosted on an XP host. Now I have it running inside Hyper-V on a Windows 10 host.

At first I thought that everything was ok. But now I can see two major problems. Firstly it won't update properly. It repeatedly detects the same 2 updates, but fails to install them. Secondly, it won't display the Roles it is configured for.

I've been googling around and found people suggesting the System Update Readiness tool KB947821. I installed this, but nothing changed. So now I'm looking for suggestions please?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

noxchoGlobal Support CoordinatorCommented:
You can try to download the updates you want locally and install them.

Are the roles already installed? And are you logged in under local Administrator?
TownTalkAuthor Commented:
I should have mentioned this in my original post... I already downloaded sp2, but it won't install and it doesn't give me a reason.

The roles are already installed, but i want to remove one. I originally configured the Terminal Server role, but the trial period has now expired. So I want to delete it if I could only get in there.

Yes I am logged on with full administrative privileges.
noxchoGlobal Support CoordinatorCommented:
But how do you know that update installation or SP2 installation failed?
Check in Event Logs if you have any error.
The Update installation initiates always the system snapshot taking. In case something goes wrong - it rolls back to this snapshot (restore points). Thus it can be that the system fails to take snapshot. Find out why. Are you able to use Windows Server Backup?

As for the role, have you tried a command line?
Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

TownTalkAuthor Commented:
When I tried installing sp2 it initially showed that it was preparing the update, and then a few seconds later it said "The installation did not complete succesfully". I'm not at home at the moment. I'll try your other suggestions later. Thanks for your help so far.
noxchoGlobal Support CoordinatorCommented:
Check if you are able to create restore points manually.
Lionel MMSmall Business IT ConsultantCommented:
How did you transfer the VM from XP to Win10? Did you do an export and an import of the VM or a simply copy of the VHD or VHDX file to the new host?
TownTalkAuthor Commented:
@noxcho: I tried the command line to query the server manager... It thought about it for a little while, and then in red letters it said "Error: Failed to initialize"

I tried Windows Server Backup.... A basic window opened, and inside a message said that it is not installed.

AFAIK Server 2008 doesn't support Restore Points. Volume Shadow Copies are used instead. It seems to be creating them ok.

@lionelmm: I just copied the VHD to the new host.
Lionel MMSmall Business IT ConsultantCommented:
Did you verify that the file permissions are the same?
TownTalkAuthor Commented:
@lionelmm: I assume you mean the permissions on the sp2  which won't install? I checked and it has modify permissions for everybody.
Lionel MMSmall Business IT ConsultantCommented:
No sorry I meant that the permissions on the VHD files, the virtual drive have the need permissions to run properly. For instance if you virtual hard disk drive is located on physical drive D of your system and in a directory called server2008 then go to that location in a command prompt and type icacls d:\server2008\Drive-C.vhd (or vhdx) and see what the permissions are then compare it to another VM you have that is working properly. For instance my server2008 vhdx has these permissions
NT VIRTUAL MACHINE\Virtual Machines:(R)
NT VIRTUAL MACHINE\8ECE7857-0D38-4DDE-8727-6ECD9D278313:(R,W)

Each VM and its drives, its VHDX files should have a unique NTFS permission like this one
NT VIRTUAL MACHINE\8ECE7857-0D38-4DDE-8727-6ECD9D278313:(R,W)
All the drives for a particular VM should have this same unique permission object
TownTalkAuthor Commented:
Yes I have similar permissions assigned, but just to be sure I assigned full permissions to the Everyone object. It made no difference though. If permissions were a problem I would expect more severe issues than I am seeing. This server works quite well apart from not updating and not seeing the roles.

I found something else which might help.... In server manager there is a link to show more information about the error. In a popup window it says: "The name of an attribute in an identity is not within the legal range ( Exception from HRESULT: 0x8007370B) For more information see the Event Log: Diagnostics, Event Viewer, Applications and Services Logs, Microsoft, Windows, Server Manager, Operational."

When I look at that log, I am seeing multiple occurances of Event 1601:

Could not discover the state of the system. An unexpected exception was found:
System.Runtime.InteropServices.COMException (0x8007370B): The name of an attribute in an identity is not within the legal range. (Exception from HRESULT: 0x8007370B)
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at Microsoft.Windows.ServerManager.ComponentInstaller.CreateSessionAndPackage(IntPtr& session, IntPtr& package)
   at Microsoft.Windows.ServerManager.ComponentInstaller.InitializeUpdateInfo()
   at Microsoft.Windows.ServerManager.ComponentInstaller.Initialize()
   at Microsoft.Windows.ServerManager.Common.Provider.Initialize(DocumentCollection documents)
   at Microsoft.Windows.ServerManager.ServerManagerModel.InternalRefreshModelResult(Object state)

I've googled the above and I mainly see suggestions to use the System Update Readiness tool which I've already installed. So I'm no closer yet.
Lionel MMSmall Business IT ConsultantCommented:
I just wanted to make sure of the permissions because of how you moved the virtual drive. I would not add any additional permissions to it though because as you said if it were not what it should be one could expect even greater issues, which you are not. Have you tried resetting the update catalog? If not check here for the manual instructions towards the bottom of this link;
TownTalkAuthor Commented:
Thanks for that link. I tried the simple method to reset the update catalog. It didn't work, so i'll try the full method next.
TownTalkAuthor Commented:
Ok I went through that extended routine for resetting the update catalog and it didn't change anything. I think it was more relevent to desktop products than servers though. A lot of the dll's mentioned do not exist. I have access to another healthy 2008 server and they dont exist there either.

So now I'm thinking I should re-install a fresh copy of this vm.
Lionel MMSmall Business IT ConsultantCommented:
That may be best--do you have any snapshots or backups you can use to go back to a time when it was working? If you do end up redoing your VM here is a suggestion for you. Once you have the VM setup with all the current updates and all the software you can install PRIOR TO joining it to the domain--export it so you have a "backup/copy" that you can use if this happens again. Then once you have joined it to the network and added any additional software and/or updates you should make snapshot (or export again) before you start adding any roles. This is what I do and it has saved me tons of time when things go wrong. I never put data on Drive C this way I can simply reuse the old virtual data drive from the failed VM.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
TownTalkAuthor Commented:
I'm pleased to say that my new Server 2008 vm is currently downloading 97 updates. Thank you so much for your help.

Lionel MMSmall Business IT ConsultantCommented:
There will be a whole bunch after the first set--keep installing them until you get no more updates as suggested earlier and good luck.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2008

From novice to tech pro — start learning today.