0

こんにちは、このpowershellコードを実行すると、powershellがハングします

Set-Content "\\$remote_computer\users\bkoo004\downloads\test\installme.bat" -value 'START "installing" "S:\npp.6.3.3.Installer.exe" /S'
Invoke-Command -ComputerName $remote_computer -Credential $cred -ScriptBlock {Start-Process 'c:\users\bkoo004\downloads\test\installme.bat' -Wait}

しかし、このコードを実行すると

Set-Content "\\$remote_computer\users\bkoo004\downloads\test\installme.bat" -value 'START "installing" "C:\users\user\downloads\npp.6.3.3.Installer.exe" /S'
Invoke-Command -ComputerName $remote_computer -Credential $cred -ScriptBlock {Start-Process 'c:\users\bkoo004\downloads\test\installme.bat' -Wait}

正常にインストールできます.. UAC またはその他のセキュリティが、私のインストールを UNC パス (ドライブ S) からブロックしようとしていると考えています。誰でも助けてもらえますか?ダブルホップだから?

4

0 に答える 0