PowerShell check the NIC status and the corresponding power settings _powershell

Source: Internet
Author: User

Applies to Windows 8.1/server-R2 operating system.

Some of the commands used to manage network adapters are introduced in Windows 8.1 and Windows Server R2. When you want to check WiFi connectivity, such as if you want to figure out why a remote wake-up call doesn't wake your machine, you might want to look at the power management settings.

Look at this line of code:

Copy Code code as follows:

Ps> Get-netadapter

Name interfacedescription ifindex Status MacAddress linkspeed
----                      --------------------                    ------- ------       ----------             ---------
WLAN Intel (R) Centrino (r) wireless-n 1000 4 up 74-e5-0b-8d-f3-70 Mbps
Vethernet (Internal Et ...) Hyper-V Virtual Ethernet Adapter #4 up 00-15-5d-02-01-08 Gbps
Vethernet (Broadcom Ne ... Hyper-V Virtual Ethernet Adapter #3 disconnected DC-0E-A1-73-7B-FF 1 Gbps
Vethernet (V-hub) Hyper-V Virtual Ethernet Adapter #2 up 74-e5-0b-8d-f3-70 Mbps
Network Bridge Microsoft Network Adapter Multiplexo ... Up 74-e5-0b-8d-f3-70-Mbps
Ethernet Broadcom NetLink (TM) Gigabit Ethernet 3 disconnected dc-0e-a1-73-7b-ff 0 bps


Once you have found the corresponding network card name, you can view the power settings.
Copy Code code as follows:

ps> Get-netadapter-name WiFi | Get-netadapterpowermanagement


Interfacedescription:intel (R) wireless-n 7260
Name:wifi
Arpoffload:enabled
Nsoffload:enabled
Rsnrekeyoffload:enabled
D0packetcoalescing:enabled
selectivesuspend:unsupported
Devicesleepondisconnect:disabled
Wakeonmagicpacket:enabled
Wakeonpattern:enabled

Lai Non-moss-note: My own output after running on this machine is: get-netadapterpowermanagement: The device connected to the system is not functioning.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.