![]() ![]() Each can be navigated but in all probability you'd have to devise a different solution to each specific requirement, some you will be able to trigger neatly on an event, others will need some hackery to get it to operate, others still will need some third party element to get it to function as you need. Other taks that will have similar limitations. I can't think of any native mechanism (and a quick google hasn't helped) that will execute a script/process on connection to a wireless network, so you'd have to fall back on a regular schedule to run the above on a 1 minute schedule, or you would need a do.while loop to run this in the background constantly. The problem you have is how do you schedule that. Thanks to r/powershell for some of the above. Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled $True ![]() IF($(netsh wlan show interfaces | Select-String '\sSSID') -ne $HomeNetwork) NET/C#, but (and I know nothing about LUA or Hammerspoon) I suspect it might be a step further into coding than using LUA and it will carry it's own difficulties.įor example checking for wifi SSID and enabling FW if it's not your home network : $HomeNetwork = "MyHomeWifi" Most of what you are asking for can be done natively in Powershell (and probably python/perl and maybe even bash if you are feeling adventurous), and certainly if you dip in to. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |