I found this from searching Bing because I want to do the same thing - enable or disable Airplane mode or my wireless NIC when the tablet goes to sleep. I can't view your tutorial, but I found I could do this easily enough with two schedule tasks.
Originally Posted by Brink
One task to enable airplane mode when the tablet has gone to sleep and locked (trigger is when workstation locked) to run this command with highest privileges:
And another scheduled task to trigger when the workstation is unlocked to run this to disable airplane mode:
netsh interface set interface name="Wi-Fi" admin = disabled
netsh interface set interface name="Wi-Fi" admin = enabled
I've tested this so far and it seems to work great. I can view on the lock screen that the WiFi has disabled, and when I unlock the WiFi turns back on.