未解決案件
以下の件
で以下のような関数を見つけた。
ふと alias が付いてるんじゃね?と思い
と、そこまでは良かったのだが、Get-Command で実体を調べてみると
help も存在しない。
Get-Verb は
verb に関する言及は見られなかった。
少なくとも現状で ls function:* や alias にはそれらしい定義が見当たらないし、
これどうやって調べたらいいの???
で以下のような関数を見つけた。
> ls function:* CommandType Name Version Source ----------- ---- ------- ------ ... Function Get-Verb ...
ふと alias が付いてるんじゃね?と思い
verbを試してみると Get-Verb と同じ結果が得られた。
と、そこまでは良かったのだが、Get-Command で実体を調べてみると
> gcm verb gcm : 用語 'verb' は、コマンドレット、関数、スクリプト ファイル、または操作可能なプログラムの名前として認識されません。 名前が正しく記述されていることを確認し、パスが含まれている場合はそのパスが正しいことを確認してから、再試行してください 。 発生場所 行:1 文字:1 + gcm verb + ~~~~~~~~ + CategoryInfo : ObjectNotFound: (verb:String) [Get-Command], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException,Microsoft.PowerShell.Commands.GetCommandCommandみたいな結果になり、正体が分からない。
help も存在しない。
> help verb Name Category Module Synopsis ---- -------- ------ -------- Get-Verb Function Gets approved PowerShell verbs. Write-Verbose Cmdlet Microsoft.PowerShell.U... Writes text to the verbose message stream. Enable-DeliveryOptimizationVer... Function DeliveryOptimization ... Disable-DeliveryOptimizationVe... Function DeliveryOptimization ...
Get-Verb は
> help Get-Verb 名前 Get-Verb 概要 Gets approved PowerShell verbs. 構文 Get-Verb [[-verb] <System.String[]>] [<CommonParameters>] 説明 The `Get-Verb` function gets verbs that are approved for use in PowerShell commands. PowerShell recommends cmdlet and function names have the Verb-Noun format and include an approved verb. This practi ce makes command names more consistent, predictable, and easier to use. Commands that use unapproved verbs run in PowerShell. However, when you import a module that includes a command wit h an unapproved verb in its name, the `Import-Module` command displays a warning message. > [!NOTE] > The verb list that `Get-Verb` returns might not be complete. For an updated list of approved > PowerShe ll verbs with descriptions, see > Approved Verbs (../../docs-conceptual/developer/cmdlet/approved-verbs-for-windows -powershell-commands.md)in > the Microsoft Docs. 関連するリンク Online Version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/functions/get-verb?view=powe rshell-5.1&WT.mc_id=ps-gethelp Import-Module 注釈 例を参照するには、次のように入力してください: "get-help Get-Verb -examples". 詳細を参照するには、次のように入力してください: "get-help Get-Verb -detailed". 技術情報を参照するには、次のように入力してください: "get-help Get-Verb -full". オンライン ヘルプを参照するには、次のように入力してください: "get-help Get-Verb -online"なんだけど、-online で ↓redirect 開くと 404 - Page not found で related search result と
- Get-Verb (Microsoft.PowerShell.Core) - PowerShell
- Get-Verb (Microsoft.PowerShell.Utility) - PowerShell
- Out-Null (Microsoft.PowerShell.Core) - PowerShell
- Install Azure PowerShell on Windows with PowerShellGet
- Out-Host (Microsoft.PowerShell.Core) - PowerShell
verb に関する言及は見られなかった。
少なくとも現状で ls function:* や alias にはそれらしい定義が見当たらないし、
これどうやって調べたらいいの???
タグ
コメントをかく