I am new to powershell scripting and need a help to resolve a problem
I have retrieved information from DHCPserver for particular IP but I want to use the command in script to traverse all IPs in file and save each DHCPSERVERV4LEASE output to CSV on c drive
IPs are recorded in file named IPs.txt in c drive and using this command get-dhcpserverv4lease -computername dhcp.xyz.com -ipaddress 192.168.1.1 (want to read all IPs in text file from c drive"
now want to store output in csv file for each IP read from IP.CSV
need little urgent support
thanks in advance