Very Simple Powershell Ping test or IP scanner script

By Tom Kitching

This simple Powershell script will carry out a quick check against each IP in a 24 bit subnet and return a value of true or false dependent on whether or not it receives a reply.  It’s similar to using an IP scanner or a ping script. $subnet = "10.20.6." 1..254 | Foreach-Object {write-host "$Subnet$_…" (Test-Connection…

Configure IPv4 IP Address, DNS servers and DNS Suffix from within Powershell

By admin

I recently used this on a Hyper-V build.  It should provide enough network connectivity to add your server to the Active Directory domain. Find connected NICs and interface names Get-NetAdapter Configure IP address New-NetIPAddress -InterfaceAlias "NIC1" -IPAddress 10.20.0.141 -AddressFamily IPv4 -PrefixLength 24 -DefaultGateway 10.20.0.1 Configure DNS Servers Set-DnsClientServerAddress -InterfaceAlias "NIC1" -ServerAddresses 10.20.0.133 Configure the suffix…