Wifi Key


  1. Posts : 3
    Windows 7
       #1

    Wifi Key


    Hi all,
    I've been asked to prepare a Windows 7 32bit PC in a public room to be accessed by student users.
    We have the computer to automatically go to desktop upon boot up using standard user profile.

    I would like the users to have to type in their wifi password each time the OS is booted.

    Unfortunately there is a check box to connect automatically for the users thus if they click this box, the computer will indeed remember the wifi password and automatically connect to wifi upon boot up.

    Is there a way to prevent this from happening?

    Thanks in advance
      My Computer


  2. Posts : 2,298
    Windows 7 Professional x64 SP1 ; Windows Server 2012 R2 Standard
       #2

    n3ocid3 said:
    Hi all,
    I've been asked to prepare a Windows 7 32bit PC in a public room to be accessed by student users.
    We have the computer to automatically go to desktop upon boot up using standard user profile.

    I would like the users to have to type in their wifi password each time the OS is booted.

    Unfortunately there is a check box to connect automatically for the users thus if they click this box, the computer will indeed remember the wifi password and automatically connect to wifi upon boot up.

    Is there a way to prevent this from happening?

    Thanks in advance
    What version of Windows are you running? Is it Windows professional or higher? I have created a batch script that allows the automatic deletion of the wireless network when ran. If you have the appropriate version of Windows you could assign this to a log off action where the wireless profile is automatically deleted upon log off or log on. This would force the new user to retype the wifi password before gaining network access.

    The code is as follows:

    Code:
    @echo off
    netsh wlan delete profile name="{profilename}" i=*
    Replace the red part with the profile name. This is the name of the Wireless network.

    Copy and paste the changed code above into a notepad and then save it as a batch file. To do this go to save as and then change the file type to all files and add the .bat extension onto the end.

    Wifi Key-untitled.png

    Hope This Helps,
    Josh :)
      My Computer


  3. Posts : 3
    Windows 7
    Thread Starter
       #3

    Windows 7 32bit Professional is indeed the OS we use.
    I can not thank you enough.
    I'll let you know how things go.

    Once again a big thanks.
      My Computer


  4. Posts : 2,298
    Windows 7 Professional x64 SP1 ; Windows Server 2012 R2 Standard
       #4

    This makes life easier. Open start, type in gpedit.msc in the search box and open the found application. Click YES if you have UAC turned on.

    From here open up the navigation tree as shown in the screenshot below and then navigate to the log off script section. Open that up and then click on Add.... From there browse to the location where you are going to store the script. Then just click OK and apply and what not to apply the changes. Remember to leave the script parameters as blank since the script isn't looking for any parsed variables.

       Note
    Store the script in a location where the standard user account can have read only access to. It may be a good idea to place the script in the root of the C:\ drive so it can be accessed when called. In addition to this, the log off script will apply to all users created on the machine. To only apply the script to an individual user then follow this tutorial - Group Policy - Apply to a Specific User or Group


    Wifi Key-gpedit.png


    Hope This Helps and Good Luck,
    Josh
    Last edited by Shadowjk; 01 May 2014 at 05:44. Reason: Added Note
      My Computer


  5. Posts : 3
    Windows 7
    Thread Starter
       #5

    Worked a treat :)

    A really big thank you
      My Computer


  6. Posts : 2,298
    Windows 7 Professional x64 SP1 ; Windows Server 2012 R2 Standard
       #6

    No worries! I'm glad I could help :)

    Josh
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:02.
Find Us