windows 7 admin

Hello,
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?
LVL 1
JeffBeallAsked:
Who is Participating?
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?
0
NVITCommented:
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.
0
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.

Steve
0
Hey MSSPs! What's your total cost of ownership?

WEBINAR: Managed security service providers often deploy & manage products from a variety of solution vendors. But is this really the best approach when it comes to saving time AND money? Join us on Aug. 15th to learn how you can improve your total cost of ownership today!

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.
0
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

1

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..
0
footechCommented:
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).
0
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
0
Steve KnightIT ConsultancyCommented:
Interesting - I didn't know you could do \\* with psexec, though there are other ways. Noted :-)
0
DonNetwork AdministratorCommented:
Yup, quicker than putting together a computerlist.txt
0
NinjaStyle82Systems AdministratorCommented:
I wouldn't use \\* especially if you have permission to any servers.
0
JeffBeallAuthor Commented:
thank you.
0
DonNetwork AdministratorCommented:
also instead of using a loop you can use psexec as follows

psexec @C:\mypclist.txt -c -f -s -d................
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.