I am trying to copy a file to multiple remote computers thru a pssession.
I am getting an Access is denied error
All the users have perms to acess the file share
heres the code i am using
$NewWrk = Get-QADComputer | ? whenCreated -gt 8/05/2014 $s = new-PSSession -computername ($NewWrk | select -ExpandProperty name) -ErrorAction SilentlyContinue Invoke-Command -Session $s -ScriptBlock { copy-item -Path '\\file01\ec\ITMigration\Agent.jnlp' -Destination "$env:USERPROFILE\Desktop" }
is this the 3rd hop issue? any work around with Enable-WSManCredSSP?
thank you