| external help file | PSPublishModule-help.xml |
|---|---|
| Module Name | PSPublishModule |
| online version | https://github.com/EvotecIT/PSPublishModule |
| schema | 2.0.0 |
Copies only PowerShell scripts from a module's Internals\Scripts folder to a destination path. The destination is flattened (no Module/Version subfolders).
Install-ModuleScript [-Name] <string> [-Path] <string> [-RequiredVersion <version>] [-ScriptsRelativePath <string>] [-Include <string[]>] [-Exclude <string[]>] [-OnExists <OnExistsOption>] [-Force] [-ListOnly] [-Unblock] [-WhatIf] [-Confirm] [<CommonParameters>]Install-ModuleScript [-Path] <string> -Module <psobject> [-RequiredVersion <version>] [-ScriptsRelativePath <string>] [-Include <string[]>] [-Exclude <string[]>] [-OnExists <OnExistsOption>] [-Force] [-ListOnly] [-Unblock] [-WhatIf] [-Confirm] [<CommonParameters>]Copies only PowerShell scripts from a module's Internals\Scripts folder to a destination path. The destination is flattened (no Module/Version subfolders).
PS> Install-ModuleScript -Name EFAdminManager -Path 'C:\Tools' -VerboseCopies PowerShell script files under Internals\Scripts recursively into C:\Tools, preserving subfolders. Shows each copied file.
PS> Install-ModuleScript -Name EFAdminManager -Path 'C:\Tools' -Include 'Repair-*' -Unblock -OnExists OverwriteLimits to files that start with Repair-, removes Windows Zone.Identifier (on Windows), and overwrites existing files.
PS> Get-Module -ListAvailable EFAdminManager | Install-ModuleScript -Path 'C:\Tools' -ListOnlyShows Source, Destination, and chosen action for each file without writing anything.
Wildcard exclude filters (relative to the scripts folder).
Type: String[]
Parameter Sets: ByName, ByModule
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueForce overwriting read-only files when -OnExists Overwrite or -OnExists Merge with -Force for new-only behavior.
Type: SwitchParameter
Parameter Sets: ByName, ByModule
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueWildcard include filters (relative to the scripts folder). Defaults to '*.ps1'.
Type: String[]
Parameter Sets: ByName, ByModule
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueShow which files would be copied without performing any changes.
Type: SwitchParameter
Parameter Sets: ByName, ByModule
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueSpecific module instance to source scripts from.
Type: PSObject
Parameter Sets: ByModule
Aliases: None
Possible values:
Required: True
Position: named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: TrueModule name to source scripts from (highest installed version is used by default).
Type: String
Parameter Sets: ByName
Aliases: None
Possible values:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: TrueConflict handling when a destination file already exists. Defaults to Merge (keep existing).
Type: OnExistsOption
Parameter Sets: ByName, ByModule
Aliases: None
Possible values: Merge, Overwrite, Skip, Stop, Refresh
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueDestination folder to copy scripts into (created if missing).
Type: String
Parameter Sets: ByName, ByModule
Aliases: None
Possible values:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueOptional exact module version to use when multiple versions are installed.
Type: Version
Parameter Sets: ByName, ByModule
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueRelative path under the module root where scripts live. Defaults to 'Internals\Scripts'.
Type: String
Parameter Sets: ByName, ByModule
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueWhen set, attempts to remove the Windows Zone.Identifier (unblock) on copied files.
Type: SwitchParameter
Parameter Sets: ByName, ByModule
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: TrueThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
System.String System.Management.Automation.PSObject
System.Object
- None