Dear Everyone,

How to improve Report to get MAC ADDRESS from Client Machine when it does not connect?

For example my laptop have 2 connection [1.LAN Card and 2.Wireless Card] and I have K1000 agent then I try to create report about MAC ADDRESS Information if my laptop connect with LAN Card and Wireless Card I can get MAC ADDRESS information but if I connect with LAN Card only I will can't get information about Wireless Card MAC ADDRESS from my laptop so please advise me how to get MAC ADDRESS of wireless card for this case? 

 

Thanks, 

0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

2

Your best bet would probably be to run a script to pull that info and export it to a custom inventory. Then run your report on that custom inventory.

Powershell:

$strComputer = gc env:computername

$colItems = Get-WmiObject -Class "Win32_NetworkAdapterConfiguration" -ComputerName $strComputer -Filter "IpEnabled = TRUE"

function Mac {

ForEach ($objItem in $colItems) {

$objItem.Description

$objitem.macaddress}}

Mac|out-file "C:\temp\test.txt"

Custom Inventory:

ShellCommandTextReturn(cmd.exe /c type C:\temp\test.txt)

 
Answered 01/07/2013 by: dugullett
Red Belt

  • http://www.itninja.com/question/report-nic-mac-addresses-regarless-of-interface-state
Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share