VSA Procedure / Policy to grab network adapter info Windows XP-11, Server 2003-2021

Version:0.0.0.1
Description: Hey there and welcome! I was tired of not knowing how my clients were connected to the internet.
So, I made this!
It's compatible with just about every modern windows system.
There's a file written entirely in batch to maintain compatibility between systems.
It makes use of the Netsh command to gather adapter information. Some of this info varies from PC to PC. Lines 10 and 11 in the BAT file show the replacement values.
10>Set wired=Ethernet
11>Set wireless=Wi-Fi
You can change these values after the "=" to anything you want. Just remember to use quotes if you add a space.
I have added a line to find these strings in the bat file. It's on lines 16 and 19
16 >for /f "delims=" %%h in ('echo %%b ^| findstr "Embedded NIC Local Area"') do (
19> for /f "delims=" %%h in ('echo %%b ^| findstr "Wireless"') do (
To update this file to find more or different values. Just adjust the words in the quotes and leave a space between each word.
Just save the bat file with the original name and upload it to the Agent Procedure tab again. It overwrites every time.
The Policy bundled with this procedure runs every 30 minutes. You need to Add the Custom Field after import to get the benefits of the procedure.
Download and unzip the folder below to get another copy of the instructions, the bat file, and the Policy/Procedure import.
Instructions:
- Open VSA
- Go to SYSTEM
- Go to Server Management
- Go to Import Center
- Click "New Import"
- Summary Name: Get-NetAdapter Types
- Click Browse
- Navigate to the XML file titled "Audit_Windows_Systems_Custom_Field_Get_Network_Type.xml"
- Click Process
- Once imported go to Audit
- Go to View Individual Data
- Go to Machine Summary
- Click on "New Custom Field"
- I named it "Network Connection Type". You can name this what you want, but you need to update the Procedure to find the new value.
- Click Save
- Go to Agent Procedures
- Click "Manage Files"
- Click "Shared Files"
- Click and drag (straight from the zipped folder) or click "Upload a file" (if clicking here go to a.)
a. Navigate to the bat file included in the zipped folder. "GetBatchNetAdapter.bat"
b. Click Open - Close the Manage Files Stored On Server window.
- Adjust your view to the scope of computers you want to run this procedure on.
- Expand "Shared"
- Expand "Agent Procedures - In Production"
- Click "Audit - Windows Systems - Custom Feild - Get Network Type"
- Select Agents to run the procedure on
- Click Run Now or Schedule the task
- Click Submit
- Click Yes
- Go to Agent
- Either click "column sets" or click the arrow on a column title to get the Columns drop down.
- Click edit or new
- Find "Network Connection Type" in the left column (should be the last "available" value) and hit the > symbol to move it over into your Selected Columns.
- Click Save
- Now you should see a list of mostly Wi-Fi and Ethernet, sometimes both, in the column you just added.
Auxiliary
35. Go to Policy Management
36. Go to Configure
37. Go to Policies
38. Expand "Policies"
39. Expand "Global Policies - In Production
40. Click "Get Network Adapter Info - CF"
41. From here you can adjust the schedule and scope of the info being gathered. Default value on install is every 30 minutes applied to "Global Org" in "Assigned Machine Groups."