Quantcast
Viewing all articles
Browse latest Browse all 311

PowerShell • Executing .bat files in powershell remotely

How to run a .bat file on a remote computer with invoke-command?

Example: Invoke-Command -ComputerName $textbox4.Text -FilePath \\Server1\c$\\Fic.bat

Code:

Statistics: Posted by CAFMAINE-ET-LOIRE — Wed Oct 09, 2024 2:40 am — Replies 1 — Views 70



Viewing all articles
Browse latest Browse all 311

Trending Articles