When accessing a restrictive folder, sometimes it will pop up for you to enter credentials but sometimes it will simply give you an error message saying "Windows cannot access this folder..... You don't have permission...."
Question to you, if this folder is what I don't have a proper permission how to surely have a popup allowing entering credentials rather than an error message without the ability to enter credentials?