Imports one or more IP address range objects from the specified file into the IPAM server.
Networking / Security · Risk: High · Documentation Verified
Last verified: 2026-10-26
Microsoft IpamServer reference: Imports one or more IP address range objects from the specified file into the IPAM server. The syntax and selected example below are adapted from the pinned Windows Server 2025 reference. Module availability, target configuration and delegated permissions determine whether it can run in your environment. Documentation and parameter text: Microsoft, CC BY 4.0; formatting adapted by Cmdlet World. No execution testing is claimed.
Use an account with the target resource permissions documented for Import-IpamRange. Modifying administrative cmdlets may require elevation or delegated administration. This catalog does not assert that ordinary users can execute the command.
Supported environments
Windows / IpamServer · Windows Server 2025 documentation; feature/module prerequisites apply
Parameters
-AddManagedByService
Indicates that the cmdlet adds the specified *ManagedByService* parameter value to the custom field that matches this parameter name, if not already present.
-AddServiceInstance
Indicates that the cmdlet adds the specified *ServiceInstance* parameter value to the custom field that matches this parameter name, if not already present.
-AddressFamily (required)
Specifies the address family of records that this cmdlet imports. The acceptable values for this parameter are: - IPv4 - IPv6. Only one address family at a time can be specified with this cmdlet and the records in the .csv file should match the specified address.
-AsJob
Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to complete. The cmdlet immediately returns an object that represents the job and then displays the command prompt. You can continue to work in the session while the job completes. To manage the job, use the *-Job cmdlets. To get the job results, use the Receive-Job cmdlet. For more information about Windows PowerShell background jobs, see about_Jobs.
-CimSession
Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local computer.
-Confirm
Prompts you for confirmation before running the cmdlet.
-CreateSubnetIfNotFound
Indicates that the cmdlet creates a parent subnet for this range of addresses. If you specify this parameter, the cmdlet automatically creates a parent subnet for this range, if no parent subnet exists.
-DeleteMappedAddresses
Indicates that all of the IP addresses that belong, or map, to the IP address ranges being deleted during the import and update operation, are also deleted.
-ErrorPath
Specifies the fully qualified path, and not the name, of the error .csv files which are created if one or more records fail to import. The file name is generated automatically by the IPAM server by pre-pending Error_ and appending the timestamp of the operation to the file name specified in the *Path* parameter. The default value of this parameter is the Documents folder of the user.
-Force
Forces the command to run without asking for user confirmation.
-ManagedByService (required)
Specifies the value of the managing service of the IP address ranges being imported and updated. Import of MS DHCP ranges is not supported by IPAM.
-Path (required)
Specifies the literal path and name of the .csv file to import.
-ServiceInstance (required)
Specifies an array of service instances that manage the address ranges to import.
-ThrottleLimit
Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is entered, then Windows PowerShell® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Prerequisites
Windows with the IpamServer module and the Windows feature or management tools that provide it. Confirm target connectivity and version compatibility using the linked Microsoft reference.
Security considerations
This cmdlet changes system state. Review every target and parameter in the official reference, test outside production, and prepare an appropriate backup or rollback. Do not execute the example automatically.
This command imports IPv4 address ranges from the file named Rangev4.csv into the IPAM server. The new ranges are added and existing ranges are edited. The errors, if any, are recorded in the Documents folder of the user in .csv file format. This command includes the *Force* parameter, so it suppresses the default confirmation message. Source: Microsoft, CC BY 4.0; transcript prompt/output removed. This example was not executed.