Author Posts

December 29, 2014 at 6:12 am

Hello,

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?

Alex.

December 29, 2014 at 7:07 am

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.

December 29, 2014 at 7:13 am

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