-
Notifications
You must be signed in to change notification settings - Fork 43
Set SamplerPSModulePath
Sets the PSModulePath for the build environment.
Set-SamplerPSModulePath -PSModulePath <String> [-BuiltModuleSubdirectory <String>]
[-RequiredModulesDirectory <String>] [-PassThru] [-WhatIf] [-Confirm]
[<CommonParameters>]
Set-SamplerPSModulePath [-BuiltModuleSubdirectory <String>] [-RequiredModulesDirectory <String>]
[-RemovePersonal] [-RemoveProgramFiles] [-RemoveWindows] [-SetSystemDefault] [-PassThru]
[-WhatIf] [-Confirm] [<CommonParameters>]
This command let you define the PSModulePath for the build environment. This could be important for DSC related builds when there are conflicts with modules in the Program Files folder.
Set-SamplerPSModulePath -PSModulePath "C:\Modules" -RemovePersonal -RemoveProgramFiles
The BuiltModuleSubdirectory that should be added to the PSModulePath.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Returns the PSModulePath after the command has been executed.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Makes the command to set the PSModulePath to the specified value.
Type: String
Parameter Sets: ByPath
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Removes the personal module path from the PSModulePath.
Type: SwitchParameter
Parameter Sets: BySwitches
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Removes the Program Files module path from the PSModulePath.
Type: SwitchParameter
Parameter Sets: BySwitches
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Removes the Windows module path from the PSModulePath.
Type: SwitchParameter
Parameter Sets: BySwitches
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
The RequiredModulesDirectory that should be added to the PSModulePath.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Sets the PSModulePath to the default value for the system.
Type: SwitchParameter
Parameter Sets: BySwitches
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
- Add-Sample
- Convert-SamplerHashtableToString
- Get-BuildVersion
- Get-BuiltModuleVersion
- Get-ClassBasedResourceName
- Get-CodeCoverageThreshold
- Get-MofSchemaName
- Get-OperatingSystemShortName
- Get-PesterOutputFileFileName
- Get-Psm1SchemaName
- Get-SamplerAbsolutePath
- Get-SamplerBuiltModuleBase
- Get-SamplerBuiltModuleManifest
- Get-SamplerCodeCoverageOutputFile
- Get-SamplerCodeCoverageOutputFileEncoding
- Get-SamplerModuleInfo
- Get-SamplerModuleRootPath
- Get-SamplerProjectName
- Get-SamplerSourcePath
- Invoke-SamplerGit
- Merge-JaCoCoReport
- New-SampleModule
- New-SamplerJaCoCoDocument
- New-SamplerPipeline
- Out-SamplerXml
- Set-SamplerPSModulePath
- Split-ModuleVersion
- Update-JaCoCoStatistic