1 of 1 people found this helpful
Thanks Jesse over at dropped packets:
I am SURE there is a better way to do this, but I don't know much in the way of programming languages, so this is how I did it with a batch file and standard Windows tools.
The Machine SID will be inserted into the Registry so LANDesk can pick it up with the next inventory scan.
I wrapped PSGETSID.EXE and the .BAT file into a Self-Extracting EXE (WinRAR). It extracts to %TEMP% so no files get left behind when it's done.
Contents of BAT file:
psgetsid -accepteula > .\GOTSID.TXT
findstr /v "SID FOR" .\GOTSID.TXT > .\MYSID.TXT
set /P MACHINE_SID=<.\MYSID.TXT
reg add "HKLM\Software\Intel\LANDesk\Inventory\Custom Fields" /v MACHINE_SID /t REG_SZ /d %MACHINE_SID% /f
I guess I should have clarfied, I meant the Wireless SSID that the computer is connected to. My bad, but it's a very good post and I will use it!
Looks like you can get that data from WMI through the MSNDis_80211_BSSIList object:
You beat my poorely written batch file:
FOR /F "tokens=2,3 delims= " %%A IN ('netsh wlan show all ^|find "SSID :"') do reg add
"HKLM\Software\Intel\LANDesk\Inventory\Custom Fields" /v SSID /t REG_SZ /d %%B /f
Hi all !
Yes it’s a good way, but only for Windows Vista.
Any idea for inventory the SSID Wifi in LANDesk on Windows XP Pro ?
I need to submit reports for my boss ;-)
Tks a lot.
I've been considering adding it to ldms_client, but I have to admit that WMI bug referenced in the above links isn't encouraging. Still, it seems like pulling the SSID ought to be easy enough (famous last words).
Sadly, ldms_client work must wait for slow periods in $DAYJOB. If someone can cobble together a vbscript that gets the right info without catching that bug and crashing, I'll be happy to implement it as part of the larger ldms_client infrastructure.
I thought i tried it on windows xp, Does it not work? Does netsh work at all?
In fact netsh exist on Windows XP, but not the under commande "netsh wlan". Unfortunately !!
I cast my vote for more wireless network visibiltiy per workstation in LANDesk as well. Primarily I would like to see these two features:
1. Collect inventory of all stored wireless preferred networks (SSID, authentication type, encryption type,....)
2. Ability to manage (set up and discontinue at least) wireless network beyond Lenovo Access Connections