In reply to Chris Hemedinger.

I thought so, but shouldn't $file.Attributes = 'ReadOnly' prevent that from happening?
I assigned the egp file to read-only. Other users only have read access too.