-
Notifications
You must be signed in to change notification settings - Fork 47
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: FalseReturns 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: FalseMakes 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: FalseRemoves 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: FalseRemoves 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: FalseRemoves 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: FalseThe 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: FalseSets 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: FalsePrompts 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: FalseShows 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: FalseThis 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 BuiltModuleVersion
- Get ClassBasedResourceName
- Get CodeCoverageThreshold
- Get MofSchemaName
- Get OperatingSystemShortName
- Get PesterOutputFileFileName
- Get Psm1SchemaName
- Get SamplerAbsolutePath
- Get SamplerBuildVersion
- 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