Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 179681

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 179681

Trending Articles



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