I selected to run adb shell dumpsys wifi and examined the results. You should notice that it says Wi-Fi is disabled; this is because my device is currently in Airplane mode. Also, you can see some Wi-Fi connections that I previously connected to. This screenshot was redacted to give you a glimpse of what is there.
To export your results to a text file, simply refer to the command below.
Next, I ran adb.exe shell dumpsys user to get a glimpse of my device and the user. We can see the name "Felicia Jones" and login dates and times and the fact that a fingerprint is being used to lock her devices. MDM is not being used and there is only one user on this device.