📜 VBScript (WSH)
Get Network Login Profiles Report (VBScript)
Queries Win32_NetworkLoginProfile via WMI and prints Network Login Profiles to the console — no PowerShell required.
GetNetworkLoginProfileReport.vbs
' ============================================================
' GetNetworkLoginProfileReport.vbs
'
' Reports Network Login Profiles via WMI (Win32_NetworkLoginProfile).
'
' Usage: cscript GetNetworkLoginProfileReport.vbs
' ============================================================
Option Explicit
Dim objWMIService, colItems, objItem, strOutput
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
Set colItems = objWMIService.ExecQuery("SELECT Name, LastLogon, NumberOfLogons FROM Win32_NetworkLoginProfile")
strOutput = ""
For Each objItem In colItems
strOutput = strOutput & "Name: " & objItem.Name & vbCrLf
strOutput = strOutput & "LastLogon: " & objItem.LastLogon & vbCrLf
strOutput = strOutput & "NumberOfLogons: " & objItem.NumberOfLogons & vbCrLf
strOutput = strOutput & String(40, "-") & vbCrLf
Next
If strOutput = "" Then
WScript.Echo "No Network Login Profiles found."
Else
WScript.Echo strOutput
End If