Guy recommends :
Free SolarWinds
VM Console

Solarwinds VM Console Free Download

Find out which of your VMs are a waste of space and which VMs need more resources.



PowerShell 3.0 Network Cmdlets

Network Cmdlets in Windows PowerShell 3.0PowerShell 3.0 Network Cmdlets

PowerShell 3.0 brings lots of handy new network cmdlets - I say cmdlets, but to be precise they are functions, but with the familiar verb-noun pairing.

 ♦

Research PowerShell Network CommandsNew PowerShell 3.0 Network Functions

Probably the easiest way to discover the version 3 cmdlets is to filter using the new PowerShell ISE panel.

Just start typing a cmdlet and as you get to the '-' so you should see the 'Commands' add-in.

You can see in the screenshot to the right how to select Modules, for example, NetTCPIP.

Alternatively, you could try using the trusty old Get-Command technique.

# PowerShell 3.0 Network Cmdlets
Get-Command -noun Net*

Note 1: It may be better to filter by appending: -noun NetIP*

Show-Command with Get-NetIPAddressPowerShell Show-Command Get-Event

Here is an example of a useful new PowerShell 3.0 cmdlet called Show-Command.  Its purpose is to research more about a cmdlet that we are interested in namely: Get-NetIPAddress.

# Research PowerShell's Network Cmdlets
Show-Command Get-NetIPAddress

While I have chosen Get-NetIPAddress, you could experiment with any of these network cmdlets / functions.

Note 2: See more about Show-Command.

Example 1: Get-NetIPAddress Script

For some strange reason, the 'Name' property does not seem to produce any results, this is why I suggest that you use: 'InterfaceAlias'.

Clear-Host
Get-NetIPAddress | Format-Table InterfaceAlias, IPv4Address, RequestedState -auto.

Note 3: You can discover more properties with Get-Member
Get-NetIPAddress | GM

Note 4: There is also a sister command Set-NetIPAddress.

Guy Recommends: A Free Wake-On-LAN UtilitySolarwinds Wake-On-LAN

Encouraging computers to sleep when not in use is a great idea - until you are away from your desk and need a file on that remote sleeping machine!

Wake-On-LAN really will save you that long walk to awaken a hibernating machine; however my reason for encouraging you to download this utility is just because it's so much fun sending those 'Magic Packets'.  As Wake-On-LAN (WOL) is free, see if I am right, and you get a kick from arousing those sleeping machines.  WOL also has business uses for example, wakening machines so that they can have their patches applied. 

Download your free copy of Wake-On-LAN

Example 2: Get-NetIPInterface

Here is different PowerShell Network command, with the GetNetIPInterface cmdlet you can extract information about the MACAddress and subnet mask.

Clear-Host
Get-NetIPInterface | Format-Table InterfaceAlias, SubnetMask, MACAddress -auto

Note 5: To see all the properties, append Get-Member thus:
Get-NetIPInterface | Get-Member

Note 6: You can also call for PowerShell's built in Get-Help thus:
Help Get-NetIPInterface

Such research reveals ideas, for example:
Get-NetIPInterface -InterfaceAlias 13

Note 6: If you need to change of these properties try the sister command Set-NetIPInterface.

The NetAdapter Family

There are a group of PowerShell cmdlets which use the NetAdapter noun.  Their job is mainly to enable or disable the NIC (Network Interface Connector), see more here on Disable-NetAdapter.

Getting Started with Windows PowerShell ISE 3.0

Here are brief instructions to download and install PowerShell v 3.0.

Get Your Copy of PowerShell 3.0 CTP

As an alternative to installing Windows 8, if you have Windows 7 with SP1 or Windows Server 2008 R2 SP1, then you can download the Community Technology Preview version, see here for PowerShell 3.0 CTP.PowerShell V 3.0

Launching PowerShell v 3.0

Assuming you are at the Metro user interface, this is how to get started with Windows PowerShell ISE 3.0.

  • From anywhere in the Metro UI, press the 'p' key.  You should see a list of the programs and Apps.
  • At this point you could right-click and 'Pin' the 'Windows PowerShell ISE'.
  • Incidentally, I prefer the GUI (ISE) version to the plain command line Windows PowerShell.
  • I like to drag the PowerShell ISE tile to the left of my screen because it's one of the most important Windows 8 Tiles that use.

See more of what's new in PowerShell v 3.0 »

Summary of PowerShell Network Cmdlets

PowerShell 3.0 brings lots of handy new network functions.  The easiest best way to research these new cmdlets is to filter using the new PowerShell Command / Modules panel.

If you like this page then please share it with your friends

 


See more Microsoft PowerShell v 3.0 examples

PowerShell Tutorials  • What's New in PowerShell 3.0  • PowerShell v 3.0 ISE

PowerShell 3.0  • Disable-NetAdapter  • Disable-NetAdapter  • Enable-NetAdapter

PowerShell Network Cmdlets  • PowerShell 3.0 Logon Script  • PowerShell Show-Command

 *


Custom Search

Site Home

Guy Recommends: SolarWinds Free IP SLA MonitorSolarwinds IP Sla Monitor

SolarWinds IP SLA Monitor offers so much more than just uncovering network bottlenecks, the real joy is learning about router traffic.

To find out what's happening on the network between your computers and their routers, download your free copy of the of IP SLA Monitor.

Article by: Guy Thomas Copyright © 1999-2012 Computer Performance LTD All rights reserved.

Please report a broken link, or an error to: