I am writing a PowerShell script that I want to run from Server A. I want to connect to Server B and copy a file to Server A as a backup.
如果做不到,那么我想从服务器A连接到服务器B,然后复制文件到服务器B的另一个目录。
我本以为我能做点什么
Copy-Item -ComputerName ServerB -Path C:Programs emp est.txt -Destination (not sure how it would know to use ServerB or ServerA)
我怎样才能做到这一点?