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
Setting local file system rights using Group Policy or Scripts =?Utf-8?B?TWF0dA==?= Windows XP General 1 3rd May 2005 07:22 PM
about the local policy and the group policy =?Utf-8?B?eXlodWFuZw==?= Microsoft Windows 2000 Group Policy 2 14th Oct 2004 05:21 PM
RE: local group policy overriding default domain policy anthony Windows XP Security 0 1st Jun 2004 07:29 PM
Failure: Group Policy and Local Security Policy modules =?Utf-8?B?VGhpanM=?= Microsoft Windows 2000 0 21st May 2004 12:41 PM
Automate Local Group Policy Deployment Hong Microsoft Windows 2000 Group Policy 0 3rd May 2004 03:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:39 AM.