Import-vPenTestModuleSettings

SYNOPSIS

Imports the vPenTest BaseURI, API, & JSON configuration information to the current session

SYNTAX

Set (Default)

Import-vPenTestModuleSettings [[-vPenTestConfigPath] <string>] [[-vPenTestConfigFile] <string>]

ALIASES

This cmdlet has the following aliases,

  • None

DESCRIPTION

The Import-vPenTestModuleSettings cmdlet imports the vPenTest BaseURI, API, & JSON configuration information stored in the vPenTest configuration file to the users current session

By default the configuration file is stored in the following location: $env:USERPROFILE\Celerium.vPenTest

The VPENTEST_BASE_URI & VPENTEST_API_KEY environment variables are also supported and take precedence over the values stored in the configuration file. The mixed case names of version 1.0.0 (vPenTest_BASE_URI & vPenTest_API_KEY) are still supported

If no base URI is configured the default https://app.vpentest.io/api/v3 is used

EXAMPLES

EXAMPLE 1

Import-vPenTestModuleSettings

Validates that the configuration file created with the Export-vPenTestModuleSettings cmdlet exists then imports the stored data into the current users session

The default location of the vPenTest configuration file is: $env:USERPROFILE\Celerium.vPenTest\config.psd1

EXAMPLE 2

Import-vPenTestModuleSettings -vPenTestConfigPath C:\Celerium.vPenTest -vPenTestConfigFile MyConfig.psd1

Validates that the configuration file created with the Export-vPenTestModuleSettings cmdlet exists then imports the stored data into the current users session

The location of the vPenTest configuration file in this example is: C:\Celerium.vPenTest\MyConfig.psd1

PARAMETERS

-vPenTestConfigFile

Define the name of the vPenTest configuration file

By default the configuration file is named: config.psd1

Type: System.String
DefaultValue: config.psd1
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 1
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-vPenTestConfigPath

Define the location to store the vPenTest configuration file

By default the configuration file is stored in the following location: $env:USERPROFILE\Celerium.vPenTest

Type: System.String
DefaultValue: $(Join-Path -Path $home -ChildPath $(if ($IsWindows -or $PSEdition -eq 'Desktop') {"Celerium.vPenTest"}else{".Celerium.vPenTest"}) )
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 0
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

N/A