Of course, as any good issue; it doesn't reproduce on a clean installation of Windows 11 25H2 - but it does reproduce with my 4 year trusty Windows 11 (originally 22H2) VM.
Fortunately, it *does* reproduce with wimcapture, out-of-the-box. A totally random number of files fail capture like so:
Code: Select all
[ERROR] Can't open "\??\e:\Windows\System32\settings.dat:WofCompressedData" for reading (status=c0000022): {Access Denied}
A process has requested access to an object, but has not been granted those access rights
ERROR: Exiting with error code 47:
Failed to open a file.
The error message is always:
A process has requested access to an object, but has not been granted those access rights
ERROR: Exiting with error code 47:
Failed to open a file.
And the error source is always the WofCompressedData alternate data stream.
Now, I can just run Notepad on this file:
Code: Select all
C:\wim>notepad e:\windows\system32\settings.dat
The file is NOT WoF compressed either!
Code: Select all
C:\wim>compact e:\windows\system32\settings.dat
Listing e:\windows\system32\
New files added to this directory will not be compressed.
8192 : 8192 = 1.0 to 1 settings.dat
Of 1 files within 1 directories
0 are compressed and 1 are not compressed.
8,192 total bytes of data are stored in 8,192 bytes.
The compression ratio is 1.0 to 1.Code: Select all
C:\wim>icacls e:\windows\system32\settings.dat
e:\windows\system32\settings.dat NT SERVICE\TrustedInstaller:(F)
BUILTIN\Administrators:(RX)
NT AUTHORITY\SYSTEM:(RX)
BUILTIN\Users:(RX)
APPLICATION PACKAGE AUTHORITY\ALL APPLICATION PACKAGES:(RX)
APPLICATION PACKAGE AUTHORITY\ALL RESTRICTED APPLICATION PACKAGES:(RX)
Successfully processed 1 files; Failed processing 0 files
What do you think is going on here?
Has Windows PE/RE introduced some kind of strange limitation for WoF alternate data streams at some point?
Is there a way for wimlib to NOT request manual access to THOSE STREAMS ONLY, letting the WoF provider serve the necessary data where applicable?
This would also provide in better space savings thanks to integrated data deduplication - no?