Importing Wireless profiles on XP/Win 7

(imported topic written by SteveRinMa)

Hello,

We are currently rolling out Access points to all of our remote locations. I am trying to send a wireless profile out to all systems that will be able to access the wireless network through bigfix, so far my actions just return as complete but the system never has the profile showing up in the wireless networks connections list. If I run the command local it works with no problem. Here is my command

netsh wlan add profile filename=“Wireless Network Connection-Production.xml” user=all

My attempt at creating a batch file in the action script

// Remove any prior attempts

delete __appendfile

delete profile.bat

// Create the batch file

appendfile @ECHO OFF

netsh wlan add profile filename=“C:\WLAN\Wireless Network Connection-Production.xml” user=all

// batch file was created as __appendfile

// move it to a batch file name

move __appendfile profile.bat

Running cmd in action

extract WirelessNetworkConnection-Production.xml.tmp

DOS waithidden __Download\netsh wlan add profile filename=“Wireless Network Connection-Production.xml” user=all

Any help would be appreciated

Steve

(imported comment written by BrianPGreen)

It sounds like basically what you want to do is run a batch file that uses an another input file (the profile xml file). Here’s a really simple example of an actionscript that does that. It downloads a file named “source.txt” and runs a batch script that moves it to C:\it_works.txt:

download http://bgreen.local:52311/Test/source.txt

appendfile move __Download\source.txt C:\it_works.txt

delete test.bat

move __appendfile test.bat

wait test.bat

In order for that “download” command to work, I moved the source.txt file to here:

C:\Program Files (x86)\BigFix Enterprise\BES Server\wwwrootbes\Test\source.txt