[gptalk] Re: Running a Batch file at user logon.

  • From: "Ananth Rajagopal" <ananth.rg@xxxxxxxxx>
  • To: gptalk@xxxxxxxxxxxxx
  • Date: Fri, 25 Jan 2008 17:15:11 +0530

Jacob, Thanks for the help, we will inform in a couple of days time,
unfortunately I won't be able to tryout for the next few days as I'm not in
Office!...

Thanks once again. I'll go through the link as well.

:-) Ananth.


On Jan 25, 2008 3:49 PM, Jakob H. Heidelberg <jakob@xxxxxxxxxxxxxxx> wrote:

>  Hi again Ananth,
>
>
>
> As stated before it would, in most cases, be better to add the route once
> and for all on the clients default gateway. But, you probably have your
> reasons J
>
>
>
> I think there are some basic things about GP processing and filtering you
> should take a look at. Maybe this blog will help you:
>
>
> http://heidelbergit.blogspot.com/2008/01/yes-of-course-you-can-assign-group.html
>
>
>
> Earlier you told me you want to "hit" all systems in the domain – in that
> case all you have to do is:
>
>
>
> 1.       Have the script file in a shared directory where Authenticated
> User or Domain Computers have Read access
>
> 2.       Create the GPO and point the Startup script to the shared script
> file (Computer Configuration part on the GPO)
>
> 3.       Link the GPO to the Domain Level (you don't have to change
> Permissions or anything in this case)
>
> 4.       Reboot all machines for the script to be executed (could take 2
> reboots)
>
>
>
> However – I must warn you a bit: this will execute the script during the
> next startup (or two) on ALL domain computers (including servers).
>
>
>
> Note to #3: If all of your computers are in the "My Computers OU" you
> could just link the GPO here (except computers in the Domain Controllers OU
> would not be hit – if they should be hit too you could link the policy to
> that OU too  and restart them one after the other perhaps).
>
>
>
> If this doesn't execute on the clients you must start troubleshooting.
> Look in the client eventlog to spot for any errors, use GPRESULT to be sure
> the GPO applies to the computers etc. However, I do expect this to work.
>
>
>
> Regards
>
> /Jakob
>
>
>
> *From:* gptalk-bounce@xxxxxxxxxxxxx [mailto:gptalk-bounce@xxxxxxxxxxxxx] *On
> Behalf Of *Ananth Rajagopal
> *Sent:* 25. januar 2008 08:27
> *To:* gptalk@xxxxxxxxxxxxx
> *Subject:* [gptalk] Running a Batch file at user logon.
>
>
>
> Hi All,
>
> We want to add a persistent route to all systems in 192.168.2.x network to
> a server having IP 192.168.3.240.
>
> We created a route.bat batch file and copied this command
>
> Route Add 192.168.3.240 MASK 255.255.255.255 192.168.2.254 -p
>
> This batch file was copied to
> \\Server.com\SysVol\Server.com\scripts\route.bat folder.
>
> The batch file was placed in Computer Configuration/Windows Settings/
> Scripts/Startup
>
> We created a new group called Harmony_Sys in Builtin folder in that
> Domain. Created a new OU called Harmony Systems, moved systems on which this
> batch file has to be run to this OU. Made the computer a member of the group
> Harmony_Sys group.
>
> From GPMC, We applied this route policy to this Harmony Systems OU.
>
> But the new route is not getting created. Where have we gone wrong, is the
> procedure correct.
>
> regards
> Ananth.
>

Other related posts: