Export-Csv : Access to the path 'C:\temp' is denied. RRS feed

  • Question

  • Hi!

    Im having problem using powershell on my Windows 10 laptop.

    After connecting with exchange powershellmodule in both regular powershell and Ise i want to export to CSV.

    But since a few days i only get the error message Export-Csv : Access to the path ''''' is denied.

    I have tried running powershell as administrator, and changing the location to desktop an also another drive. Still i have the same problem.

    Any tips in my search for a solution would be nice!

    Thursday, August 29, 2019 9:47 AM

All replies

  • please try with different path or different file, as per the error, you don't have the access to the location.
    Thursday, August 29, 2019 10:52 AM
  • Without seeing your code it is pretty much impossible to give a reasonable advise. Please show your code - formatted as code - and also show your complete error message - formatted as code as well please.

    Live long and prosper!


    Thursday, August 29, 2019 11:14 AM