I want to get all registry exclusion and file exclusion from UWF, using the WMI.
I've already tried to invoke GetExclusions methods from UWF_RegistryFilter class but of no luck.
I am looking forward to a working sample code, thanks in advance for any help!
Found Manoj's answer only after I figured it out myself from a hint on a microsoft forum, when I wanted to put my code on SO. Therefore adding keywords Unified Write Filter and UWF_Volume (does it work like this?).
I used a slightly shorter syntax to access the properties, and also return the excluded files as the OP asked. I tried to make it as robust as possible, as it seems that there are some invalid volume entries. If someone has a clue what they are, please let me know.
Example output: