windows 7 admin

is there a good way to push a batch file out to 40 windows 7 enterprise pc's and then run the batch?
I have used psexec to remotely run a batch file on remote computers. but that has been just for one computer at a time.
I have also been playing with wmic and saw something about installing software on multiple computers, but I thought wmic only works with .msi installer files.
any ideas?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

NinjaStyle82Systems AdministratorCommented:
maybe use a startup script?
NVITEnd-user supportCommented:
Are you on an AD domain? As Frank said, a gpo startup script would work.

If you're ok w/ 3rd party, try PDQ Deploy. It's very easy to use. You can deploy all kinds of programs. You can re-deploy those that failed - in case the client computer is off.

You can install it on a workstation or a server.

They have a free version.
Steve KnightIT ConsultancyCommented:
Presumably you have a domain, in which case through group policy if this is for every startup.

Does it need to run as the user or computer, I.e. what does it dodo as will need to be done differently for different purposes ORT there's might be a simpler way without psexec.

You can also use your ad domain to roll out software smart other ways.

10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

JeffBeallAuthor Commented:
I am on an active directory domain, however, I am just an admin for local computers. I don't have access to active directory to use the startup scripts.
I can only do things in active directory like, add a user's account, or move computers.
the people that would be able to mess with the startup script are busy and said that I would have to find a way for myself, they wouldn't be available to do this.
Steve KnightIT ConsultancyCommented:
And what is it that you need to run, i.e. what is in the batch.  If you have a process that works we can use a loop through a text file of pc names for instance:

@echo off
for /f "tokens=*" %%A in ('type mypclist.txt') do (
  echo Doing whatever for %%~A
  psexec ..... whatever

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
David Johnson, CD, MVPOwnerCommented:
psexec can be run on multiple computers at once..
You can run PSExec against a list of machines, and it will work on each one in a serial fashion.  You can run multiple instances of PSExec (i.e. multiple command windows) to do operations in parallel.  A program that can assist with this is BatchPatch.

Is it really important for you to do parallel operations?  If so, I would recommend looking into use of PowerShell Remoting - this is one of its best features (in my opinion).
DonNetwork AdministratorCommented:
psexec \\* -c -f -s -d

"\\*" = run on all computers in the domain
"-C"  = Copy file to remote
"-F"  = force copy if already there
"-S"  = Run under the System Context
"-D"  = Dont wait until starting on the next pc
Steve KnightIT ConsultancyCommented:
Interesting - I didn't know you could do \\* with psexec, though there are other ways. Noted :-)
DonNetwork AdministratorCommented:
Yup, quicker than putting together a computerlist.txt
NinjaStyle82Systems AdministratorCommented:
I wouldn't use \\* especially if you have permission to any servers.
JeffBeallAuthor Commented:
thank you.
DonNetwork AdministratorCommented:
also instead of using a loop you can use psexec as follows

psexec @C:\mypclist.txt -c -f -s -d................
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 7

From novice to tech pro — start learning today.