< Back

Import-P1NavTool

Sat Jan 18, 2020 7:01 pm

NAME Import-P1NavTool



SYNOPSIS

Import in local environnement the powershell module PlannerOne.NavTool.





SYNTAX

Import-P1NavTool [-Version] <String> [<CommonParameters>]





DESCRIPTION

Get the module from local package.





PARAMETERS

-Version <String>

Dynamics NAV version.





param(

[Parameter(Mandatory=$True)] [string] $Version

)

$ModuleName = Get-Version $P1NavToolPackage $Version

$path = Get-PackageFolder $ModuleName



$modRepo = "$env:ProgramFiles\\WindowsPowerShell\\Modules"

Copy-item "$path\\PlannerOne.NavTool\\" "$modRepo" -recurse -Force

Write-host "copy $path in $modRepo"





Import-module "PlannerOne.NavTool" -force

Write-OK "Import Module PlannerOne.NavTool done.."

Dynamics NAV version.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS





RELATED LINKS