Forum Discussion
dyckwal
Mar 05, 2025Copper Contributor
changing file attribute/metadata
Hello all, when I run a script that gives all of the file properties, I can see one named 'protected' and the value is 'yes'? Now I want this changed to 'No'. I am new to powershell and have been s...
dyckwal
Mar 06, 2025Copper Contributor
Lain,
extra info on file in question
LainRobertson
Mar 07, 2025Silver Contributor
Hi dyckwal,
I've had a read of the old Windows Scripting Host COM object documentation and while I can see a couple of different ways for reading the values (such as yours from your original script), there doesn't appear to be anyway to set the values out-of-the-box (I did notice some third-party solutions but you can probably find those yourself if you run a search).
I'd be happy to stand corrected on this as - like I said above - I don't work with the COM model these days, meaning I'm no authority on this space.
As an afterthought, I did wonder if the attribute named "Protected" isn't reflective of the DRM protection state, where if it is, I'm fairly certain that's not something you could clear anyway. But that's only guesswork on my part.
Cheers,
Lain
- dyckwalMar 07, 2025Copper Contributor
Hello LainRobertson ,
meanwhile found some third-party software, DRmare Apple Music Converter for Windows, which does the trick. need to buy a license off course 😁, so for now going to think about it.
Thanks for your time and effort to look at my issue.