< Back

Set-OnDemandModulePath

Sat Jan 18, 2020 5:50 pm

NAME Set-OnDemandModulePath



SYNOPSIS

Sets OnDemandModule path to given path.





SYNTAX

Set-OnDemandModulePath [-Path] <String> [<CommonParameters>]





DESCRIPTION

Import-OnDemandModule uses the path defined in `$OnDemandModulePath variable. This cmdlet will add settings to

Profile.ps1 with given path. So `$OnDemandModulePath can be set to this path as a part of profile.





PARAMETERS

-Path <String>

Desired Path for modules to be used with OnDemandModule



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

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



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Set-OnDemandModule -Path "C:\\Users\\Musa\\OnDemandModules"















RELATED LINKS