Export (0) Print
Expand All

DUA Poll Location Reconfiguration Example (Windows Embedded Standard 2009)

4/23/2012

The following code sample issues DUA a set of commands to modify the poll location. The poll location refers to where the agent retrieves command files. The following sample configures DUA to poll a remote server, called myservername, for the command file nextupdate.dup. The script first deletes the existing configuration parameters to ensure that the agent is set into a known configuration.

//Delete the existing poll location settings.
10,0,HKEY_LOCAL_MACHINE,,System\CurrentControlSet\Services\DUAgent\Parameters\Config\Sessions\0000

//Create new settings key.
9,0,HKEY_LOCAL_MACHINE,,System\CurrentControlSet\Services\DUAgent\Parameters\Config\Sessions\0000,0

//Specify the poll location values.
//***********************************
//Set poll type to remote (1).
11,0,HKEY_LOCAL_MACHINE,0,SYSTEM\CurrentControlSet\Services\DUAgent\Parameters\Config\Sessions\0000,0,Type,4,1

//Set ProxyAccessType to default proxy settings (0).
11,0,HKEY_LOCAL_MACHINE,0,SYSTEM\CurrentControlSet\Services\DUAgent\Parameters\Config\Sessions\0000,0,ProxyAccessType,4,0

//Set remote HostName to myervername.
11,0,HKEY_LOCAL_MACHINE,0,SYSTEM\CurrentControlSet\Services\DUAgent\Parameters\Config\Sessions\0000,0,HostName,1,myservername

//Set the host port to 80 for HTTP.
11,0,HKEY_LOCAL_MACHINE,0,SYSTEM\CurrentControlSet\Services\DUAgent\Parameters\Config\Sessions\0000,0,HostPort,4,80

//Set the protocol to HTTP (0).
11,0,HKEY_LOCAL_MACHINE,0,SYSTEM\CurrentControlSet\Services\DUAgent\Parameters\Config\Sessions\0000,0,Protocol,4,0

//Set commandfile name to nextupdate.dup.
11,0,HKEY_LOCAL_MACHINE,0,SYSTEM\CurrentControlSet\Services\DUAgent\Parameters\Config\Sessions\0000,0,CmdFile,1,nextupdate.dup

//Set the AutoLogonLevel to low (1).
11,0,HKEY_LOCAL_MACHINE,0,SYSTEM\CurrentControlSet\Services\DUAgent\Parameters\Config\Sessions\0000,0,AutoLogonLevel,4,1

Community Additions

ADD
Show:
© 2014 Microsoft