Sign in
|
Join PowerShell.com!
|
Help
Home
PowerTips
Ask the Experts
Forums
Webcasts
Blogs
eBookV2
Script Library
Twitter Grid
Featured Posts
Dreaming in PowerShell
Don Jones
Code MarkUp Tool
Directory
Dreaming in PowerShell
»
All Tags
»
Significant Byte
»
System.Version
(
RSS
)
Browse by Tags
Share
|
Recent Posts
Creating IP Ranges (and other type magic)
Archives
June 2012 (1)
May 2012 (3)
April 2012 (3)
December 2011 (1)
November 2011 (1)
October 2011 (2)
September 2011 (2)
August 2011 (1)
June 2011 (1)
May 2011 (2)
April 2011 (2)
March 2011 (3)
February 2011 (3)
January 2011 (2)
November 2010 (5)
October 2010 (5)
September 2010 (2)
August 2010 (1)
March 2010 (1)
January 2010 (3)
September 2009 (2)
August 2009 (1)
July 2009 (1)
May 2009 (2)
March 2009 (1)
February 2009 (1)
January 2009 (3)
December 2008 (1)
November 2008 (8)
October 2008 (3)
September 2008 (1)
Tags
Audio
Convert
Credential
Get-Shortcut
GetType()
Get-WMIObject
OpenWSMan
Password
path
performance
ping
Pipeline
PowerShell
Recurse
RegEx
Regular Expression
Remoting
Select-Object
Split
Tag
taglib-sharp.dll
V2
Video
Windows 7
XML
View more
cast
Convert
HighLow
ping
System.Net.IPAddress
Test-Connection
Creating IP Ranges (and other type magic)
Recently I needed to create a range of IP addresses. No big deal, you think? Well, if it is just a small segment, then it *is* easy stuff: 1..255 | Foreach-Object { "192.168.2.$_" } But what if you need larger segments? Type Conversion Magic...
Published
Sun, Feb 02 2011 11:20 PM
by
Tobias
Filed under:
cast
,
ping
,
Convert
,
System.Net.IPAddress
,
System.Version
,
Test-Connection
,
HighLow
,
Significant Byte
Copyright 2012 PowerShell.com. All rights reserved.