Where does localpolicy stores ?

G

Guest

well, i need to configure some windows xp pro with local policy,
they are standalone machine that is not part of the domain
how to get a efficent way to set up policay on alot of machine ?
i was thinking of using windows script
but the script isnt looks very good
<package>
<job id="vbs">
<script language="VBScript">
set WshShell = WScript.CreateObject("WScript.Shell")
'Use Traditional theme
WshShell.Run "gpedit.msc"
WScript.Sleep 3500
WshShell.AppActivate "群組原則"
WScript.Sleep 200
WshShell.SendKeys "{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}"
WScript.Sleep 200
WshShell.SendKeys "{RIGHT}"
WScript.Sleep 200
WshShell.SendKeys "{DOWN}{DOWN}{DOWN}{DOWN}"
WScript.Sleep 200
WshShell.SendKeys "{RIGHT}"
WScript.Sleep 200
WshShell.SendKeys "{DOWN}{DOWN}"
WScript.Sleep 200
WshShell.SendKeys "{RIGHT}"
WScript.Sleep 200
WshShell.SendKeys "{DOWN}"
WScript.Sleep 600
WshShell.SendKeys "{TAB}"
WScript.Sleep 300
WshShell.SendKeys "{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}"
WScript.Sleep 300
WshShell.SendKeys "%A"
WScript.Sleep 300
WshShell.SendKeys "R"
WScript.Sleep 300
WshShell.SendKeys "%E"
WScript.Sleep 200
WshShell.SendKeys "~"

but it takes long time to run the script.
well, if i can do it with "WshShell.RegWrite"
it will be much better, but i doesnt know where excatly does localpolicy work.
nd where they modify the registry value.
if any document would help me ?

thx.
sorry for my poor english
 
J

Jorge_de_Almeida_Pinto

michael-- said:
well, i need to configure some windows xp pro with local
policy,
they are standalone machine that is not part of the domain
how to get a efficent way to set up policay on alot of machine
?
i was thinking of using windows script
but the script isnt looks very good
<package>
&lt;job id="vbs"&gt;
&lt;script language="VBScript"&gt;
set WshShell = WScript.CreateObject("WScript.Shell")
'Use Traditional theme
WshShell.Run "gpedit.msc"
WScript.Sleep 3500
WshShell.AppActivate "群組原則"
WScript.Sleep 200
WshShell.SendKeys
"{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}"
WScript.Sleep 200
WshShell.SendKeys "{RIGHT}"
WScript.Sleep 200
WshShell.SendKeys "{DOWN}{DOWN}{DOWN}{DOWN}"
WScript.Sleep 200
WshShell.SendKeys "{RIGHT}"
WScript.Sleep 200
WshShell.SendKeys "{DOWN}{DOWN}"
WScript.Sleep 200
WshShell.SendKeys "{RIGHT}"
WScript.Sleep 200
WshShell.SendKeys "{DOWN}"
WScript.Sleep 600
WshShell.SendKeys "{TAB}"
WScript.Sleep 300
WshShell.SendKeys "{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}"
WScript.Sleep 300
WshShell.SendKeys "%A"
WScript.Sleep 300
WshShell.SendKeys "R"
WScript.Sleep 300
WshShell.SendKeys "%E"
WScript.Sleep 200
WshShell.SendKeys "~"

but it takes long time to run the script.
well, if i can do it with "WshShell.RegWrite"
it will be much better, but i doesnt know where excatly does
localpolicy work.
nd where they modify the registry value.
if any document would help me ?

thx.
sorry for my poor english

I have not done this myself but you cound try it..
The local group policy is stored in C:\WINDOWS\system32\GroupPolicy

The machine part is stored in:
C:\WINDOWS\system32\GroupPolicy\Machine\Registry.pol
The user part is stored in:
C:\WINDOWS\system32\GroupPolicy\User\Registry.pol

Extensions and version is stored in:
C:\WINDOWS\system32\GroupPolicy\gpt.ini

You could configure the files on one computer and distribute
afterwards using a batch file (started manually and remotely using the
local admin account on each computer)

Cheers,
 
G

Guest

thanks. i opened the Registry.pol file, and i see all the policy setting over
there
but how can i import to other computer ?
cos i try copy and paste the file to same location, and it dont work.
 
J

Jorge_de_Almeida_Pinto

thanks. i opened the Registry.pol file, and i see all the
policy setting over
there
but how can i import to other computer ?
cos i try copy and paste the file to same location, and it
dont work.


&nbsp;> > well, i need to configure some windows xp pro with
local
&nbsp;> > policy,
&nbsp;> > they are standalone machine that is not part of the
domain
&nbsp;> > how to get a efficent way to set up policay on alot
of machine
&nbsp;> > ?
&nbsp;> > i was thinking of using windows script
&nbsp;> > but the script isnt looks very good
&nbsp;> > &lt;package&gt;
&nbsp;> > &lt;job id="vbs"&gt;
&nbsp;> > &lt;script language="VBScript"&gt;
&nbsp;> > set WshShell =
WScript.CreateObject("WScript.Shell")
&nbsp;> > 'Use Traditional theme
&nbsp;> > WshShell.Run "gpedit.msc"
&nbsp;> > WScript.Sleep 3500
&nbsp;> > WshShell.AppActivate
"群組原則"
&nbsp;> > WScript.Sleep 200
&nbsp;> > WshShell.SendKeys
&nbsp;> > "{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}"
&nbsp;> > WScript.Sleep 200
&nbsp;> > WshShell.SendKeys "{RIGHT}"
&nbsp;> > WScript.Sleep 200
&nbsp;> > WshShell.SendKeys
"{DOWN}{DOWN}{DOWN}{DOWN}"
&nbsp;> > WScript.Sleep 200
&nbsp;> > WshShell.SendKeys "{RIGHT}"
&nbsp;> > WScript.Sleep 200
&nbsp;> > WshShell.SendKeys "{DOWN}{DOWN}"
&nbsp;> > WScript.Sleep 200
&nbsp;> > WshShell.SendKeys "{RIGHT}"
&nbsp;> > WScript.Sleep 200
&nbsp;> > WshShell.SendKeys "{DOWN}"
&nbsp;> > WScript.Sleep 600
&nbsp;> > WshShell.SendKeys "{TAB}"
&nbsp;> > WScript.Sleep 300
&nbsp;> > WshShell.SendKeys
"{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}"
&nbsp;> > WScript.Sleep 300
&nbsp;> > WshShell.SendKeys "%A"
&nbsp;> > WScript.Sleep 300
&nbsp;> > WshShell.SendKeys "R"
&nbsp;> > WScript.Sleep 300
&nbsp;> > WshShell.SendKeys "%E"
&nbsp;> > WScript.Sleep 200
&nbsp;> > WshShell.SendKeys "~"
&nbsp;> >
&nbsp;> > but it takes long time to run the script.
&nbsp;> > well, if i can do it with "WshShell.RegWrite"
&nbsp;> > it will be much better, but i doesnt know where
excatly does
&nbsp;> > localpolicy work.
&nbsp;> > nd where they modify the registry value.
&nbsp;> > if any document would help me ?
&nbsp;> >
&nbsp;> > thx.
&nbsp;> > sorry for my poor english

have you tried configure a new REGISTRY.POL with all the settings you
need (including the new ones) and just replace the old REGISTRY.POL
file on each XP computer

Cheers,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top