WLAN Profile not getting added

Webman

New Member
Messages
5
Reaction score
0
Hello, I've been troubleshooting a problem since sunday where the wifi profile won't get added with Before logon cmds. Using the cmd manually after getting to the wireless setup works flawlessly. I've added > log1.txt after the cmd to see, what the issue is and it says, that wlansvc isn't running. So I've put the Service "WLAN AutoConfig" once on Boot and then on Automatic (instead of Manual). Sadly no change. Funny thing is, the first time I've set this up it implemented the profile with ease. But I can't get it working again and I've used every automatically created preset. Any help is appreciated.

Things I've tried:
New ISO made from scratch
Re-exported the profile with key=clear
Changed the cmd and file order in Before logon list
Added the cmds in After logon
Using C:\Windows\Setup\PROFILE.xml instead of %SYSTEMROOT%
Turning on and off "Skip wireless setup"

Only options that have been added for the ISO were the cmds, Skip EULA pages and add the lang/region automatically.

Cmds in question:View attachment 11905
 
The "timeout /t 9" is unnecessary, since the add profile is instantaneous (it's just a profile).

There's a possibility (and I've seen it myself) that NTLite isn't creating the expected Post-Setup files. Can you check the extracted ISO folder (or the finished ISO) for a \sources\$OEM$\ folder?

You should find:
Code:
sources\$OEM$\$$\Setup\Files\WiFi_profile.xml
sources\$OEM$\$$\Setup\Files\SetupComplete.cmd

Inside SetupComplete.cmd should be your three CMD commands. Please confirm the above is correct.

Are you installing to a PC with a Windows product key in the BIOS? NTLite should be defaulting to the right mode.
 
The scripts are in SetupComplete.cmd and the .xml is also present. (timeout will be removed in the next ISO)

View attachment 11906


There is a key in the BIOS and the Before logon - mode is set on Default.

Interestingly, the log1.txt didn't get created but the log2 did. Not sure if that info helps but might as well add it here.
 
If log2.txt is created then obviously Post-Setup actions are taking place. For the second netsh command, make sure the name matches the Wi-Fi network's SSID name.

What I would do is try a clean ISO, and only add the same Post-Setup items. If this works, it means your edited image has disabled or removed something required for Wi-Fi support. Then we would need a copy of your preset (after removing user passwords and license key).
 
Update: Created a clean ISO with the PostSetups only and it works. I'll now add the Unattended options step by step to see when it stops adding the profile.

I will add the preset I've used before later today.
 
Unattended mode shouldn't interfere with Post-Setup. It's more likely changes to the install image.
 
I don't know if that makes sense but I found the issue:
If I change the language setting under "System locale", it skips the addition of the profile. Is this changing the install image?
 
There's no locale in a network profile. I'm not sure what's happening here. Even if your System locale causes a problem, it shouldn't prevent Post-Setup tasks from executing.
 
In theory it shouldn't but in practice it does. Used a clean ISO like stated before, added the cmds, changed the only Input locale and added the EULA skips. ¯\_(ツ)_/¯
 
Back
Top