$adobe = "C:\Acrobat Pro DC"
$computer = Read-Host -Prompt "Computers Name"
$destination = "\\$computer\c$\temp"
Copy-Item -Recurse -Path $adobe -Destination $destination
Enter-PSSession $computer
Test-Path "c:\temp\Acrobat Pro DC\Adobe Acrobat"
Set-Location "c:\temp\Acrobat Pro DC\Adobe Acrobat"
Start-Process "install_acrobat.bat"
exit
以上是我正在使用的当前代码。即使文件夹确实存在,Test-Path
仍返回false,并且Set-Location
说该文件夹也不存在。我想念什么?