Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Import Functions selectively from a Module

$
0
0

In my powershell file First.ps1 i have a Function Sum. In the Second.psm1 module i have the Functions: Sum, Multiply. How to only Import Multiply into First.ps1.

In the First.ps1:Import-Module (Join-Path $PSScriptRoot "Second") -DisableNameChecking is importing Functions: Sum, Multiply.


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>