Results 1 to 3 of 3

Thread: Share Wi-Fi from Windows 10

  1. #1
    Registered User
    Join Date
    Apr 2020
    Posts
    13
    Thanks
    0
    Thanked
    0 times in 0 posts

    Share Wi-Fi from Windows 10

    Hi,

    so I want to use my Windows laptop as a Wi-Fi router. Here's a writeup on how to share a WiFi connection to other devices, but it require that I download a .bat file and run it as Administrator. I have no clue what a .bat file is, will my anti virus software catch it if it's malicious?
    The reason I want to do this from my laptop is to be able to share a VPN connection with my Smart TV.

  2. #2
    Senior Member
    Join Date
    Aug 2016
    Posts
    4,017
    Thanks
    939
    Thanked
    1,021 times in 734 posts

    Re: Share Wi-Fi from Windows 10

    A .bat file is a "batch" file dating back to early versions of DOS, never mind Windows.

    All it is is w list of text commands, but since those can execute program files, it can be dangerous. The good news is they're easy to read to see what they're doing.

    Warning - I'm not a W10 user so if .bat files have changed. someone else will point it out.

    As for the rest, dunno, never tried it.
    A lesson learned from PeterB about dignity in adversity, so Peter, In Memorium, "Onwards and Upwards".

  3. #3
    Registered User
    Join Date
    Jun 2016
    Location
    The "North"
    Posts
    17
    Thanks
    0
    Thanked
    2 times in 2 posts
    • TechMinerUK's system
      • Motherboard:
      • EVGA X99 Micro 2
      • CPU:
      • Intel Core i7 5820K
      • Memory:
      • 32GB Corsair Vengeance LPX 2666MHz
      • Storage:
      • Samsung 850 EVO 500GB & Samsung Pro 800GB
      • Graphics card(s):
      • NVidia Geforce GTX 1080 FE
      • PSU:
      • EVGA SuperNOVA 1000W P2
      • Case:
      • Corsair Air 240
      • Operating System:
      • Windows 10 Enterprise (64x)
      • Monitor(s):
      • Acer X34 3440x1440
      • Internet:
      • Virgin Media 300/20 Home

    Re: Share Wi-Fi from Windows 10

    Saracen999 is right as bat files can be malicious and cause havok but they are just executable files like EXE or MSI files.

    I have had a look at the one you've linked to and it looks safe with the following contents:
    @ECHO OFF
    netsh wlan set hostednetwork mode=allow ssid=SharedWiFi key=CS9dZZEk
    netsh wlan start hostednetwork
    ECHO.
    ECHO.
    ECHO ***** PRESS ANY KEY TO OPEN NETWORK CONNECTIONS SETTINGS *****
    ECHO.
    ECHO ***** RETURN TO THIS SCREEN AFTER ALLOWING NETWORK SHARING *****
    ECHO.
    ECHO.
    ECHO.
    PAUSE
    ncpa.cpl
    ECHO.
    ECHO.
    ECHO.
    ECHO ***** PRESS ANY KEY TO START WiFi SHARING *****
    ECHO.
    PAUSE
    netsh wlan stop hostednetwork
    netsh wlan start hostednetwork
    ECHO.
    ECHO.
    ECHO *****************************************
    ECHO * *
    ECHO * WiFi network name: SharedWiFi *
    ECHO * Password: CS9dZZEk *
    ECHO * *
    ECHO *****************************************
    ECHO.
    ECHO.
    ECHO.
    ECHO ***** PRESS ANY KEY TO STOP WiFi SHARING *****
    ECHO.
    ECHO.
    ECHO.
    PAUSE
    netsh wlan stop hostednetwork
    EXIT

    All it does is take the commands which you would normally execute manually in command prompt/Powershell or via the GUI and it has wrapped them up into an easy to run file

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •