Print Queue Access Denied

Clear the print queue in Windows manually. Clear the print queue using the command prompt. Set up a batch file to clear the print queue. Fix 1: Clear the Print Queue Manually. You have to manually disable the Print Spooler service and delete the files in the queue. The process is easy. Here’s how to do it: Switch the printer off. To do this, follow these steps: Click Start, point to Programs, point to Administrative Tools, and then click Active Directory Users and Computers. In the navigation pane, right-click your domain name, and then click Properties. Click the Group Policy tab, click the GPO that you want to modify, and then click Edit.

-->

Applies To: Windows Server 2012

Planning security for your print servers and determining how to restrict access to them is an important part of print server administration. In Windows Vista® and Windows Server® 2008, only full system administrators were able to perform print administrative tasks. In Windows Server 2008 R2 and Windows Server 2012, you can delegate print management tasks directly to users who are not system administrators. You can also define default printer security settings that are inherited when you add new printers to your print server.

These changes enable the following improvements for printer and print server administration:

Queue
  • You can control access to resources and balance workloads by delegating specific print administrative tasks to users without adding them to the Administrators security group.

  • You can manage permission settings through the improved user interface of the Security tab in the Print Server Properties dialog box.

  • You can manage your printer infrastructure by configuring default printer security settings which new printers inherit automatically when you add them. You can configure the settings per server so that you do not have to configure the printers individually.

Configuring security settings

This section covers the following:

Note

Print server security can be configured only by members of the Administrators group.

The print server security user interface

In Windows Server 2012, users in the Administrators group can configure the print security settings directly by editing the print server access control list (ACL) permissions in the Print Management Microsoft Management Console (MMC) snap-in. (To view the ACL permissions for your printer server, open Server Manager, click Tools, and then click Print Management. In the left pane, click Print Servers, right-click the applicable print server and then click Properties. In the Print Server Properties dialog box, click the Security tab.)

Figure 1 shows the user interface of the Security tab that is opened by a user who is a member of the Administrators group.

Figure 1: Print Server Properties Security tab

In a domain, members of the Administrators group can remotely configure the print server security settings. You can do this by using the Print Management snap-in. The remote functionality for users to view the print server security user interface is supported for certain earlier operating systems, including Windows Server 2008, Windows Vista with SP1, and Windows Vista with SP2. However, the delegated print administrator functionality is currently only available on Windows Server 2008 R2 and Windows Server 2012.

Setting permissions in Print Server Properties

Print server permissions control the levels of access for users on a particular print server. Printer permissions control which printing tasks users can perform on newly added printers that are managed by the print server. Administrators should assign these permissions as needed to users who are not system administrators.

After an administrator customizes the security settings for the print server, all newly added printers to this print server automatically inherit these security settings. (The security settings for the existing printers on the server are not altered.)

The two levels of print server permissions are:

  • View Server

    The View Server permission assigns the ability to view the print server. Without the View Server permission, users cannot see the printers that are managed by the server. By default, this permission is given to members of the Everyone group.

  • Manage Server

    The Manage Server permission assigns the ability to create and delete print queues (with already installed drivers), add or delete ports, and add or delete forms. A standard user with this permission is called a “delegated print administrator.”

    Note

    Only users who have Manage Server access and are members of the Administrators group can add printer drivers.

The three levels of printer permissions are:

  • Print

    The Print permission assigns the ability for users to connect to printers and to print, pause, resume, start, and cancel their own documents. By default, this permission is given to members of the Everyone group when a print queue is created.

  • Manage Documents

    The Manage Documents permission assigns the ability to control job settings for all documents and to pause, restart, and delete all documents.

  • Manage Printers

    The Manage Printer permission assigns the ability to pause and restart the printer, change spooler settings, share a printer, adjust printer permissions, and change printer properties.

The ability to assign access to a printer on a per-user or a per-group basis makes it possible to manage printers from a central location. For example, an administrator could limit access to a printer in a public area while managing the printer from a more secure, central location.

In Windows Server 2012, the default print server and printer security settings are as follows:

Everyone

Creator Owner

Administrators

Print

Allow

Allow

Manage Documents

Allow

Allow

Manage Printers

Allow

View Server

Allow

Allow

Manage Server

Allow

Creating a delegated print administrator

Members of the Administrators group can create a full delegated print administrator by assigning the Manage Server permission to a user. When the Manage Server permission is assigned, the View Server permission is also automatically assigned. You can also delegate a subset of these permissions to create a partial delegated print administrator.

To create a full delegated print administrator

  1. Open Server Manager, click Tools, and then click Print Management.

    In the left pane, click Print Servers, right-click the applicable print server, and then click Properties.

    In Print Server Properties, click the Security tab.

  2. To configure permissions for a new group or user, click Add. Type the name of the group or user that you want to set permissions for by using the following format: domain nameusername. Click OK to close the dialog box.

    Tip

    Before adding any printers to the server, you should create a group of users who can perform delegated print tasks, and then configure the proper permissions. If you do this, all newly added printers automatically inherit these settings, and you do not have to individually configure existing printers for the print server.

  3. Highlight the user or group name that you just added, and in Permissions for <user or group name>, click Allow for the Manage Server permission. (The View Server permission is assigned too.)

  4. Select the Allow check boxes for the Print, Manage Documents, and Manage Printers permissions.

To create a partial delegated print administrator

  • To enable an administrator to add printers:

    Follow the previous instructions, but select the Allow check boxes for the Manage Server and Print permissions. (View Server permission is assigned automatically too.)

  • To enable an administrator to manage existing print queues:

    Follow the previous instructions, but select the Allow check boxes for the View Server, Print, Manage Documents, and Manage Printer permissions.

Print-related permissions and the tasks they enable

The following table lists the print tasks that a user can perform when assigned the corresponding permissions from the Print Server PropertiesSecurity tab.

Print

Manage Printers

Manage Documents

View Server

Manage Server

View the print queue (on the local server)

Yes

Print owned documents to the queue

Yes

View, pause, restart, and cancel all print jobs in a queue

Yes

Update installed or included drivers, and drivers available from Windows Update, to an existing queue

Note

This does not apply to clustered print environments.

Yes

Add or delete a form in a queue

Yes

View the printer properties

Yes

View the print server proprieties

Yes

Configure printer security permissions in a print queue

Yes

Manage the print server security descriptor setServerSecurityDescirptor flag

Add a print queue to a print server

Yes, when the drivers are already installed.

Delete a print queue from a print server

Yes, but only the queue they have permissions for.

Add a print driver to a print server

Yes, but locally only. The user must be a member of the Administrators group to add drivers (including remotely) to the print server.

Delete a print driver from a print server

Yes, but only for drivers (not driver packages).

Add, delete, and configure ports on a print server

Yes

Add and delete a form on a print server

A user who is assigned Manage Printers, but not Manage Server, permissions can add a form when AllowUserManageForms is set in the Windows registry to a non-zero value. A user can add forms up to the specified value for AllowUserManageForms. A user can only add user forms and delete user forms. However, a user with SERVER_ACCESS_ADMINISTER permission can add and delete printer and user forms with no limitations.

Yes

Share the printer

Yes, if you have Manage Printer permissions on the print server and the File and Printer Sharing* exceptions have been enabled in Windows Firewall with Advanced Security.

Yes, if you have Manage Printer permissions on the print server and the File and Printer Sharing* exceptions have been enabled in Windows Firewall with Advanced Security.

Designing and creating print security groups

Following is a list of suggested print security groups and their associated permissions:

  • System Administrators Group: Consists of members of the Administrators security group.

  • Print Administrators Group: Consists of members of the System Administrators group and users who have been assigned some set of delegated print administrator rights. Depending on what rights you assign, members of this group may be considered full delegated administrators or partial delegated administrators.

Note

If you want to mitigate the ability of members of the Administrators group to perform print management tasks, instead of adding whole groups to these print security groups, you can add members individually, and then assign the proper permissions.

The following table demonstrates which actions can be performed depending on the permissions assigned:

Standard Users: Can connect to printers and print their documents (Permissions: Print, View Server)

Partial Delegated Administrators: Can add printers (Permissions: Print, View Server, Manage Server)

Partial Delegated Administrators: Can manage existing queues (Permissions: Print, View Server, Manage Printers, Manage Documents)

Full Delegated Administrators: Can perform all administrative print tasks (Permissions: Print, Manage Documents, Manage Printers, View Server, Manage Server)

System Administrators: Can fully administer the system (Permissons: Print, Manage Documents, Manage Printers, View Server, Manage Server)

View the print queue on the local server

Yes

Yes

Yes

Yes

Yes

Print to the queue

Yes

Yes

Yes

Yes

Yes

View, pause, restart, or cancel print jobs owned by the user in a queue

Yes

Yes

Yes

Yes

Yes

Modify all print jobs in a queue

Yes

Yes

Yes

Update an installed or included driver to an existing queue

Yes

Yes

Yes

Add or delete a form in the queue

Yes

Yes

Yes

View the printer properties

Yes

Yes

Yes

Yes

Yes

View the print server proprieties

Yes

Yes

Yes

Yes

Yes

Manage security permission on the print queue

Yes

Yes

Yes

Manage the print server security descriptor setServerSecurityDescirptor flag

Yes

Add and delete the print queue on a server

Yes, but you can add a printer using only a preinstalled driver.

Yes, but you can only delete the print queue with the Manage Printer permission.

Yes, but you can add a printer using only a preinstalled driver.

Yes

Add and delete a print driver on a server

Yes, but locally only. The user must be a member of the Administrators group to add non-included drivers or to add drivers remotely to the print server.

Yes, but locally only. The user must be a member of the Administrators group to add non-included drivers or to add drivers remotely to the print server.

Yes

Add, delete, and configure ports on a print server

Yes

Yes

Yes

Add and delete a form on a print server

Yes

Yes

Yes

Share the printer

Yes, if you have Manage Printer permissions on the print server and the File and Printer Sharing* exceptions have been enabled in Windows Firewall with Advanced Security.

Yes, if the File and Printer Sharing* exceptions have been enabled in Windows Firewall with Advanced Security.

Yes

Note

We recommend that only a member of the System Administrators group install drivers. If a delegated print administrator plans to remotely add or manage queues, the System Administrator should install the driver to the following directory by using Windows PowerShell® or manually:systemdrive<STRONG>Windows<STRONG>System32<STRONG>spool<STRONG>drivers<EM>processor_architecture<STRONG>3

For more information about Windows PowerShell Print Management cmdlets, see Print Management Cmdlets in Windows PowerShell.


This article talks about 'access denied' error which may appear in a variety of situations, and provides step-by-step solutions for each Access Denied scenarios. This error is explained in 5 cases, including most situations you may encounter. If you are experiencing same error message, keep reading to check solutions.


Overview on access denied error
Issue 1: You cannot open a file or folder
Issue 2: File / Folder access denied, error changing or deleting file or folder
Issue 3: Receive 'Location is not available. Access is denied.' error message
Issue 4: Error 5: Access Denied
Issue 5: DiskPart has encountered an error: Access is denied
Summary


Overview on access denied error

If you are getting Access Denied error in Windows, then you are not alone. This is a quite common problem related to permission, file system, etc. It occurs when you are unable to open a file or folder, a service on your computer fails to start, cannot open file on a network, unable to access web site, etc. Error messages differ from issue to issue, for example, it can be 'Folder Access Denied. You need permission to perform this action. You require permission from TrustedInstaller to make changes to this folder' or 'Location is not available. E: is not accessible. Access is denied.'


Let's see two real world cases on this error:

'I got problem in deleting a folder. Here is the story: I attempted to delete a folder using Shift + Del, but the Access Denied error occurred. The folder cannot be deleted and so did files in the folder. Also, I tried deleting as an Administrator, but it says I do not have that privileges. However, I'm the only user and it is the very administrator account. The error message is: <file path> is not accessible. Access is denied. I checked solutions online, and tried some, but none worked. Any suggestions?'

' couple of day ago I downloaded DOTA from STEAM I got an update error when I tried to launch the game. I looked to solutions and found one which asks to delete 'downloading' folder located in Steamapps. Unfortunately, I couldn't delete it, as it requires Administrator permission. I clicked Continue and got Access Denied error. I restarted PC and logged in as Administrator and still cannot delete it! Any idea to fix this?'


Issue 1: You cannot open a file or folder


Symptom

When you try to open a file or folder in Microsoft Windows, you are unable to access is and receive error message like:

'Folder is not accessible. Access is denied.' (Folder here represents the name of the folder you cannot open.)

'You don't currently have permission to access this folder. Click Continue to permanently get access to this folder.'

'You have been denied permission to access this folder. To gain access to this folder you will need to use the security tab.'


Causes

An 'Access Denied' error can occur for one or more of the following reasons:

  • The folder ownership has been changed
  • You do not have the appropriate permissions
  • The file in encrypted
  • The files are stored on a Windows.old folder from previous system. This often happens after your computer upgrades to a new version of Windows

  • Resolution

    Solution 1: Take ownership of the file or folder in Windows

    Step 1 Select the file or folder you want to take ownership and right-click it to select Properties from context menu.

    Step 2 Select the Security tab and click Advanced button. Then click Change. If you are asked to give confirmation or administrator password, then provide confirmation or type the password.

    Step 3 Type the name of the person whom you want to give ownership to, and click Check Names.

    Step 4 Click OK. If you want this person to be the owner of the folders and files that are stored in this folder, select check box of Replace owner on subcontainers and objects.

    Step 5 Click OK.


    Solution 2: Change permission

    It is common that the access denied error you experience is related to permission. Permissions rules whether you can access or change files and folders. If you do not gain permission, you are not able to access specified location. If you are logging in as administrator and still cannot access a folder, you can try changing permissions. Note: to change permission you should log on as an administrator.

    Step 1 Select the file or folder and right-click it to select Properties. Then click Security tab.

    Step 2 Click your name under Group or user names, and you can see permissions you have.

    Step 3 Select all boxes under Allow and click OK and Apply. Then you'll get full control of the file or folder, such as modify, read & execute, list folder contents, etc.


    Solution 3: The file or folder is encrypted

    Data encryption is one of the best solutions to protect data again any unwanted access. You are unable to access encrypt file or folder without proper certificate. You can have a check whether the folder is encrypted or not.

    Step 1 Select and right-click the file or folder to click Properties.

    Step 2 Select General tab, and then click Advanced button. If the Encrypt contents to secure data is selected, then file is encrypted, and you'll have to get the certificate to open it.


    Issue 2: File / Folder access denied, error changing or deleting file or folder


    Symptom

    When you try to delete, copy, move or change a file or folder on your computer, you might be blocked by Accedd denied error which prompts you donot have permission to do so. The error message could be:

    'Folder Access Denied. You need permission to perform this action. You require permission from TrustedInstaller to make changes to this folder.'

    'Destination Folder Access Denied. You need permission to perform this action.'


    Causes

    This error might be caused by following reasons:

  • The file you cannot access is in use
  • You do not have permission
  • The file that cannot be moved or chaged is corrupt
  • The user profile might be corrupt

  • Resolution

    Solution 1: Take ownership using Command Prompt

    There are a couple of methods to take ownership of a file or folder, and this solution modifies ownership in Command Prompt. It's OK if you follow steps in previous part to take ownership.

    Step 1 Right-click on Start menu and select Command Prompt (Admin). If you are prompted for password or conformation, provide password or give confirmation.

    Step 2 Confirm the path of the folder you want to take ownership. Here, say you want to take ownership of the folder Photos of E drive and the address is : E:Photos

    Step 3 Type command takeown /f 'full path of the file or folder', which, in this case, should be takeown /f 'E:Photos'. Then press Enter.

    Step 4 Once the process completes, restart computer and check if the problem is removed.


    Solution 2: Delete corrupt files with third-party software

    Corrupted files cannot work properly and these files can be of any file type like pictures, documents, system files, etc. Many corrupted files cannot be repaired or even cannot be deleted. Here is an easier solution to delete corrupt files.

    Step 1 Download, install and launch Eassos DiskGenius.

    Denied

    Step 2 Select the corrupt file or folder you want to delete, right-click it and select Delete Files Directly.


    Step 3 Click Delete button to delete selected file. Note: files deleted in this way won't be put into Recycle Bin, please make sure these files are no longer important to you.

    Tips on preventing files from getting corrupted:

    Ÿ
  • Save files properly. When something goes wrong or error occurs while saving files, files may get corrupted.
  • Access
  • Remove USB storage device safely. Click Safely Remove hardware and Eject Media before remove USB devices.
  • Shut down computer properly. To turn off computer, you should click Start button and click Shut down instead of pressing Power button directly.

  • Solution 3: Create a new local user account

    If the access denied issue is caused by a corrupt account, you can resolve it by creating a new local user profile / account. To do that, follow these steps:

    Step 1 Click Start menu and select Settings. Click Accounts on the Windows Settings pane.

    Step 2 Select 'Family & other people' on the left side and then click 'Add someone else to this PC'.

    Denied

    Step 3 Click link 'I don't have this person's sign-in information' and click Next. On next screen, click 'Add a user account without a Microsoft' account and click Next. Then you can enter user name, password and password hint, and then select Next.


    Issue 3:Receive 'Location is not available. Access is denied.' error message


    Symptom

    When you are trying to open a partition on local hard drive or USB devices, you cannot open it and receive error message:

    Location is not available. E: is not accessible. Access is denied.


    Causes


  • File system corruption. File system on the drive is corrupt and thus it is no longer accessible.
  • You do not have proper permission.

  • Resolution

    Solution 1: Change permission for the drive

    Step 1 In Windows Explorer, right-click the partition that you cannot access and click Properties. Continue clicking Security -> Advanced.

    Step 2 Click Add in Advanced Security Settings and on next screen click Select a principal.

    Step 3 Enter the username to select and click OK. Then you should select follow information:


    Type: Allow
    Applies to: This Folder, subfolder and files
    Basic Permissions: Full Control

    Step 4 Click OK and Apply to save changes.

    Solution 2: Recover data from inaccessible drive and format it.

    If changing permission does not help, you can recover data from the inaccessible drive and format the disk to repair the error. It's easy to retrieve data when location is not available and access is denied. Here is the guide to recover data from corrupt drive.

    Step 1 Install and launch Eassos DiskGenius, then check if files in this partition can be displayed directly. If not, go to next step.

    Step 2 Select the inaccessible drive and click File Recovery button from the toolbar. Make sure you are selecting the correct partition.

    Step 3 Select Complete Recovery mode and click Start button. The full scan will start to search for files and folders in selected partition.


    Step 4 Preview files. File found by Eassos DiskGenius will be displayed automatically during scanning, and you can preview listed files and folders to check whether they are correct or damaged.

    Step 5 Recover data. Select files and folders you want to recover and right-click them to select 'Copy to'. Then you can set a location to save recovered data.


    Issue 4: Error 5: Access Denied


    Symptom

    When you install application or game on your computer, you are prevented from accessing certain location or modifying files; also, you attempt to start certain service or software but fails. Error messages you may receive as follows:

    'Windows could not start the sshd service on local computer. Error 5: Access is denied.'

    'Setup was unable to create the directory 'full file path'. Error 5: Access is denied.'

    'Unable to execute file in the temporary directory. Setup aborted. Error 5: Access is denied.'


    Cause

    The main reason of this error is permission issue. If you do not have the Administrator privileges or the account you logged in is not administrator account, the access denied error is tend to appear.


    Resolution

    Solution 1: Fix permission issue in temp folder

    Step 1 Double click Computer icon to open Windows Explorer. Then type %appdata%..local in the address bar and press Enter.

    Clear Print Queue Access Denied

    Step 2 Select and right-click on Temp folder and click Properties. Click Security tab and click Advanced button.

    Step 3 Make sure the option 'Replace all child object permission with inheritable permissions from this object' is selected.

    Step 4 Select entries that are not inherited from 'C:Users[Username]' folder and click Remove. Click Apply and OK.

    Solution 2: Make your account administrator

    Step 1 Press key combination Windows + R to open Run dialogue where you should type netplwiz and press Enter.

    Step 2 Select the user account that you want to change it to administrator and click Properties.

    Step 3 Click 'Group Membership' tab and select Administrator, then click Apply and OK.


    Issue 5: DiskPart has encountered an error: Access is denied


    Symptom

    When you use DiskPart to clean a disk, you cannot complete the task and receive error message:

    DISKPART> clean

    DiskPart has encountered an error: Access is denied.

    See the System Event Log for more information.


    Causes


  • You are not authorized.
  • The device you want to clean is write-protected.

  • Resolution

    Solution 1: Run Command Prompt as Administrator

    Step 1 Make sure you are logging on your computer as the Administrator account. If not, restart your PC and log on Administrator account.

    Step 2 Click Start menu and enter cmd in search box.

    Step 3 Right-click 'cmd.exe' and choose Run as administrator. If you are prompted for password or confirmation, then enter password or give confirmation.

    Solution 2: Remove write protection

    Step 1 Click Windows + R to open Run. Type regedit in Run dialog and click OK to open Registry Editor.

    Step 2 In Registry Editor browse path HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlStorageDevicePolicies

    Step 3 Right click key WriteProtect and change the value to 0.


    Summary


    In this article we discuss Access Denied error in 5 scenarios and provide step-by-step solutions to each issue. We hope these solutions are useful to you. If they are proved to be useful, please share it to help more people. If you have any questions or better solutions, please feel free to share or contact us.