开启:netsh firewall set opmode mode=enable

开启服务:net start sharedaccess

关闭服务:net stop sharedaccess