Update list-nic.ps1

This commit is contained in:
Markus Fleschutz 2022-10-17 19:55:53 +02:00
parent d261f1efdd
commit 7754be7995

View File

@ -12,7 +12,7 @@
#>
try {
Get-WmiObject -Class Win32_NetworkAdapterConfiguration
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table -property ServiceName,Description,IPAddress,DHCPEnabled -AutoSize
exit 0 # success
} catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"