Hi, When I try to map a drive locally on "Client1", it works fine with this command: New-PSDrive U -PSProvider FileSystem -root \\Server1\C$ but when I try it remotely, it fails ($cred is a previously created credential): Invoke-Command -ComputerName "Client1" -Credential $cred -ScriptBlock...
Filed under: Remoting, enter-pssession, Powershell, PowerShell v2, Enable-WSManCredSSP, New-Object, PowerShell 1.0, New-PSDrive, PowerShell 2.0, Remote Commands, Enable-PSRemoting, Get-WSManCredSSP
I have been playing with Powershell, and more specifically with sending actions and jobs to remote machines. The code below is an example, illustrating one of the problems I am facing... $RemoteHN = 'NM-01' $Directory = "Users" $RemoteSB = $executioncontext . invokecommand . NewScriptBlock...
Filed under: Remoting, powershell remoting, PS Remoting, Remote PowerShell, Powershell, PowerShell v2, PowerShell 2.0, Remote Commands, Remote