We're trying to export about 450 scopes and re-create them on another DHCP Server importing the values from a CSV and running the Add-DhcpServerV4Scope cmdlet.
Everything works perfectly except the LeaseDuration value.
See the value is set to "day.hrs:mins:secs" format.
Running the script gets the error "Add-DhcpServerv4Scope : Cannot process argument transformation on parameter 'LeaseDuration'. Cannot convert null to type "System.TimeSpan"."
Does anybody have a value that the time can be inputted into a CSV that the Add-DhcpServerV4Scope cmdlet can use to set the scope value to the specified LeaseDuration.