Powershell – IP Assigned de DHCP

Un mic script care citeste ce IP a fost Assignat de serveru de DHCP in ziua respectiva. Tot ce trebuie sa faceti este sa schimbati _Server DHCP_ cu numele serverului
$fispath = “\\_Server DHCP_\c$\WINDOWS\system32\dhcp\DhcpSrvLog-“+$fisname+”.log”
$a = Get-Content $fispath
“Computers added in DHCP”
ForEach($linie in $a ){
if ($b[0] -eq 10) {
“The computer “+$b[5]+” with the MAC address “+$b[6]+” and the IP “+$b[3]+” Was added to DHCP”

VN:F [1.9.20_1166]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
Powershell - IP Assigned de DHCP, 10.0 out of 10 based on 1 rating

Leave a Reply