Replacing a character in hash table values

خرید بک لینک

Newbie PowerShell user trying to mess around with some very basic scripts.

I've created a hash table with names and IP addresses.

$hash = @{"Guy1"="192.168.1.10";"Guy2"="192.168.1.12";"Guy3"="192.168.1.14"}

I know how to edit the value of a single entry but I'm not sure how to change one character in each value. How would I go about replacing every 1 (in the third octet) with a 2?

Thanks in advance, looking forward to leaing and getting better at this.

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 292 تاريخ: جمعه 15 مرداد 1395 ساعت: 9:34

صفحه بندی