-
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...
Posted to
PowerShell Remoting
(Forum)
by
kevsor1
on
07-15-2010
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
-
@echo on set SOURCE=\\sourceservername\c$\temp set DESTINATION=\\destinationservername\c$\temp xcopy %SOURCE%* %DESTINATION%* /s /e /i /Y PAUSE I want to paste last modified file from source to multiple destinations every 2 hrs, but I expect at least above script should work
Posted to
PowerShell Remoting
(Forum)
by
himanshu
on
03-14-2013
Filed under: Remoting, scripts, windows, PowerShell 1.0, PowerShell 2.0, Remote Commands, powerrshell, Powershell 3.0