Hi guys,
I need to create a script or batch file that will create tasks on several remote computers and execute them when the script or batch file is ran.
I was thinking something like this :
schtasks /create /s “remote PC names” /RU domainservice account /RP password /tn “taskname” /tr “c:tempfile to run.exe” /sc once /st 00:00
schtasks /Run /S “remote PC names” /TN “taskname”
Can I put a variable as “remote PC names” so I can have a lot of names or do I have to use these lines for each different computer names? If so how?
Thanks!
submitted by /u/b0ub0u
[link] [comments]
The post Need help running a script or batch file on several remote computers appeared first on How to Code .NET.