I tried to change the access rights for a path and a file. But it gave me an error. Exception calling "SetAccessRule" with "1" argument(s): "The trust relationship between this workstation and the primary domain failed. The scripts I've used, were definitely working before, so the issue wasn't with the script. I used these scripts, … Continue reading SetAccessRule fails “The trust relationship between this workstation and the primary domain failed.”