Problem exporting from remote session

This topic contains 3 replies, has 3 voices, and was last updated by  Windows LiveUser103 3 years, 6 months ago.

  • Author
  • #21448

    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

    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

    Don Jones

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

  • #21456

    Windows LiveUser103

    Thank you!

You must be logged in to reply to this topic.