question

ShawnSheng-4656 avatar image
0 Votes"
ShawnSheng-4656 asked ShawnSheng-4656 commented

How to pragram "Let windows keep me connected" for cellular data network?

For cellular network, there is a "Let Windows keep me connected" check box which can be manually checked or unchecked. But we want to check and un-check it by our application.
We find a registry key for this function, Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WwanSvc\DisallowAutoConnectByClient, but can't edit the value even running with administrator.
141344-disallowautoconnectbyclient.png

Are there any ways we can change "Let Windows keep me connected" via programming? Thank you.

windows-10-network
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered ShawnSheng-4656 commented

Hello ShawnSheng,

Thank you for your question.

There might be possibility that the account with which you connect to Azure does not have access to that subscription so it does not sees it at all. Usually when you create Automation Account via Azure Portal RunAs account is created. That RunAs account is actually a Service Principal that is assigned Contributor access but only to the subscription where the Azure Automation account is created. If you have other subscriptions you have to assign access manually or create Automation account in each subscription.

Please check if you correct permissions with Automation Account or should have a access as a contributor on your storage account.



--If the reply is helpful, please Upvote and Accept as answer--

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you for your feedback. But sorry for my unclear description.
We want to run our application on PC with Windows 10, not on Azure. "Let windows keep me connected" checkbox is circled in the following picture.
We want to implement checking and unchecking this checkbox by our application, but don't know how to.
141985-let-windows-keep-me-connected.png



0 Votes 0 ·