Windows XP Community - XPHeads



DUA set value in registry script

microsoft.public.windowsxp.embedded


Reply
  #1 (permalink)  
Old 07-03-2008, 06:08 AM
danis
 
Posts: n/a
DUA set value in registry script
Hello!

I would like to modify some values in the registry, using DUA script.
The problem I have is that is not working, the value is not modified.
Here is my script, that I used:

REGSETVALUE,,HKEY_LOCAL_MACHINE,,SYSTEM\CurrentCon trolSet\Services
\Tcpip\Parameters,,AutonetRetries,DAREG_DWORD_LITT LE_ENDIAN,100

What is the error?

If I delete the value, and create it again and after that set the
value data, then it works. But the value is already on the deployed
systems, so I cannot create it.
All I want to do is to modify it. Any sugestions?

Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-03-2008, 07:42 AM
Peter Karlshøj Jensen
 
Posts: n/a
Re: DUA set value in registry script
Try this, it work for me:

REGSETVALUE,,HKEY_LOCAL_MACHINE,,SYSTEM\CurrentCon trolSet\Services\Tcpip\Parameters,,AutonetRetries, 4,100

DUA seems weird with DWORD, no problem when using the value instead.

4 = REG_DWORD

/Peter

"danis" <danisirb@gmail.com> wrote in message
news:ad04225a-685a-4a07-8371-9c1b022865db@8g2000hse.googlegroups.com...
> Hello!
>
> I would like to modify some values in the registry, using DUA script.
> The problem I have is that is not working, the value is not modified.
> Here is my script, that I used:
>
> REGSETVALUE,,HKEY_LOCAL_MACHINE,,SYSTEM\CurrentCon trolSet\Services
> \Tcpip\Parameters,,AutonetRetries,DAREG_DWORD_LITT LE_ENDIAN,100
>
> What is the error?
>
> If I delete the value, and create it again and after that set the
> value data, then it works. But the value is already on the deployed
> systems, so I cannot create it.
> All I want to do is to modify it. Any sugestions?
>
> Thanks!



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-03-2008, 08:41 AM
danis
 
Posts: n/a
Re: DUA set value in registry script
Thanks!

Some other thing I've noticed, and I don't know why is like that:
after it runs a script, if I copy back the same script again, it will
not run it anymore; nor any script.
Have something similar happened to you? I've tried deleting the
temporary folder, so that it will create it again, I've tried not
deleting the temporary folder, but still the same problem, next
scripts will not run.

Any ideas?





On Jul 3, 10:42*am, "Peter Karlshøj Jensen" <pete...@amitech.dk>
wrote:
> Try this, it work for me:
>
> REGSETVALUE,,HKEY_LOCAL_MACHINE,,SYSTEM\CurrentCon trolSet\Services\Tcpip\Pa*rameters,,AutonetRetries ,4,100
>
> DUA seems weird with DWORD, no problem when using the value instead.
>
> 4 = REG_DWORD
>
> /Peter
>
> "danis" <danis...@gmail.com> wrote in message
>
> news:ad04225a-685a-4a07-8371-9c1b022865db@8g2000hse.googlegroups.com...
>
> > Hello!

>
> > I would like to modify some values in the registry, using DUA script.
> > The problem I have is that is not working, the value is not modified.
> > Here is my script, that I used:

>
> > REGSETVALUE,,HKEY_LOCAL_MACHINE,,SYSTEM\CurrentCon trolSet\Services
> > \Tcpip\Parameters,,AutonetRetries,DAREG_DWORD_LITT LE_ENDIAN,100

>
> > What is the error?

>
> > If I delete the value, and create it again and after that set the
> > value data, then it works. But the value is already on the deployed
> > systems, so I cannot create it.
> > All I want to do is to modify it. Any sugestions?

>
> > Thanks!


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-03-2008, 09:20 AM
Peter
 
Posts: n/a
Re: DUA set value in registry script
Sounds like your dua script modify the DUA poll path.. else you will be able
to download the same script again and again.

Try to post all lines in your .dus file or make sure you only have one line:
REGSETVALUE and nothing else.

Not sure i completely understand your issue with "copy back" if your script
is located on a server you just need to restart the service to download it
again, if DUA is configured to "Poll on Start"

/Peter

"danis" <danisirb@gmail.com> wrote in message
news:5eb00223-6414-43da-bc1a-af393cef50d6@k37g2000hsf.googlegroups.com...
Thanks!

Some other thing I've noticed, and I don't know why is like that:
after it runs a script, if I copy back the same script again, it will
not run it anymore; nor any script.
Have something similar happened to you? I've tried deleting the
temporary folder, so that it will create it again, I've tried not
deleting the temporary folder, but still the same problem, next
scripts will not run.

Any ideas?





On Jul 3, 10:42 am, "Peter Karlshøj Jensen" <pete...@amitech.dk>
wrote:
> Try this, it work for me:
>
> REGSETVALUE,,HKEY_LOCAL_MACHINE,,SYSTEM\CurrentCon trolSet\Services\Tcpip\Pa*rameters,,AutonetRetries ,4,100
>
> DUA seems weird with DWORD, no problem when using the value instead.
>
> 4 = REG_DWORD
>
> /Peter
>
> "danis" <danis...@gmail.com> wrote in message
>
> news:ad04225a-685a-4a07-8371-9c1b022865db@8g2000hse.googlegroups.com...
>
> > Hello!

>
> > I would like to modify some values in the registry, using DUA script.
> > The problem I have is that is not working, the value is not modified.
> > Here is my script, that I used:

>
> > REGSETVALUE,,HKEY_LOCAL_MACHINE,,SYSTEM\CurrentCon trolSet\Services
> > \Tcpip\Parameters,,AutonetRetries,DAREG_DWORD_LITT LE_ENDIAN,100

>
> > What is the error?

>
> > If I delete the value, and create it again and after that set the
> > value data, then it works. But the value is already on the deployed
> > systems, so I cannot create it.
> > All I want to do is to modify it. Any sugestions?

>
> > Thanks!



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-03-2008, 09:54 AM
danis
 
Posts: n/a
Re: DUA set value in registry script
This is another script that I used:

// DUAScriptGen V1.1 Script File
// (C) Microsoft Corporation


// **** FILE OPERATIONS BEGIN ***

// ************************************************** *********
// EXECUTEPROCESS
// Source - c:\Dua\RegUpdater.exe
// Command line parameters -
// Wait on exit - yes
// Wait time - 4294967295 (infinite)
// Working directory - c:\Dua

EXECUTEPROCESS,,,,c:\Dua\RegUpdater.exe,,,DAYES,
4294967295,,DASEC_REV,,,,DASEC_REV,,,,,,c:\Dua,1,, WinSta0\Default

// **** FILE OPERATIONS END ***

// **** REGISTRY OPERATIONS BEGIN ***

// **** REGISTRY OPERATIONS END ***

REGCREATEKEY,,HKEY_LOCAL_MACHINE,,SYSTEM\CurrentCo ntrolSet\Services
\DUAgent\Parameters\Config\Sessions
\0000,DAREG_OPTION_NON_VOLATILE,KEY_ALL_ACCESS
REGSETVALUE,,HKEY_LOCAL_MACHINE,,SYSTEM\CurrentCon trolSet\Services
\DUAgent\Parameters\Config\Sessions\0000,,CmdFile, DAREG_SZ,script2.dup

REBOOT,,DAREBOOTOPT_REBOOT

// Created by DUAScriptGen v1.1.0011 (February 7, 2008)

It worked once, but after that it didn't. DUAgent started, but did not
runned the script, or had some exception, I don't know or sure.
I'm not


On Jul 3, 12:20*pm, "Peter" <@.> wrote:
> Sounds like your dua script modify the DUA poll path.. else you will be able
> to download the same script again and again.
>
> Try to post all lines in your .dus file or make sure you only have one line:
> REGSETVALUE and nothing else.
>
> Not sure i completely understand your issue with "copy back" if your script
> is located on a server you just need to restart the service to download it
> again, if DUA is configured to "Poll on Start"
>
> /Peter
>
> "danis" <danis...@gmail.com> wrote in message
>
> news:5eb00223-6414-43da-bc1a-af393cef50d6@k37g2000hsf.googlegroups.com...
> Thanks!
>
> Some other thing I've noticed, and I don't know why is like that:
> after it runs a script, if I copy back the same script again, it will
> not run it anymore; nor any script.
> Have something similar happened to you? I've tried deleting the
> temporary folder, so that it will create it again, I've tried not
> deleting the temporary folder, but still the same problem, next
> scripts will not run.
>
> Any ideas?
>
> On Jul 3, 10:42 am, "Peter Karlshøj Jensen" <pete...@amitech.dk>
> wrote:
>
> > Try this, it work for me:

>
> > REGSETVALUE,,HKEY_LOCAL_MACHINE,,SYSTEM\CurrentCon trolSet\Services\Tcpip\Pa**rameters,,AutonetRetrie s,4,100

>
> > DUA seems weird with DWORD, no problem when using the value instead.

>
> > 4 = REG_DWORD

>
> > /Peter

>
> > "danis" <danis...@gmail.com> wrote in message

>
> >news:ad04225a-685a-4a07-8371-9c1b022865db@8g2000hse.googlegroups.com...

>
> > > Hello!

>
> > > I would like to modify some values in the registry, using DUA script.
> > > The problem I have is that is not working, the value is not modified.
> > > Here is my script, that I used:

>
> > > REGSETVALUE,,HKEY_LOCAL_MACHINE,,SYSTEM\CurrentCon trolSet\Services
> > > \Tcpip\Parameters,,AutonetRetries,DAREG_DWORD_LITT LE_ENDIAN,100

>
> > > What is the error?

>
> > > If I delete the value, and create it again and after that set the
> > > value data, then it works. But the value is already on the deployed
> > > systems, so I cannot create it.
> > > All I want to do is to modify it. Any sugestions?

>
> > > Thanks!


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 07-03-2008, 10:23 AM
danis
 
Posts: n/a
Re: DUA set value in registry script
I guess this line from DuaScriptGen messsed up the things:
REGSETVALUE,,HKEY_LOCAL_MACHINE,,SYSTEM\CurrentCon trolSet\Services
> \DUAgent\Parameters\Config\Sessions\0000,,CmdFile, DAREG_SZ,script2.dup


I've tried without those 2 lines, on a fresh image, and it works each
time.

Thanks for the help.
Have a great day!

On Jul 3, 12:54*pm, danis <danis...@gmail.com> wrote:
> This is another script that I used:
>
> // DUAScriptGen V1.1 Script File
> // (C) Microsoft Corporation
>
> // **** FILE OPERATIONS BEGIN ***
>
> // ************************************************** *********
> // EXECUTEPROCESS
> // Source - c:\Dua\RegUpdater.exe
> // Command line parameters -
> // Wait on exit - yes
> // Wait time - 4294967295 (infinite)
> // Working directory - c:\Dua
>
> EXECUTEPROCESS,,,,c:\Dua\RegUpdater.exe,,,DAYES,
> 4294967295,,DASEC_REV,,,,DASEC_REV,,,,,,c:\Dua,1,, WinSta0\Default
>
> // **** FILE OPERATIONS END ***
>
> // **** REGISTRY OPERATIONS BEGIN ***
>
> // **** REGISTRY OPERATIONS END ***
>
> REGCREATEKEY,,HKEY_LOCAL_MACHINE,,SYSTEM\CurrentCo ntrolSet\Services
> \DUAgent\Parameters\Config\Sessions
> \0000,DAREG_OPTION_NON_VOLATILE,KEY_ALL_ACCESS
> REGSETVALUE,,HKEY_LOCAL_MACHINE,,SYSTEM\CurrentCon trolSet\Services
> \DUAgent\Parameters\Config\Sessions\0000,,CmdFile, DAREG_SZ,script2.dup
>
> REBOOT,,DAREBOOTOPT_REBOOT
>
> // Created by DUAScriptGen v1.1.0011 (February 7, 2008)
>
> It worked once, but after that it didn't. DUAgent started, but did not
> runned the script, or had some exception, I don't know or sure.
> I'm not
>
> On Jul 3, 12:20*pm, "Peter" <@.> wrote:
>
> > Sounds like your dua script modify the DUA poll path.. else you will beable
> > to download the same script again and again.

>
> > Try to post all lines in your .dus file or make sure you only have one line:
> > REGSETVALUE and nothing else.

>
> > Not sure i completely understand your issue with "copy back" if your script
> > is located on a server you just need to restart the service to downloadit
> > again, if DUA is configured to "Poll on Start"

>
> > /Peter

>
> > "danis" <danis...@gmail.com> wrote in message

>
> >news:5eb00223-6414-43da-bc1a-af393cef50d6@k37g2000hsf.googlegroups.com....
> > Thanks!

>
> > Some other thing I've noticed, and I don't know why is like that:
> > after it runs a script, if I copy back the same script again, it will
> > not run it anymore; nor any script.
> > Have something similar happened to you? I've tried deleting the
> > temporary folder, so that it will create it again, I've tried not
> > deleting the temporary folder, but still the same problem, next
> > scripts will not run.

>
> > Any ideas?

>
> > On Jul 3, 10:42 am, "Peter Karlshøj Jensen" <pete...@amitech.dk>
> > wrote:

>
> > > Try this, it work for me:

>
> > > REGSETVALUE,,HKEY_LOCAL_MACHINE,,SYSTEM\CurrentCon trolSet\Services\Tcpip\Pa***rameters,,AutonetRetri es,4,100

>
> > > DUA seems weird with DWORD, no problem when using the value instead.

>
> > > 4 = REG_DWORD

>
> > > /Peter

>
> > > "danis" <danis...@gmail.com> wrote in message

>
> > >news:ad04225a-685a-4a07-8371-9c1b022865db@8g2000hse.googlegroups.com....

>
> > > > Hello!

>
> > > > I would like to modify some values in the registry, using DUA script.
> > > > The problem I have is that is not working, the value is not modified.
> > > > Here is my script, that I used:

>
> > > > REGSETVALUE,,HKEY_LOCAL_MACHINE,,SYSTEM\CurrentCon trolSet\Services
> > > > \Tcpip\Parameters,,AutonetRetries,DAREG_DWORD_LITT LE_ENDIAN,100

>
> > > > What is the error?

>
> > > > If I delete the value, and create it again and after that set the
> > > > value data, then it works. But the value is already on the deployed
> > > > systems, so I cannot create it.
> > > > All I want to do is to modify it. Any sugestions?

>
> > > > Thanks!


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 07-03-2008, 10:24 AM
Peter
 
Posts: n/a
Re: DUA set value in registry script
Is your script named "script1.dup"?

Your script change the poll location to "script2.dup" this way it won't
download script1 twice.

"REGSETVALUE,,HKEY_LOCAL_MACHINE,,SYSTEM\CurrentCo ntrolSet\Services\DUAgent\Parameters\Config\Sessio ns\0000,,CmdFile,DAREG_SZ,script2.dup"

Try outcomment this line with "//" then you can download the script again
and again doing testing.

/Peter



"danis" <danisirb@gmail.com> wrote in message
news:90bd9827-1e00-4cef-9e35-5f0b62946bbd@34g2000hsf.googlegroups.com...
This is another script that I used:

// DUAScriptGen V1.1 Script File
// (C) Microsoft Corporation


// **** FILE OPERATIONS BEGIN ***

// ************************************************** *********
// EXECUTEPROCESS
// Source - c:\Dua\RegUpdater.exe
// Command line parameters -
// Wait on exit - yes
// Wait time - 4294967295 (infinite)
// Working directory - c:\Dua

EXECUTEPROCESS,,,,c:\Dua\RegUpdater.exe,,,DAYES,
4294967295,,DASEC_REV,,,,DASEC_REV,,,,,,c:\Dua,1,, WinSta0\Default

// **** FILE OPERATIONS END ***

// **** REGISTRY OPERATIONS BEGIN ***

// **** REGISTRY OPERATIONS END ***

REGCREATEKEY,,HKEY_LOCAL_MACHINE,,SYSTEM\CurrentCo ntrolSet\Services
\DUAgent\Parameters\Config\Sessions
\0000,DAREG_OPTION_NON_VOLATILE,KEY_ALL_ACCESS
REGSETVALUE,,HKEY_LOCAL_MACHINE,,SYSTEM\CurrentCon trolSet\Services
\DUAgent\Parameters\Config\Sessions\0000,,CmdFile, DAREG_SZ,script2.dup

REBOOT,,DAREBOOTOPT_REBOOT

// Created by DUAScriptGen v1.1.0011 (February 7, 2008)

It worked once, but after that it didn't. DUAgent started, but did not
runned the script, or had some exception, I don't know or sure.
I'm not


On Jul 3, 12:20 pm, "Peter" <@.> wrote:
> Sounds like your dua script modify the DUA poll path.. else you will be
> able
> to download the same script again and again.
>
> Try to post all lines in your .dus file or make sure you only have one
> line:
> REGSETVALUE and nothing else.
>
> Not sure i completely understand your issue with "copy back" if your
> script
> is located on a server you just need to restart the service to download it
> again, if DUA is configured to "Poll on Start"
>
> /Peter
>
> "danis" <danis...@gmail.com> wrote in message
>
> news:5eb00223-6414-43da-bc1a-af393cef50d6@k37g2000hsf.googlegroups.com...
> Thanks!
>
> Some other thing I've noticed, and I don't know why is like that:
> after it runs a script, if I copy back the same script again, it will
> not run it anymore; nor any script.
> Have something similar happened to you? I've tried deleting the
> temporary folder, so that it will create it again, I've tried not
> deleting the temporary folder, but still the same problem, next
> scripts will not run.
>
> Any ideas?
>
> On Jul 3, 10:42 am, "Peter Karlshøj Jensen" <pete...@amitech.dk>
> wrote:
>
> > Try this, it work for me:

>
> > REGSETVALUE,,HKEY_LOCAL_MACHINE,,SYSTEM\CurrentCon trolSet\Services\Tcpip\Pa**rameters,,AutonetRetrie s,4,100

>
> > DUA seems weird with DWORD, no problem when using the value instead.

>
> > 4 = REG_DWORD

>
> > /Peter

>
> > "danis" <danis...@gmail.com> wrote in message

>
> >news:ad04225a-685a-4a07-8371-9c1b022865db@8g2000hse.googlegroups.com...

>
> > > Hello!

>
> > > I would like to modify some values in the registry, using DUA script.
> > > The problem I have is that is not working, the value is not modified.
> > > Here is my script, that I used:

>
> > > REGSETVALUE,,HKEY_LOCAL_MACHINE,,SYSTEM\CurrentCon trolSet\Services
> > > \Tcpip\Parameters,,AutonetRetries,DAREG_DWORD_LITT LE_ENDIAN,100

>
> > > What is the error?

>
> > > If I delete the value, and create it again and after that set the
> > > value data, then it works. But the value is already on the deployed
> > > systems, so I cannot create it.
> > > All I want to do is to modify it. Any sugestions?

>
> > > Thanks!



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

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



All times are GMT. The time now is 06:26 AM.








Design by Vjacheslav Trushkin for phpBBStyles.com.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74