You are currently offline, waiting for your internet to reconnect

"Access Denied" Error Message When Encrypting a Folder

This article was previously published under Q265114
When you attempt to encrypt a folder you may receive the following error message:
An error occurred applying attributes to the file:
X:\Filename. Access is denied.
This error can occur because a folder or a file within the folder has the System attribute applied to it.
To resolve this behavior, remove the System attribute from any files in the folder and from the folder itself.

IMPORTANT: Do not attempt to change attributes or to encrypt files in the Winnt or %Systemroot% folders or subfolders as you may not be able to restart your computer.
To display, set or remove attributes assigned to a file or folder use the attrib command. This command displays, sets, or removes the Read-Only, Archive, System, and Hidden attributes assigned to files or to folders.

The syntax for the attrib command is:attrib [+r|-r] [+a|-a] [+s|-s] [+h|-h] [[drive:][path] filename] [/s[/d]]

Parameter definitions:

Sets the Read-only file attribute.

Clears the Read-only file attribute.

Sets the Archive file attribute.

Clears the Archive file attribute.

Sets the System file attribute.

Clears the System file attribute.

Sets the Hidden file attribute.

Clears the Hidden file attribute.

[[drive:][path] filename]
Specifies the location and name of the directory, file, or set of files you want to process. You can use wildcard characters (? and *) in the filename parameter to display or to change the attributes for a group of files.

Processes matching files in the current directory and all of its subdirectories.

Processes directories.

Article ID: 265114 - Last Review: 03/01/2007 18:32:36 - Revision: 3.3

  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional Edition
  • kbenv kberrmsg kbprb KB265114