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
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