How To Register A DLL Silently and Remotly Using BAT Files

Hi,

I have a DLL that I need to register silently and remotely on the End User PC's across the Network.  I've done some research and keep finding people using PsExec to execute a BAT file.  I'm not a scripter nor do I understand very well any of the syntax when writing scripts.  Also I'm not too familiar with how to actually use PsExec with BAT Files.  I want/need to do the following if possible somehow:

- Register DLL silently and remotely to a list of PC's
- Maybe have a BAT file that looks towards a .TXT File of a list of the Computers to register the DLL file
- Not sure if credentials have to be specified in the BAT file to run as or not.  I will be executing this as myself which has Domain Admin writes but just wanted to bring this up.
- The End User's don't have Admin Writes as well

I found the following link in reference to what I'm trying to do but just can't get it to work or maybe I'm typing the syntax wrong, or maybe the specified DLL is in the wrong place.

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/Q_22155374.html

Please let me know as soon as you can.


Thanks
BSBSupportAsked:
Who is Participating?

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

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

ste5anSenior DeveloperCommented:
I would create a *.msi to install it and deploy it via GPO..
NVITEnd-user supportCommented:
Another way without psexec but with GPO is using computer Startup script. Put the .bat file there.
Still, this requires reboot of client.
BSBSupportAuthor Commented:
Hi,

Any suggestions please help me create the script as I'm not sure what syntax to put in.

Thanks
Become a Microsoft Certified Solutions Expert

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

NVITEnd-user supportCommented:
BSBSupportAuthor Commented:
Hi,

I took the following example:

copy \\someserver\someshare\*.dll c:\windows\system32 /y
regsvr32 mydll.dll /s
regsvr32 mydll2.dll /s

And Changed it to the following for what we need:

copy \\someserver\someshare\*.dll "C:\Windows\Downloaded Program Files" /y
regsvr32 mydll.dll /s
regsvr32 mydll2.dll /s

For what we are doing, it's still not working correctly.  We need to register the DLL's from the following location from a command prompt:

C:\Windows\Downloaded Program Files

Is there a way to edit the syntax so that it copies the necessary files to the location, then runs the regsvr32 command from the "C:\Windows\Downloaded Program Files" location in command prompt?

When I run the command manually from "C:\Windows\Downloaded Program Files" location for the two DLL's, everything works, but when I use the script in it's current state, it doesn't work as needed.

Please let me know.

Thanks
BSBSupportAuthor Commented:
Hi,

Created a GPO with the following and it worked:

copy \\someserver\someshare\*.dll "C:\Windows\Downloaded Program Files" /y
regsvr32 "C:\Windows\Downloaded Program Files\mydll.dll" /s
regsvr32 "C:\Windows\Downloaded Program Files\mydll2.dll" /s

Thanks

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
BSBSupportAuthor Commented:
Wrote script myself instead of taking from others
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 OS

From novice to tech pro — start learning today.