# New-ConfigurationImportModule

Creates a configuration for importing PowerShell modules.

Project

PSPublishModule

Build, test, version, sign, and publish PowerShell modules with reusable PowerForge pipelines.

[View on GitHub](https://github.com/EvotecIT/PSPublishModule) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSPublishModule/releases/tag/v3.0.124) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSPublishModule/2.0.27)

Stars **48**

Forks **15**

Open issues **1**

PowerShell Gallery downloads **17,213**

Release **v3.0.195**

Language: C# Updated: 2026-11-25

Command 

**Module**

`PSPublishModule`

**Inputs**

`None`

Creates a configuration for importing PowerShell modules.

## Syntax

```
New-ConfigurationImportModule
[-ImportRequiredModules]
[-ImportSelf]
[-PreferBinaryConflictOrder]
[-SkipBinaryConflictAnalysis]
[-SkipBinaryDependencyCheck]
[<CommonParameters>]
```

[#](#method-new-configurationimportmodule-switchparameter-switchparameter-switchparameter-switchparameter-switchparameter)

Parameter set: `All Parameter Sets`

## Description

Controls which modules are imported during a pipeline run (the module under build itself and/or its RequiredModules). This is primarily used by test and documentation steps that execute PowerShell code.

## Examples

### Import the module under build and its RequiredModules

```powershell
New-ConfigurationImportModule -ImportSelf -ImportRequiredModules
```

Ensures the pipeline imports the module and required dependencies before running tests or generating docs.

### Import only the module under build

```powershell
New-ConfigurationImportModule -ImportSelf
```

## Parameters

**-ImportRequiredModules SwitchParameter optional**

Indicates whether to import required modules from the manifest.

**-ImportSelf SwitchParameter optional**

Indicates whether to import the current module itself.

**-PreferBinaryConflictOrder SwitchParameter optional**

Reorders RequiredModules using a conflict-aware heuristic before manifest refresh and import validation.

**-SkipBinaryConflictAnalysis SwitchParameter optional**

Skips required-module and self-module binary conflict advisories during import validation.

**-SkipBinaryDependencyCheck SwitchParameter optional**

Skips binary dependency preflight before importing the built module.

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:5CDA3BF7B79ED8385E36FF06900375E4C7FD640D5617E19965A26B8D68F35452 -->
