
If you have to faff around with signing scripts you can call the Powershell script from a batch file which bypasses the security. This essentially prevents the bridging scenario. If you wanted to be become really strict you can add a second line to each PS script which disables and enables the ethernet so only one network connection is available at any one time LAN or WiFi. Log: Microsoft-Windows-NetworkProfile/Operationalįrom Actions run the Powershell command Enable-NetAdapter -Name 'Wi-Fi' -confirm:$False This is basically the network going offline. To Enable WiFi when the Surface becomes un-docked from WLAN this is the second task trigged.

Set to run as your preferred Windows flavour, in this case 10. Set the script to run whether logged in or not. Save the scheduled task as a local administrator not domain admin account. Disable-NetAdapter -Name 'Wi-Fi' -confirm:$False Which is the following Powershell script. Start only if the following network is available E.g. This is basically the WLAN becoming operational. Log: Microsoft-Windows-NetworkProfile / Operational To disable wifi when the computer is connecting to WLAN, create a basic scheduled task using the options below for when an event is logged: Minimum Powershell 3.0 required.įirst of all grab a list of your NICs: Get-NetAdapter | Format-Table Name, InterfaceDescription -Auto
