If you find my post to be helpful in anyway, please click vote as helpful. If you find that my post has answered your question, please mark it as the answer. $lines | select Name,SubnetMask,StartRange,EndRange,ScopeId,OptionID,OptionName,OptionVendorClass,OptionUserClass |Export-Csv C:\temp\$dhcpserver-ScopeOption.csv -Append -NoTypeInformation If you think this might be helpful for you or someone else, then please download it, test it, and rate it. $lines = New-Object psobject -Property $Serverproperties Get-TMDhcpDNS function will collect the Scope Name, Scope ID, DNS Servers, and whether the DNS Servers assigned, are done so in the Scope Options or Server Options. books about Windows Scripting, including Windows PowerShell 3. $scope | Export-Csv "C:\temp\$DHCPServer-Scopes.csv" -Append -NoTypeInformation On AD the DNS suffix search list worked fine with GPO but on Intune Im a bit. Select-Object OptionID,Name,Value,VendorClass,UserClass,PolicyName $serveroptions = Get-DHCPServerv4OptionValue -ComputerName $computername.DnsName | Select-Object "Name","SubnetMask","StartRange","EndRange","ScopeID","State" $scopes = Get-DHCPServerv4Scope -ComputerName $computername.DnsName | $computername | Export-Csv C:\temp\DHCPServer.csv -Append -NoTypeInformation This will get a list of all DHCP servers export to a csv, export each servers scope to individual named csv for each dhcp server, export each servers server option to a separate csv and then export each I think the below should work for what you want.
0 Comments
Leave a Reply. |