Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Script to modify "gpedit.msc"???

1,952 views
Skip to first unread message

Robert Crandal

unread,
May 25, 2011, 6:38:59 AM5/25/11
to
As most of you, in Windows XP there is a control
panel app named "gpedit.msc" which allows users to
to install either startup or shutdown BAT file scripts.
(Just run "gpedit.msc" from the command prompt and
goto Select Computer Configuration, Windows Settings,
Scripts->>Startup/Shutdown)

Does anyone know if it's possible to create a BAT file which
can automate the task of adding a script into this control
panel?? I know it sounds weird, but I need a BAT file that
will install a different BAT file script into this control panel
thing.

Please let me know if this is possible. Thanks!


John Gray

unread,
May 25, 2011, 7:57:06 AM5/25/11
to

Perhaps in the gpedit.msc just specify a "fixed" CALLER.BAT which
simply calls CALLED.BAT. You can change CALLED.BAT to contain
whatever you wish...

foxidrive

unread,
May 25, 2011, 8:15:20 AM5/25/11
to

Another tack is to enter a aaabbbccc.bat and then search the registry to
see where it is entered.


--
Regards,
Mic

Todd Vargo

unread,
May 25, 2011, 4:59:29 PM5/25/11
to

"foxidrive" <foxi...@gotcha.woohoo.invalid> wrote in message
news:Ap6Dp.8453$rq2....@newsfe12.iad...

That is the easy part. Parsing the key for existing entries on unknown
machines so you clobber them is another matter.

Esra Sdrawkcab

unread,
May 26, 2011, 5:28:42 AM5/26/11
to

don't you "simply" merge .adm files?

- but a regedit to add an entry to

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
or

HKCU\Software\Microsoft\Windows\CurrentVersion\Run

or even
%userprofile%\Start Menu\Programs\Startup

would do the job


--
"Nuns! NUNS! Reverse! Reverse!"

foxidrive

unread,
May 26, 2011, 6:27:12 AM5/26/11
to
On 26/05/2011 19:28, Esra Sdrawkcab wrote:
> On Wed, 25 May 2011 11:38:59 +0100, Robert Crandal
> <rcranz...@gmail.com> wrote:
>
>> As most of you, in Windows XP there is a control
>> panel app named "gpedit.msc" which allows users to
>> to install either startup or shutdown BAT file scripts.

> HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run


> or
>
> HKCU\Software\Microsoft\Windows\CurrentVersion\Run
>
> or even
> %userprofile%\Start Menu\Programs\Startup
>
> would do the job

Not for shutdown though.


--
Regards,
Mic

0 new messages