Finds fscps.tools commands searching through the inline help text
Find-FSCPSCommand [[-Pattern] <String>] [[-Tag] <String[]>] [[-Author] <String>] [[-MinimumVersion] <String>]
[[-MaximumVersion] <String>] [-Rebuild] [-EnableException] [-ProgressAction <ActionPreference>] [-WhatIf]
[-Confirm] [<CommonParameters>]
Finds fscps.tools commands searching through the inline help text, building a consolidated json index and querying it because Get-Help is too slow
Find-FSCPSCommand "snapshot"
For lazy typers: finds all commands searching the entire help for "snapshot"
Find-FSCPSCommand -Pattern "snapshot"
For rigorous typers: finds all commands searching the entire help for "snapshot"
Find-FSCPSCommand -Tag copy
Finds all commands tagged with "copy"
Find-FSCPSCommand -Tag copy,user
Finds all commands tagged with BOTH "copy" and "user"
Find-FSCPSCommand -Author Mötz
Finds every command whose author contains "Mötz"
Find-FSCPSCommand -Author Mötz -Tag copy
Finds every command whose author contains "Mötz" and it tagged as "copy"
Find-FSCPSCommand -Rebuild
Finds all commands and rebuilding the index (good for developers)
Searches help for all commands in fscps.tools for the specified pattern and displays all results
Type: String Parameter Sets: (All) Aliases: Required: False Position: 1 Default value: None Accept pipeline input: False Accept wildcard characters: False
Finds all commands tagged with this auto-populated tag
Type: String[] Parameter Sets: (All) Aliases: Required: False Position: 2 Default value: None Accept pipeline input: False Accept wildcard characters: False
Finds all commands tagged with this author
Type: String Parameter Sets: (All) Aliases: Required: False Position: 3 Default value: None Accept pipeline input: False Accept wildcard characters: False
Finds all commands tagged with this auto-populated minimum version
Type: String Parameter Sets: (All) Aliases: Required: False Position: 4 Default value: None Accept pipeline input: False Accept wildcard characters: False
Finds all commands tagged with this auto-populated maximum version
Type: String Parameter Sets: (All) Aliases: Required: False Position: 5 Default value: None Accept pipeline input: False Accept wildcard characters: False
Rebuilds the index
Type: SwitchParameter Parameter Sets: (All) Aliases: Required: False Position: Named Default value: False Accept pipeline input: False Accept wildcard characters: False
By default, when something goes wrong we try to catch it, interpret it and give you a friendly warning message. This avoids overwhelming you with "sea of red" exceptions, but is inconvenient because it basically disables advanced scripting. Using this switch turns this "nice by default" feature off and enables you to catch exceptions with your own try/catch.
Type: SwitchParameter Parameter Sets: (All) Aliases: Silent Required: False Position: Named Default value: False Accept pipeline input: False Accept wildcard characters: False
Displays what would happen if the command is run
Type: SwitchParameter Parameter Sets: (All) Aliases: wi Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False
Confirms overwrite of index
Type: SwitchParameter Parameter Sets: (All) Aliases: cf Required: False Position: Named Default value: None Accept pipeline input: False Accept wildcard characters: False
{{ Fill ProgressAction Description }}
Type: ActionPreference Parameter Sets: (All) Aliases: proga 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.
Tags: Find, Help, Command This is refactored function from d365fo.tools
Original Author: Mötz Jensen (@Splaxi) Author: Oleksandr Nikolaiev (@onikolaiev)
License: MIT https://opensource.org/licenses/MIT
This cmdlet / function is copy & paste implementation based on the Find-DbaCommand from the dbatools.io project
Original author: Simone Bizzotto (@niphold)