Problem exporting from remote session

This topic contains 3 replies, has 3 voices, and was last updated by Profile photo of Windows LiveUser103 Windows LiveUser103 2 years, 5 months ago.

  • Author
  • #21448
    Profile photo of Windows LiveUser103
    Windows LiveUser103


    I am trying to export a csv from a remote computer on my network but everywhere I try to save it says"access denied".

    [xxxx]: PS C:\Users\xxxx\Documents> get-wmiobject -class win32_product | select-object -property name |export-csv -path "path name"

    The credential I am using should give me access to everything on my lan, but I am unable to export anything from a remote session. Is there something I am missing?


  • #21452
    Profile photo of Matt McNabb
    Matt McNabb

    Sounds like the Kerberos double-hop issue. Kerberos by it's nature will not pass your credentials from your target machine to another computer on your network. The only solution to this is to set up CredSSP as an alternative to Kerberos, but this is not recommended for security reasons. The best bet would be to export to csv locally and then copy the file to it's final location from your local session.

  • #21454
    Profile photo of Don Jones
    Don Jones

    This is well-covered in "Secrets of PowerShell Remoting," if you're interested.

  • #21456
    Profile photo of Windows LiveUser103
    Windows LiveUser103

    Thank you!

You must be logged in to reply to this topic.