i have in a few lines of code for the sim-card module (mobile data) to release the pin using AT + CPIN. After that the network adapter does not connect automatically to the network. Therefore I must always click manually on connect in Windows. I would like to do this with a command. I have already tried the following:
$bbd = get-wmiobject win32_networkadapter -filter "Name = 'Mobilfunk'" | select Name
Write $bbd
Enable-NetAdapter -Name $bbd
or
$bbd.Enable()
But it is still diconnected and i have to click on connect. Do either of you know a solution? I got the Name of the Adapter with Get-NetAdapter -Name *