# Specify the path to the hidden directory where the program is installed $folderPath = "C:\Users\UserA\AppData\YourHiddenDirectory" # Remove all permissions for all users on the folder $acl = Get-Acl $folderPath $acl.SetAccessRuleProtection($true, $false) Set-Acl $folderPath $acl