If you have two windows 10 system and want to connect them together so you can share files and internet, You are in a good place
the steps are very easy!
Press Win+x and choose command prompt (admin).
or Win+R and type cmd to open command prompt
enter the fallowing command, and simply choose an SSID which is just a name for your network and a value for “key” which is the password for your network.
netsh wlan set hostednetwork mode=allow ssid=AdHoc key=password
run the fallowing command to start your network.
netsh wlan start hostednetwork
search “View network connections” in start menu.
after you opened network connections, right click on your main Wi-Fi adapter and choose properties.
under sharing tab select “allow other network users to connect through this computers’s Internet connection.
and from dopbox select which network you want to share your internet with.
And finally you can scan the new network from your second computer and join the network, not only you can share files but you can use the share internet