OSDeploy / OSD

OSD Shared Functions
MIT License
130 stars 54 forks source link

WirelessConnect - Object is not set to an instance of an object. #129

Open Vexxer1 opened 3 months ago

Vexxer1 commented 3 months ago

Hello team, I am fully aware that the Wireless Connect Utility is provided by Oliver Kieselbach and not by you. But I still wanted to post the issue here if anyone stumbles over it.

I created an OSDCloud Image with the -WirelessConnect switch and get the error message mentioned in the title as soon as I click the connect button in the utility.

The issue seems related to my client I created the image on. My client is installed with the native de-DE iso, and for Wireless Support I use a WinRE template which I pull from my client. WirelessConnect however relies on the output of netsh and parses it. Unfortunatly if I use the WinRE from a de-DE based client, my whole netsh output will be german as well and WirelessConnect cannot parse it. I've tried to manually modify my boot.wim and set all languages to en-US with /set-UiLang, /Set-UserLocale and /Set-SysLocale which basically worked, but now netsh has issues and just outputs "Error 235 in FormatMessageW()". Probably there are still some MUI files missing to make this work. But anyway, I took the WinRE from an en-US based client, which then worked.

Just an information if you stumble across it.

gwblok commented 3 months ago

Thanks. I appreciate the info. I've only done testing in en-us. You are correct, Oliver gave us permission to use his tool in our project, as I found it an easy way to add that functionality. Previously, I just had it prompt to manually enter SSID & Password.

If you find other tools that work in WinRE to accomplish the same goal, that work in other languages too, let me know.