< Back

Resolve-Command

Sun Jan 19, 2020 6:46 pm

NAME Resolve-Command



SYNOPSIS

Determine which command is being referred to by the Name





SYNTAX

Resolve-Command [-Name] <String> [[-AllowedModule] <String[]>] [[-AllowedCommand] <String[]>] [<CommonParameters>]





DESCRIPTION





PARAMETERS

-Name <String>

The name of the command to be resolved



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-AllowedModule <String[]>

The name(s) of the modules from which commands are allowed (defaults to modules that are already imported).

Pass * to allow any commands.



Required? false

Position? 2

Default value $(@(Microsoft.PowerShell.Core\\Get-Module | Select -Expand Name) +

'Microsoft.PowerShell.Core')

Accept pipeline input? false

Accept wildcard characters? false



-AllowedCommand <String[]>

A list of commands that are allowed even if they're not in the AllowedModule(s)



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS





RELATED LINKS