| external help file | PSFunctionInfo-help.xml |
|---|---|
| Module Name | PSFunctionInfo |
| online version | https://jdhitsolutions.com/yourls/b91632 |
| schema | 2.0.0 |
Remove PSFunctionInfo metadata.
Remove-PSFunctionInfo [-FunctionName] <String> -Path <String> [-WhatIf] [-Confirm] [<CommonParameters>]Use this function to remove the PSFunctionInfo metadata for a given function.
PS C:\> Remove-PSFunctionInfo Test-Eventlog -path c:\work\eventlogtools.ps1Remove the entry for the given function.
PS C:\> Get-PSFunctioninfo -Path c:\work\tools.ps1 | Remove-PSFunctionInfoGet PSFUnctionInfo for all functions from the specified file and remove them. This assumes that every function has a source value that reflects c:\work\tools.ps1. Otherwise, you could specify the Path parameter with Remove-PSFunctionInfo.
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: FalseSpecify the name of a function that doesn't belong to a module.
Type: String
Parameter Sets: (All)
Aliases: Name
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: FalseSpecify the source .ps1 file for the function.
Type: String
Parameter Sets: (All)
Aliases: FullName, Source
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
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.
Learn more about PowerShell: https://jdhitsolutions.com/yourls/newsletter