One easy way of creating lists of PC names or IP address ranges etc is a simple pipeline like this:
1..40 | Foreach-Object { 'PC-W7-A{0:000}' -f $_ }
Use the -f operator to format the number. In this example, it will always be three-digit.
Explore all the products and find the right solution for your business
Explore all the products and find the right solution for your business
Explore all the products and find the right solution for your business
by ps1Apr 19, 2010
One easy way of creating lists of PC names or IP address ranges etc is a simple pipeline like this:
Use the -f operator to format the number. In this example, it will always be three-digit.