PC Review


Reply
Thread Tools Rate Thread

How to automate local group policy for startup/shutdown scripts

 
 
Scott Felt
Guest
Posts: n/a
 
      14th Sep 2004
My scenario:

I need to run a program or a script that will implement the startup
and shutdown scripts functionality found in group policy (acutally, I
just need to have scripts that will run on system startup and shutdown
and I assume this is the best way to do that; correct me if there is
an easier way, please). There is no Active Directory, so this is
local group policy and it needs to be hands off--in other words,
bringing up gpedit.msc and pointing and clicking around is not
feasible.

Things I have tried:

I have experiemented with getting one system the way I want and then
copying over various files in the %windows%\system32\grouppolicy
directory tree to another system. I have not had much luck doing
this. By moving over or overwriting the scripts.ini file I was able
to "see" the script that I wanted to run, but they did not actually
run at startup or shutdown. (I did have the script in place). I have
tried moving a registry.pol file over, but I do not really know what
is in that file, whether it has my changes or how it is "loaded" on
the new system.

Any help is greatly appreciated. Thanks!

Scott Felt
 
Reply With Quote
 
 
 
 
Jerold Schulman
Guest
Posts: n/a
 
      15th Sep 2004
On 14 Sep 2004 13:05:56 -0700, (E-Mail Removed) (Scott Felt) wrote:

>My scenario:
>
>I need to run a program or a script that will implement the startup
>and shutdown scripts functionality found in group policy (acutally, I
>just need to have scripts that will run on system startup and shutdown
>and I assume this is the best way to do that; correct me if there is
>an easier way, please). There is no Active Directory, so this is
>local group policy and it needs to be hands off--in other words,
>bringing up gpedit.msc and pointing and clicking around is not
>feasible.
>
>Things I have tried:
>
>I have experiemented with getting one system the way I want and then
>copying over various files in the %windows%\system32\grouppolicy
>directory tree to another system. I have not had much luck doing
>this. By moving over or overwriting the scripts.ini file I was able
>to "see" the script that I wanted to run, but they did not actually
>run at startup or shutdown. (I did have the script in place). I have
>tried moving a registry.pol file over, but I do not really know what
>is in that file, whether it has my changes or how it is "loaded" on
>the new system.
>
>Any help is greatly appreciated. Thanks!
>
>Scott Felt



See tip 3612 in the 'Tips & Tricks' at http://www.jsiinc.com

Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
Reply With Quote
 
Darren Mar-Elia
Guest
Posts: n/a
 
      15th Sep 2004
Scott-
You're on the right track. You definitely need to copy the script to
C:\WINDOWS\System32\GroupPolicy\Machine\Scripts\Startup (or refer to it
elsewhere) and then you need scripts.ini in the Scripts folder. But you also
need to ensure that the GPT.INI file in the c:\windows\system32\grouppolicy
folder has a version number that is greater than 0. Take a look at that file
and, if its zero, increment it by 1.

--
Darren Mar-Elia
MS-MVP-Windows Management
http://www.gpoguy.com



"Scott Felt" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> My scenario:
>
> I need to run a program or a script that will implement the startup
> and shutdown scripts functionality found in group policy (acutally, I
> just need to have scripts that will run on system startup and shutdown
> and I assume this is the best way to do that; correct me if there is
> an easier way, please). There is no Active Directory, so this is
> local group policy and it needs to be hands off--in other words,
> bringing up gpedit.msc and pointing and clicking around is not
> feasible.
>
> Things I have tried:
>
> I have experiemented with getting one system the way I want and then
> copying over various files in the %windows%\system32\grouppolicy
> directory tree to another system. I have not had much luck doing
> this. By moving over or overwriting the scripts.ini file I was able
> to "see" the script that I wanted to run, but they did not actually
> run at startup or shutdown. (I did have the script in place). I have
> tried moving a registry.pol file over, but I do not really know what
> is in that file, whether it has my changes or how it is "loaded" on
> the new system.
>
> Any help is greatly appreciated. Thanks!
>
> Scott Felt



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Group Policy Shutdown Scripts =?Utf-8?B?TWlyb3NsYXZL?= Windows XP General 5 22nd Oct 2007 02:22 PM
Group Policy with startup scripts Joseph T Corey Windows Vista General Discussion 2 4th May 2007 02:48 PM
Local Computer Policy Startup/shutdown/logon/logoff scripts Pieter Windows XP Embedded 2 29th Dec 2006 12:25 PM
Group Policy w startup scripts Matt Windows XP Security 1 16th Sep 2004 03:15 PM
Re: Startup Scripts and Group Policy Torgeir Bakken \(MVP\) Windows XP General 0 9th Sep 2004 05:42 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:59 AM.