Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

power is network connected

# note "local.* 1$" is a regex to match network interface of interest
netsh interface ipv4 show interfaces | select-string "local.* 1$" | %{($_ -split "s+")[4]}
Source by devblogs.microsoft.com #
 
PREVIOUS NEXT
Tagged: #power #network #connected
ADD COMMENT
Topic
Name
7+7 =