I am trying to get a list of IP addresses of the computer I am connected onto.
I have achieved this via:
$IPV4Addresses = Get-NetIPAddress -AddressFamily ‘IPv4’ | Select-Object -ExpandProperty ‘IPAddress’
This outputs as a list of 8 IP addresses. I’m wondering how I can replace the last octet on each IP address so they become xxx.xxx.xx.*
as a bonus I would also like to separate the final output by ;
Is this easy to achieve?