0

リモート Server1 に master.bat ファイルがあり、同じネットワーク上にあり、Server1 としてログインするための同じユーザー名とパスワードを持つ 4 つのリモート サーバーで並行して実行したいと考えています。グーグルで、私はそれを行うために次の方法を検討しましたが、私の場合はいくつかの制約があります:

1.PsExec tool : psexec \\Server1 C:\master.bat ---- But I am not allowed to install PsExec tool for security reasons.
2.Powershell : Invoke-Command -ComputerName $client -ScriptBlock { cd C:\master.bat} -Credential $(Get-Credential) -Authentication CredSSP ----But I have to enable PS Remoting (WinRM) on every remote machine on whom I need to execute scripts using PowerShell, for which I am not allowed.

4 台のリモート サーバーでmaster.batまたはmaster.ps1を実行する他の方法はありますか??

そして、私が間違っていなければ....

1.Installing PsExec tool has security drawbacks...??
2.Enabling PS Remoting (WinRM) also has chances of security threats...??
4

1 に答える 1