The script below is working perfect, but how do I exclude IP addresses that start with 169.254?
Thanks in advance
$formComputerSupportInfor_Load = {
#TODO: Initialize Form Controls here
$env:computername
$label1.Text = "$env:COMPUTERNAME"
$label2.Text = 'Your Computer name is:'
$info = Get-NetIPAddress -AddressFamily ipv4
$label3.Text = "$($info.IPAddress)"
$label4.Text = 'IPV4 Information'
$os = (Get-CimInstance Win32_OperatingSystem).version
$label6.Text = (Get-CimInstance Win32_OperatingSystem).version
$label5.Text = 'Your Windows 10 Build is:'
$label10.Text = 'Your Windows version is:'
$windows = (Get-ItemPropertyValue 'hklm:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' -Name ReleaseId).windows
$label9.Text = (Get-ItemPropertyValue 'hklm:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' -Name ReleaseId)
}
$label1_Click = {
#TODO: Place custom script here
}
$label3_Click={
#TODO: Place custom script here
}
$label10_Click={
#TODO: Place custom script here
}
Exclude IP from Dialog Form
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: Exclude IP from Dialog Form
Is you! I thought you were on vacation or something. I love the -online stuff, very cool. Thanks again...
Re: Exclude IP from Dialog Form
What I am doing wrong here
(Get-NetIPAddress -AddressFamily ipv4).IPAddress | Where-Object IPAddress -Match "169*"