ms-iot / azure-client-tools

Azure Client Tools
Other
43 stars 37 forks source link

WDP needs to configure the agent to be 'auto-start' #41

Closed gmileka closed 5 years ago

gmileka commented 5 years ago

When the user clicks 'Install' or 'Start' in WDP, it is assumed that the agent will be configured to auto-restart when the device reboots. However, currently, it is not which causes confusion as to why the agent did not start - or "it stopped" running.

gmileka commented 5 years ago

I've updated the scripts to run the following:

c:\windows\system32\sc.exe config AzureDeviceManagementClient start=auto
c:\windows\system32\sc.exe failure AzureDeviceManagementClient reset= 0 actions= restart/0/restart/0/restart/0