FilenotFoundException (Access Denied) on windows

I have an intranet web application from which I am trying to access files on a windows network share. I have a domain userid and password of an account that has access to the files, but I do not wish to permanenty map a drive to the location of the files, I "merely" wish to provide the credentials at the time I try and access the files. The best I can do at this stage is get a FileNotFoundException (Access Denied) trying to use a URLConnection. Does anyone know if/how this can be done?
thanks

I ran into the same problem too. It appears you may be able to do something with JAAS, but I'm not familiar with it. I eventually gave up and wrote JNI code using C++. Using the Windows API ImpersontateLoggedOnUser and RevertToSelf allow you to associate an NT account to the current process and gain access to the file. The biggest pitfall is that obviously, using JNI with windows API, you just lost portability.
You might also consider using the open source code project jCIFS. It's quite useful.
http://jcifs.samba.org/
It's all pure java

Similar Messages

  • How to fix "access denied" in windows vista with Deskjet 3056A J611 Series

    I am really struggling with getting the printer recognized in windows vista 32 bit. No matter what I try (including HPPSdr)
    I keep getting "access denied" or windows cannot print?!
    Does anyone have a solution to this?
    HELP!

    I'm sorry, but the subject seems to have been cut off. What Printer are you using? How is the printer connected to the computer, USB, wireless, or Ethernet? Is the printer installed and when you use it you are getting this message, or are you getting this message during installation?
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • Offline Files sync gives Access Denied on Windows 8.1 Enterprise

    A small number of our staff have now been issued with Windows 8.1 Enterprise hybrid tablet computers, however there is a problem with using Offline Files on them - when synchronising, it responds "Access Denied".
    The tablets have Windows 8.1 Enterprise with all the latest updates on them. Staff users have a home folder on the network under \\server\staff\homes\departmentname\username which gets mapped to U: and their My Documents is redirected there. The server is currently
    Windows Server 2003 R2 SP2.
    We have tried:
    Resetting the Offline Files cache using the FormatDatabase registry key
    Using Group Policy Objects to force Offline Files synchronisation at logon and logoff
    Clearing the local cached copy of the user's profile from the machine and getting them to log back on to recreate it
    Setting up Offline Files event logging to the event viewer - this provides no useful information as it only logs disconnect/reconnect and logoff/logon events
    Forcing Group Policy update using gpupdate /force
    Forcing synchronisation using PowerShell and https://msdn.microsoft.com/en-us/library/windows/desktop/bb309189%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
    As suggested by http://support.microsoft.com/kb/275461 we gave the All Staff security group Read permissions on F:\Staff (which is the one that is shared as \\server\staff) and then blocked inheritance for folders below that
    We also checked the following:
    The CSC cache has not been relocated
    No error 7023 or event 7023 errors relating to Offline Files are present in the event logs
    The Offline Files service is running
    The OS is already Windows 8.1 Enterprise, so installing the Pro Pack is not applicable
    In HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\UserState\UserStateTechnologies\ConfigurationControls  all the values are set to 0 and not 1
    We do not use System Center Configuration Manager
    No errors were found in the Folder Redirection event logs
    None of these solved the problem, does anyone have any suggestions?
    Here is the error we are seeing:
    Thanks,
    Dan Jackson (Lead ITServices Technician)
    Long Road Sixth Form College
    Cambridge, UK

    Hi,
    Generally speaking, this problem is most probably occurs at File Server Client. 
    Firstly, please check the sharing file Sync Settings.
    Shared file properties\Sharing\Advanced Sharing\Caching 
    Also check shared file user list, make sure these problematic user account have full permission.
    On the other hand, could you able to access to the shared file directly in Windows Explorer?
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Yes, the user can access the shared folder in Windows Explorer. The user has the following permissions:
    Traverse Folder/Execute File
    List Folder/Read Data
    Read Attributes
    Read Extended Attributes
    Create Files/Write Data
    Create Folders/Append Data
    Write Attributes
    Write Extended Attributes
    Delete
    Read Permissions
    Here is a screenshot of how the Caching settings are set up on the top-level Staff share.

  • Remote Powershell - Access Denied? Windows 8.1

    I want to be able to connect to my PC from anywhere around the world. Don't ask why. As such I have forwarded my private IP :192.168.... to my public
    IP (ports : 22,23, 3389,5975,5976). Of course my public IP changes constantly so i also have a DNS Updater with a name : nameofmyhost.somehing.com . 
    I have been able to connect using Remote Desktop connection from my phone, tablet, other PC's, using that nameofmyhost.somehing.com. 
    However this is a desktop connection. I want a command connection as well (Powershell), no Telnet, and no SSH. I have configured WinRm, and tried powershell
    remoting using enter-pssesion nameohmyhost.somehing.com. Problem is that it's always Access Denied.
    I want to be able to connect remotely via powershell to my PC at any times.
    Yes i did quickconfig the winrm, i did add to TrustedHosts, but i still can't connect. Someone please tell me if what i am trying is even possible,
    and if it is, please give me a COMPLETE TUTORIAL FOR DUMMIES on how to make it happen. 
    Thanks

    You can verify the availability of WinRM and configure a PowerShell for remoting by following these steps:
    1. Start Windows PowerShell as an administrator by right-clicking the Windows PowerShell shortcut and selecting Run As Administrator.
    2. The WinRM service is confi gured for manual startup by default. You must change the startup type to Automatic and start the service on each computer you want to work with. At the PowerShell prompt, you can verify that the WinRM service is
    running using the following command:
    get-service winrm
    The value of the Status property in the output should be “Running”.
    3. To configure Windows PowerShell for remoting, type the following command:
    Enable-PSRemoting –force
    In many cases, you will be able to work with remote computers in other domains. However, if the remote computer is not in a trusted domain, the remote computer might not be able to authenticate your credentials. To enable authentication, you need to add the
    remote computer to the list of trusted hosts for the local computer in WinRM. To do so, type:
    winrm s winrm/config/client '@{TrustedHosts="RemoteComputer"}'
    Here, RemoteComputer should be the name of the remote computer, such as:
    winrm s winrm/config/client '@{TrustedHosts="CorpServer56"}'
    When you are working with computers in workgroups or homegroups, you must either use HTTPS as the transport or add the remote machine to the TrustedHosts configuration settings. If you cannot connect to a remote host, verify that the service on the remote host
    is running and is accepting requests by running the following command on the remote host:
    winrm quickconfig
    This command analyzes and configures the WinRM service. 
    To use Windows PowerShell remoting features, you must start Windows PowerShell as an administrator by right-clicking the Windows PowerShell shortcut and selecting Run As Administrator. When starting PowerShell from another program, such as the command prompt
    (cmd.exe), you must start that program as an administrator
    From W. Stanek:  Windows PowerShell 2.0 Administrator’s Pocket Consultant

  • Access denied in Windows 2012 Server Manager after a period of time working without problems

    Hello,
    I had 2 servers with windows 2012 installed in a domain (dc is in a 3rd server) and both added to server manager of each other. Both servers had Failover cluster installed and configured roles. After startup in both servers i can see the other and manage
    it without problems (in server manager and failover cluster manages) but after a period of 30-40 minutes in both servers I see "Online - Data Retrieval failures Ocurred" for the partner server and "Online - Access Denied" for local server.
    When I access de Failure Cluster Manager I had errors accessing resources and roles and can´t failover the cluster.
    I removed the failover cluster thinking that could be the original problem, remove servers from domain, change names and add again to the domain without install failover cluster.
    Now, the servers have not the failover cluster feature and the problem persists. 30-40 minutes after boot the server manager show messages of inaccesible partner with same messages. I tried to execute powershell commands to add a new ip to the NIC and I
    receive a Access Denied Message and show Access Denied message in other events in log.
    I´m using Domain Administrator Account and tried different solutions but not solved. I saw that this message can occur in a variety of different scenarios, but i don´t know why works during a period of time before failing. It´s frustrating
    Regards
    EDITED: in detail of Online - Data retrieval failures i see that: Configuration refresh failed with the following error: The metadata failed to be retrieved from the server, due to the following error: The WS-Management service cannot process the request.
    The WMI provider returned an 'access denied' error.

    Hi PabloVDL,
    It seems is this two server has register the incorrect DNS, please try to add this server manage NIC IP to your manager hosts file or if possible trmpory disable the useless NIC DNS register. This issue also some times caused by when you installed
    the HP insignth management, if in your environment you have this tools please temporarily uninstall it.
    More information:
    Windows Server 2012 - Server Manager Troubleshooting Guide, Part III: Common
    Events and Errors in Server Manager
    http://social.technet.microsoft.com/wiki/contents/articles/13445.windows-server-2012-server-manager-troubleshooting-guide-part-iii-common-events-and-errors-in-server-manager.aspx
    I’m glad to be of help to you!
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • "Accessed denied" for Windows Media Player in Firefox for specific video

    I get an "Access denied" error message after the video loads, it plays the intro video and the I get the error. Why?
    Specifically, here: http://www.gamespot.com/pages/video_player/popup.php?sid=6145418&pid=927204
    The video will appear, show the intro, then give the "Access denied" error message. This happens to me in Firefox 1.5.

    Install Flip4Mac WVM, http://www.flip4mac.com/, and see if that fixes the Safari problem. As I mentioned earlier, all trailers play without any problem.

  • Access Denied In windows 2008 Server R2

    Hi team,
    I ma trying to implemet a Lab setup to impelment 2008 AD/DNS/DHCP and work on SCCM 2007 deployment concepts. We have two 2008 R2 server adn one Win 7 mahcine all in Workgroup environment.
    I tried to Promote one of the Server to DC. As the initial steps, i loaded the AD DS binary files in the mahcine and renmed the machine name to something accrording to DC standards. I did all this logged in with the defauld Administrator acct.
    We rebooted the machine and i cant login with the dafualt Administrator acct anymore. I am gettin Access Denied.
    I connected to the computer mgmt snapin remotely created a new user, added to administrators group,Remote desktop users group and can login with the newly created account. but not the Deafult Administrator acct. Have anyone come across similar issues. Please
    letme know what could be the issue, since i have never faced this issue before :-( :-(
    AppGN

    Hiya,
    It sounds like the following:
    1: When you started working with your server you were using your local Administrator account, doing everything on the server.
    2: When you promoted it to a DC, it no longer has a local Administrator account, but only a Domain Administrator account. You need to login using <Domain>\Administrator and not <ServerName>\Administrator. When you try to logon, it will have the
    previously used local administrator account as the account.
    3: When you remote connected you just wrote Administrator, which resolved to the domain administrator account, hence you were able to login and create the new account.
    That would be my guess :)

  • Windows 7 Open and Save As dialog box gives an "Access Denied" when using common Windows Explorer features.

    On many computers in our environment we have issues in Windows 7 when using the Common Dialog Box.  Within the dialog box we get the error Access Denied whenever we try to create a folder.  If we try to rename a file it doesn't give an error but
    it doesn't work either.  We cannot delete a file, still no error, but we can create shortcut.
    Within Windows Explorer of the same user it has no issues.
    Even if we run an application as administrator it has the same results.
    Example: Open Paint (right click "Run As Administrator"); then File, "Save As", right-click in empty space; then New, Folder.  This caused the error to popup "Unable to create the folder 'New folder'  Access is denied."
    Thanks for your help,
    Daniel

    Hi Daniel,
    How are things going? As the article provided above said, for such kind of issues generally it is caused by permission settings.
    The article provided several possible solution and please let us know if there is anything unclear about the steps. 
    If you have any feedback on our support, please send to [email protected]

  • Access Denied to report file on Windows Server 2003 Enterprise

    Hi,
    I have a deployment problem for which I am out of ideas. I have an ASP.NET web site deployed on a server running Windows Server 2003 R2, sp2.  It makes extensive use of Crystal Reports, including both displaying them and e-mailing them to specified recipients as PDF files. It all works great.
    Now I need to port the web site to a different server, running Windows Server 2003 Enterprise, sp1. The reports display fine as long as I am not trying to convert it to PDF for e-mailng. When it gets to the following line in my code:
    MemoryStream memStream = (MemoryStream)rptDoc.ExportToStream(ExportFormatType.PortableDocFormat);
    It reports the following error:
    Access denied.Error in File JobDetails {DC64A5D3-9DD7-4E4C-90F5-A08731409B29}.rpt:
    Access to report file denied. Another program may be using it.
    I finally got it to work by granting Modify permission to Everyone for the c:\Windows\Temp folder. Obviously this is not a good practice.  Granting Full Control  to the IUSR_servername account did not solve the problem on Windows Server Enterprise, although it did the trick on R2.
    So the question is, which account needs which permission to the Temp folder to enable the PDF to get written?
    Thanks.
    Dan

    What ever account the app is running under will need read / write permissions on the temp folder. Your working server should be a good place to look to see how the premissions were set there. The same will apply to any other server(?).
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Access denied. Error in File C:\WINDOWS\TEMP\

    I have searched on Google and all over this forum and none of the solutions have fixed my problem.
    Crystal Version: Crsytal.Net for Visual Studio.Net 2005
    Server: Windows Server 2003
    Error:
    Access denied. Error in File C:\WINDOWS\TEMP\JuryDutyReport {D6296178-3E72-483E-B876-2DFC03D00841}.rpt: Access to report file denied. Another program may be using it.
    When I run my app locally through the Web Server that comes with ASP.Net, everything is fine, it is only when I deploy the application to the Windows 2003 Server that I get the error.
    I'm using impersonation in my ASP.Net application.  I have given that domain user full access to 'C:\Windows\Temp'', the export folder and even the folder where the Crystal Report resides on the Server.  When I run the application on the Web Server, I actually see the ".rpt" get created in the "C:\Windows\Temp" folder but yet it still says there is a permissions error.
    What is bizarre is that the code below that just sends the file to the printer automatically works:
      private void PrintJuryDutyReport(DataSet ds)
            //create report document
            ReportDocument crDoc = new ReportDocument();
            //load, set datasource and print options
            crDoc.Load(Server.MapPath("~/Reports/JuryDutyReport.rpt"));
            crDoc.SetDataSource(ds); //set datasource
            crDoc.PrintOptions.PrinterName = ddlPrinters.SelectedValue.ToString(); //set printername
            crDoc.PrintOptions.PaperOrientation = PaperOrientation.Portrait; //set paper orientation
            crDoc.SetParameterValue("ParamUsername", User.Identity.Name); //set parameter
            crDoc.PrintToPrinter(1, false, 0, 0); //send to printer
    I have to change the code to export to a PDF and this code doesn't work:
        private void PrintJuryDutyReport(DataSet ds)
            //report document
            ReportDocument crDoc = new ReportDocument();
            string myfile = @"G:\COPFS\COPFSPROD\ReportsTemp\MyPDF.pdf";
            //load, set datasource and print options
            crDoc.Load(Server.MapPath("~/Reports/JuryDutyReport.rpt"));
            crDoc.SetDataSource(ds); //set datasource
            crDoc.SetParameterValue("ParamUsername", User.Identity.Name); //set parameter
            //export through http
            crDoc.ExportToDisk(ExportFormatType.PortableDocFormat, myfile);
            crDoc.Close();
            crDoc.Dispose();
            Response.ClearContent();
            Response.ClearHeaders();
            Response.ContentType = "Application/pdf";
            Response.AppendHeader("content-disposition", "attachment; filename=" + myfile);
            Response.WriteFile(myfile);
            Response.Flush();
            Response.Close();
    Any help is greatly appreciated as I have to present this to end users tomorrow.

    Don, thanks for the response.
    As a last ditch effort, I granted "modify" to the Network Service Account on C:\Windows\Temp and that fixed the error.
    There are two things that are troubling about this:
    1) I'm impersonating a domain user in my ASP.Net application and when the PDF is created, the owner is that domain user, so I know impersonation is working.  So I wonder if ASP.Net picks and chooses what account it runs under at different times?
    2) It is a little scary for the Network Service Account to have this access but that people seem to be fine with it.
    http://aspadvice.com/blogs/rjdudley/archive/2005/03/14/2566.aspx

  • HT1178 I have failed to Map the Airport Time Capsule to my windows 7 HP laptop as a mapped drive, error message is "access denied"

    I have failed to Map the Airport time capsule to my windows 7 HP laptop, i followed all the installation steps and i get the error message "Access denied, you do not have permission to access this device, contact network administrator"

    Did you install the airport utility for windows?
    Is the windows computer set to home as network location.. it will not work if it is set to work or public.
    Is the TC setup with all SMB type names, short no spaces and pure alphanumeric. No apostrophe.
    Can you ping the TC from your computer? Open a command window and type ping and the tc name or its IP.
    No response you will never be able to get connection .. it is usually firewall problem. Turn off firewall and internet security.
    If it pings then simply type the IP directly into explorer.. \\TCIPaddress. (eg \\10.0.1.1 if the TC is at default)
    That is usually the most foolproof method.

  • "general access denied error" while implementing out-of-process COM Server Implementation in Windows Phone 8.1

    I have a Service (.exe) where I was registering for my COM Component like below
    CoInitializeEx(NULL, COINIT_MULTITHREADED);
    HRESULT hres = CoInitializeSecurity(NULL, -1, NULL, NULL, RPC_C_AUTHN_LEVEL_NONE, RPC_C_IMP_LEVEL_IMPERSONATE, NULL, EOAC_NONE, 0);
    if (hres != S_OK)
    OutputDebugStringA("Security Descriptor not initialized");
    ITypeLib* pTypeLib;
    HRESULT hr_1 = LoadTypeLibEx(L"ServiceIdl.tlb", REGKIND_REGISTER, &pTypeLib);
    if (pTypeLib != NULL)
    pTypeLib->Release();
    RegisterServer(L"Service.exe", CLSID_classAImpl, L"ClassAImpl Sample", L"Component.ClassAImpl", L"Component.ClassAImpl.1", 0);
    g_hEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
    DWORD reg = 0;
    IClassFactory *pIFactory = new classAFactory;
    HRESULT hr0 = CoRegisterClassObject(CLSID_classAImpl, pIFactory, CLSCTX_LOCAL_SERVER, REGCLS_MULTIPLEUSE, &reg);
    if (FAILED(hr0))
    OutputDebugStringA("classAImpl is not registered");
    CoUninitialize();
    exit(1);
    HRESULT hr1 = CoResumeClassObjects();
    if (hr1 == S_OK)
    OutputDebugStringA("classAImpl is Resumed Registering");
    WaitForSingleObject(g_hEvent, INFINITE);
    CloseHandle(g_hEvent);
    CoRevokeClassObject(reg);
    pIFactory->Release();
    CoUninitialize();
    From Client Code I am CreatingInstance  Like Below
    COSERVERINFO si;
    MULTI_QI qi;
    COAUTHINFO cai = { RPC_C_AUTHN_NONE, RPC_C_AUTHZ_NONE, 0, RPC_C_AUTHN_LEVEL_NONE, RPC_C_IMP_LEVEL_IMPERSONATE, 0, EOAC_NONE };
    si.dwReserved1 = 0;
    si.pwszName = L"\\\\localhost";
    si.pAuthInfo = &cai;
    si.dwReserved2 = 0;
    qi.pIID = &IID_classA;
    qi.pItf = NULL;
    qi.hr = 1;
    CoInitializeEx(NULL, COINIT_MULTITHREADED);
    HRESULT hr = CoCreateInstanceEx(CLSID_classAImpl, 0, CLSCTX_LOCAL_SERVER, &si, 1, &qi);
    hr returning error "general access denied error";

    I think we may run into the limitations mentioned in the remarks of CoCreateInstanceFromApp doc(show as below). If you can provide a repro project, I
    can give you more details about what happens.
    The CoCreateInstanceFromApp function reads class registrations only from Fusion contexts and manifests, and from the HKLM\SOFTWARE\Classes\CLSID registry hive.
    Only built-in classes that are supported in the app container are supplied. Attempts to activate unsupported classes, including all classes installed by 3rd-party code as well as many Windows classes, result in error code
    REGDB_E_CLASSNOTREG.
    The CoCreateInstanceFromApp function is available to Windows Store apps. Desktop applications can call this function, but they have the same restrictions as Windows Store apps.
    If you are trying to call some windows classes in your library, I will suggest you check how to create windows runtime out of process component by viewing
    this sample. This is what I usually do.
    To be honest, I did not try to implement the out of process COM component using the method you tried as we previsouly do on desktop. I will suggest you try to register a very simple library(like a signle class and single interface which returns an integer),
    and see if it will work.
    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    Alan Yao
    MSDN Community Support
    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

  • Shared folders (Windows file shares) show access denied and do not prompt for credentials

    Scenario:
    Like other admins, I log on and work as a 'standard user' (usera) with no admin rights anywhere in the domain, to perform admin tasks I have another account (userb) which I authenticate with as and when required. userb has been allocated/delegated permissions
    as required.
    Problem: 
    When trying to connect to shared folders on servers (2008 R2) using a UNC patch via Windows Explorer (Win 7 Ent.), I see an access denied error and do not get an option to supply alternative credentials.
    If I try to connect to the admin shares on the same server (\\server\C$ or \\server\e$) I get an access denied message AND get prompted for credentials. I supply my admin account and gain access as expected.
    If I check share and storage management when attempting to connect, I see that Windows is trying to connect me to each share as usera (which has no access). I understand why I get access denied at this point, but not why it can't just prompt me to supply an
    account that does have access. When trying the admin shares I also see the usera account, but I get a prompt to supply a user who does have access.
    Share permissions on the folders are for example 'Everyone' Full Control.  NTFS permissions are 'userb' has modify (read, execute, list, traverse etc) via a 'Server Admins' AD Universal security group.
    Note: If I do a NET USE from CMD and use the /USER switch, I can access the shares fine. But this is not great for accessing shared folders on the fly from various computers.
    How can I get the other shares on the server to prompt me, rather than just say access denied?
    Many thanks.

    Try to disable guest user from the server
    If you found this post helpful, please give it a "Helpful" vote. If it answered your question, remember to mark it as an "Answer". This posting is provided "AS IS" with no warranties and confers no rights! Always test ANY
    suggestion in a test environment before implementing!

  • GPP Delete policy not working on Windows Server 2008 R2 RDS when deleting shared printers with status access denied.

    Hi!
    I Have one AD Security group for each shared printer, I have one GPP that map the printer if the user is in the security group that belong to the printer. And one GPP to delete the printer if the user is NOT member of the security group. The security group
    is also applied in “Security” tab on the printsrv with PRINT rights  and “everyone” is removed. This works 100 % on Windows 7 clients and Windows 2003 Terminal Servers. But on Windows 2008 R2 RDS this dont work.The Delete Policy will not delete the shared
    printer. No warning in any logs, and the gpresult shows that the gpo setting applyed sucessfully. The only way I can make the Delete policy work is if i give the user print rights on the printer on the printsrv. Looks like for the policy to work on 2008
    R2 the user must have print rights on the printer object on the printserver. The GPP Delete Policy will not delete printers that have status : access denied. Anyone else had this problem?

    Hi,
    Based on your description, it seems that we need to give users appropriate permissions, for the error
    Access is denied is more or less related to permissions.
    However, we can avoid deploying the GPP printer delete policy. As far as I know, we can use Item-Lvel Targeting of GPP to push the shared printers
    to the targeted users or groups.
    Regarding ILT, the following articles can be referred to for more information.
    Preference Item-Level Targeting
    http://technet.microsoft.com/en-us/library/cc733022.aspx
    Security Group Targeting
    http://technet.microsoft.com/en-us/library/cc772471.aspx
    Best regards,
    Frank Shen

  • Access Denied When Trying To Install Printer - Windows 7

    Good Day
    I have a serious problem on a client's computer. All I need to do is connect the laptop to a network printer, but I am having a lot of difficulty in doing so.
    First the details of the laptop: Windows 7 Professional 64-bit connected to network using ETH cable. Avira Professional antivirus running, firewall disabled on pc, user is member of administrators group only.
    Details of the printer: Xerox Workcentre 3220, connect to network using ETH cable, but also shared on pc also running Windows 7 64-bit Professional.
    I am able to ping the printer and have connected all the other pcs on the network to the printer without any troubles whatsoever. Printing, scanning - everything is working fine for the other pcs. I am also able to connect to shares from the laptop to any
    other pc.
    So here is my issue with this specific laptop:
    Firstly, when using the "Add Printer" wizard, the "Add a local printer" option is greyed out.
    So I tried connecting to the printer using the"Add a network, wireless or Bluetooth printer" option, which seemed to be working, but during installation it gives an Access Denied error and undoes the installation.
    Then I tried connecting to the share of the printer on one of the other pcs, which had the exact same result.
    I then tried to modify an other printer, by firstly trying to add a new Local Port, but the I recieve the following error: "Specified port cannot be added. Access is denied."
    I tried then adding the driver using the Windows Print Server, but the buttons were unavailable.
    After reading on many forums, I accessed the Print Management console (Control Panel -> Administrative Tools -> Print Management)m and tried adding the printer and ports there, but recieved an "Access Denied" error every time.
    Basically whatever I tried, I recieved "Access Denied" errors. I created a new user, which is only a member of the Administrators group. Logged in with new user, without any success in connecting to the printer. I then tried adding security permisssions
    for "everyone" to the folder C:\Windows\System32\spool\PRINTERS, as I read on another forum. I tried modifying the group policy using gpedit.msc and also using the Local Security Policy, although I could have missed some things in these two places,
    but basically with a quick glance, everything seemed fine. I am sure there are no virusses, etc on this laptop and as I have said all the other pcs connected to the printer very easily.
    How can it be that I cant install a printer on this laptop, while I was able to do so a year or so back?
    I have gotten a few suggestions that it will in the end just save me time by formatting the pc and reloading all the data and programs, but this isn't an option I really want to take. And then I have previously had issues with the "Add a local printer"
    option greyed out and unable to add printers, etc, but then I was able to solve the problem by creating a new user and then switching to that user - which indicated a possible user profile corruption. But in this case even that did not work.

    Hi,
    please check your below configuration:
    1.Start the policy editor (Control Panel -> Administrative tools -> Local security policy)
    2.Select “Local policy” item
    3.Find the item “Devices: Prevent Users from Installing Printer Drivers” in the section Security Settings -> Security Options and change it to Enabled
    4.Go to “Security Settings -> User Rights Assignment” section and check, that “Load & Unalod Drivers” option contains the active user group. It important, that even if it has “All Staff” already, it still could miss “Administrators” group, so it’s necessary
    to add it manually.
    In addition, this thread could be referred:
    http://social.technet.microsoft.com/Forums/en-US/8c3c3d97-9d85-4ab0-9fc8-4b7aba202fb2/windows-cannot-connect-to-the-printer-access-is-denied-please-help?forum=itprovistaprinting
    Karen Hu
    TechNet Community Support

Maybe you are looking for

  • Why is my PDF Portfolio blank?

    I just used Adobe Acrobat XI 11.0.10 on Mac OS X 10.10.2 to create a PDF Portfolio. Acrobat let me choose the click-through layout, select files from two folders, and then displayed the PDF Portfolio window. I would expect the Portfolio window to hav

  • Jerky DVD

    I'm enjoying getting to grips with my new mac and ilife software but have a problem making a DVD from analogue video. I have imported video into iMovie HD using eyeTV hybrid from the Apple store. The results when edited and viewed in imovie look good

  • How do I find out whether I have a 32 or 64 bit version of Firefox?

    I know stupid question... but then the answer should be really easy for you to spend a minute of your time on, right?

  • $100 credit not processing?  Tip from iPhone support

    Hi, My wife and I have two iPhones. The $100 credit for my iPhone went through with no problem. But whenever I tried to claim the credit for my wifes phone I got an error message saying "we can't locate a record of your iPhone". I emailed the [email 

  • Printer flow control problem

    I have a Time Capsule with a Canon MP780 printer attached. Everything works normally when I print a short document. When I try to print a document longer than about 2 pages, the printer hangs about halfway through the second page. There are no errors