I am trying to copy a folder from one remote server to another inside a PSSession, it\'s giving errors like access is denied. I have admin privileges to both of the servers. If
You are facing the "Double Hop" problem. Run this on the SQL computer
Enable-WSManCredSSP -Role Server
and run this on Server B
Enable-WSManCred -Role Client -DelegateComputer *
then when you enter the remote session do
Enter-PSSession -ComputerName sql -Authentication Credssp -Credential (Get-Credential)
Hope this helps.
If you sneezed during reading this answer, Bless your face.