• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 383
  • Last Modified:

Internal WIFI deployment to domain

I'm looking for a way to deploy our internal wifi to all computers without having to touch them.

What are my options?

I've exported a profile to xml using netsh wlan commands, but I can't seem to figure out the vbs to roll it out.

Any suggestions appreciated....
1 Solution
Craig BeckCommented:
You really need to use certificates and NPS for secure wifi on a domain if you want to automate the configuration.  This is a great guide to implementing PEAP for Wireless...


Group Policy is your friend if you have a domain and you're using RADIUS (this is the way to go).

Here's a quick guide for Windows XP/Vista/7/2003/2008...


The only issue with this is that you can't deploy wireless settings if you're using pre-shared keys.  For that you need to script it, as you've already attempted.
The following thread may help you: http://social.technet.microsoft.com/Forums/systemcenter/en-US/35cb0e42-0d71-476d-bd85-47b37aa28087/deploying-windows-7-x64-and-configuring-wireless-settings?forum=configmgrosd

In case the link breaks, the VBS script is:

'Declare Variables
Dim FSO, Newfolder, WshShell
'Configure Variables
Set FSO = CreateObject("Scripting.FileSystemObject")
Set WshShell = WScript.CreateObject("WScript.Shell")

Public Function Main()
'Create folder if required
If Not FSO.FolderExists("C:\Windows\Temp\WifiConfig") Then
 NewFolder = FSO.CreateFolder("C:\Windows\Temp\WifiConfig\")
 'Wscript.Echo "Creating folder"
End If
'Copy files localy
If FSO.FolderExists ("C:\Windows\Temp\WifiConfig") Then
 'Wscript.Echo "Copy file Config.xml"
 FSO.CopyFile ".\Config.xml","C:\Windows\Temp\WifiConfig\"
 'Wscript.Echo "Copy file Configure.cmd"
 FSO.CopyFile ".\Configure.cmd","C:\Windows\TEMP\WifiConfig\"
End If
'execute program
'Wscript.Echo "Executing Configure.cmd"
WshShell.Run "C:\Windows\Temp\WifiConfig\Configure.cmd"
End Function
Public Function CleanUp()
'Start cleaning up
'delete xml file cause psw is plain tekst
If FSO.FileExists ("C:\Windows\TEMP\WifiConfig\Config.xml") Then
 'Wait a second or two
 Wscript.Sleep 2000
 'Wscript.Echo "Deleting config file"
End If
If FSO.FileExists ("C:\Windows\TEMP\Wificonfig\Configure.cmd") Then
 'Wait a second or two
 Wscript.Sleep 2000
 'Wscript.Echo "Deleting Configure file"
End If
If FSO.FolderExists ("C:\Windows\Temp\WifiConfig") Then
End If
End Function
This is my configure.cmd file:

netsh wlan add profile filename="C:\Windows\Temp\WifiConfig\Config.xml" interface="Wireless Network Connection" user=All
netsh wlan connect name=home123

However, what the previous poster suggested, setting up a RADIUS server and WLAN authentication is way better and simpler on the end user.
MetaltreeAuthor Commented:
I ended up going with something similar to what convergint suggested
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Will You Be GDPR Compliant by 5/28/2018?

GDPR? That's a regulation for the European Union. But, if you collect data from customers or employees within the EU, then you need to know about GDPR and make sure your organization is compliant by May 2018. Check out our preparation checklist to make sure you're on track today!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now