First we need to launch a command prompt with administrator privileges, which we can do by typing ‘cmd’ in the start menu, then right-clicking the command prompt that appears in the search results and running it as administrator.

Then we can create the Wi-Fi network with the following command:

netsh wlan set hostednetwork mode=allow ssid=yournetworkname key=yourpassword

(replace ‘yournetworkname’ with your preferred name and edit ‘yourpassword’ as you wish)

Then turn it on:

netsh wlan start hostednetwork

Then navigate to „Network and Sharing Center”, then on the left side click on „Change adapter settings”.

Here find the Ethernet (wired network) adapter, right-click it, Properties, and go to the Sharing tab. Here select the newly created adapter from the dropdown menu, and check the „Allow other network users to connect through this computer’s Internet connection” option.

Then click OK, and you’ll be able to connect to the network via Wi-Fi.

If you want to turn it off later, you can do so with the following command:

netsh wlan stop hostednetwork