Help! The directory C:\Windows does not appear to be a valid

Help! The directory C:\Windows does not appear to be a valid

Postby levithanh0209 » 11.07.2019, 10:15

Hi there!

I'm Sharing an issue and a fix. We had the following error while patching with WSUSOU on 2012R2:

Error: 3

The directory C:\Windows does not appear to be a valid Windows directory.
Ensure that the /WinDir option that is specified is valid. For more information,
refer to the help by running DISM.exe /WinDir /?.

This error ended up being the result of having an extra folder in C:\Windows\servicing\Version\

In our case we had created the following folders and dummy zero byte files on all 2016 servers to get around a system state Netbackup issue:

C:\Windows\servicing\Version\10.0.14393.0\amd64_installed
C:\Windows\servicing\Version\10.0.14393.0\x86_installed

and in the course of testing I had tested on a 2012R2 test server with this folder and WSUS Offlne Updater stopped working and threw the "The directory C:\Windows does not appear to be a valid Windows directory." error.

The fix is to check that “C:\Windows\servicing\Version “ folder above and remove the \10.0.14393.0 (you need to take ownership first)

Apparently the folder name in there has to agree with this registry key(it did not in my case):
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Version

And if there is an extra folder in there not mentioned in the key you get that error above. Taking ownership and deleting the folder not mentioned in the Reg Key allowed WSUSOU to work.

Thank you very much!
Vi Thanh.
levithanh0209
 
Posts: 1
Joined: 08.07.2019, 05:19

Return to Verschiedenes / Miscellaneous

Who is online

Users browsing this forum: Google [Bot] and 46 guests