So, I've recently lost a 400GB VHDX image due to ReFS Enforced Integrity Streams (details on question How to turn ReFS “Enforced” file integrity off?).
So now I am trying to disable the Enforced option on all my other, more important, files. Millions of files, through deep directory structures that often exceed the 256 character "limit" on full path names.
But the "naive" solution Get-ChildItem -Path "X:\" -Recurse | Set-FileIntegrity -Enforce $False throws a ScriptCallDepthException.
Everywhere I search, even on Microsoft own Blogs and documentations, suggest the Get-ChildItem -Recurse command. But it is of no use in this situation.
What's the way to go, then?