PowerShell 2.0: Accessing Windows Shares during a Remote Session

前端 未结 2 754
你的背包
你的背包 2020-12-15 04:35

I am having trouble accessing a shared network location while within a PowerShell remote session.

From the PowerShell prompt, I enter a new session:

         


        
2条回答
  •  一个人的身影
    2020-12-15 05:05

    If you can't use credential delegation as mentioned above, you can mount (or just authenticate as below) the remote share in the remote session using explicit credentials, e.g.

    [server1] ps> net use \\server2\share * /user:username
    (prompts for password)
    [server1] ps> dir \\server2\share
    (listing)
    

    This problem has nothing to do with powershell per-se; you are trying to replay your local credentials in a remote session to a third location and falling foul of the NTLM "double hop" limitation.

提交回复
热议问题