Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 180259

powershell variables setting

$
0
0

Hi,

 

What would be the easist way to acheive this:

 

I have an IP, 123.45.56.79

 

$myip = "123.45.56.79"

 

I need to capture the  subnet: 56 and place it in this string

 

network-056  (notice the 0 )

 

$mynetwork = "network-056"

 

Thank you for the help,


Viewing all articles
Browse latest Browse all 180259

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>