Code:
WScript.Sleep(5000)
NetSh "start hostednetwork", True
This affects only the virtual AP start time, physical wireless interface is restarted as in the original script. If your HTPC using the same WiFi adapter as the main network connecton then it will toggle the network acccess in the same manner as before. There is no way to set the MAC of the adapter without restarting the interface. Please describe your device connection configuration first. also please provide the output from
Code:
wmic nic list brief | clip
the result will be in the clipboard, just paste in the post
My HTPC has a wired NIC it connects to the network with. The wireless interface is only used for homepass. I'm not looking to get any new functionality with your script, just the functionality I had using MACycle/macshift and Virtual Router
Here is the wmic output you requested:
AdapterType DeviceID MACAddress Name NetworkAddresses ServiceName Speed
0 WAN Miniport (SSTP) RasSstp
1 WAN Miniport (IKEv2) RasAgileVpn
2 WAN Miniport (L2TP) Rasl2tp
3 WAN Miniport (PPTP) PptpMiniport
4 WAN Miniport (PPPOE) RasPppoe
5 WAN Miniport (IPv6) NdisWan
6 WAN Miniport (Network Monitor) NdisWan
8 WAN Miniport (IP) NdisWan
9 Bluetooth Device (Personal Area Network)
Wide Area Network (WAN) 10 20:41:53:59:4E:FF RAS Async Adapter AsyncMac
Tunnel 11 Microsoft ISATAP Adapter tunnel 100000
Ethernet 802.3 12 D0:50:99:28:96:F2 Qualcomm Atheros AR8171/8175 PCI-E Gigabit Ethernet Controller (NDIS 6.20) L1C 1000000000
Tunnel 13 Microsoft ISATAP Adapter #2 tunnel 100000
Ethernet 802.3 14 4E:53:50:4F:4F:88 Realtek 8821AE Wireless LAN 802.11ac PCI-E NIC RTWlanE 9223372036854775807
Tunnel 15 Microsoft ISATAP Adapter #3 tunnel 100000
Tunnel 16 Teredo Tunneling Pseudo-Interface tunnel 100000
Ethernet 802.3 18 64:5A:04:6B:F2
![big grin :D :D](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
E Bluetooth Device (Personal Area Network) #2 BthPan 0
Ethernet 802.3 19 4E:53:50:4F:4F:88 Microsoft Virtual WiFi Miniport Adapter vwifimp 177000000
Tunnel 20 Microsoft ISATAP Adapter tunnel
and here's the output from your maccheck script, in case you want/need it:
D:\MACScript>maccheck Wi-Fi
Realtek Semiconductor Corp.,Realtek 8821AE Wireless LAN 802.11ac PCI-E NIC,Wi-Fi,PCI\VEN_10EC&DEV_8821&SUBSYS_882110EC&REV_00\4&1FC8E566&0&a
mp;00E7,RTWlanE
00000010 2
00000001 1
11111111 255
11111101 253
This interface adapter driver can use unicast MAC [bit1=0], which is not a problem, and only local MAC [bit2=1], i.e. not hardware