If aĬommand is included in multiple modules, use the Find-Command cmdlets ModuleName parameter. Example 2: Find commands by name and install the moduleįind-Command can locate the command and module, then send the object to Install-Module. Specifies the command Get-TargetResource. Get-TargetResource 1.2.0.0 SystemLocaleDsc PSGalleryįind-Command uses the Repository parameter to search the PSGallery. Get-TargetResource 1.0.0 xInternetExplorerHomePage PSGallery ![]() Get-TargetResource 3.1.0.0 xPowerShellExecutionPolicy PSGallery Find-Command -Repository PSGallery -Name Get-TargetResource That a command name exists in multiple ModuleNames. Examples Example 1: Find a command by nameįind-Command can use the name of a command to locate the module in a repository. For more information, seeįind-PSResource. This is a proxy cmdlet for the Find-PSResource cmdlet in the ![]() Find-Command searches modules in registered repositories. The Find-Command cmdlet finds PowerShell commands such as cmdlets, aliases, functions, and
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |