Question

  Asked: Apr 25 2008   11:06 AM GMT
  Asked by: Ashish jha


Run an executable file from domain on all client machines


File, Domain controller, Group Policy

Hi all....
I have made some modification in the registry file to display the logon banner on my entire network.Now, the requirement is to double click this file on every client machine in order for the policy to take its effect.So, I wanted to know is there any way that my .reg file which is available on my DC gets automatically executed on my client machine once.

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0



Create a .reg file that inserts the program you want to be run in the RunOnce section of the registry.

You can set a Group Policy that forces a file to be run, when the user logs into the domain. On your Domain Controller, go into ADUC. Right click the domain, click Properties. Go to the Group Policy Tab.

If there is a button that says Open here, click it, then under the domain, right click the Default Domain Policy and click Edit. If you dont see the Open button, then you should see Default Domain Policy, click it and click Edit. Microsoft has done this in several ways, so I dont know what you will see here.

Under User Configuration-Administrative Templates-System-Logon, you will see a policy that says 'Run this program when a user logs on', and put in the .reg file that inserts the RunOnce command you created above.

User needs to reboot twice for your app to become active...first time inserts the .reg command...second time executes the .reg command.

-------------------------

Why not use a group policy to push out the banner? There are group policy objects to display the logon banner.
  • AddThis Social Bookmark Button

Browse more Questions and Answers on Microsoft Windows.

Looking for relevant Microsoft Windows Whitepapers? Visit the SearchWinIT.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register