我正在尝试检查 cmdlet 的别名。我如何通过命令验证这一点?
我一直在尝试这种方式:
Get-Command -CommandType alias | Where-Object {$ _. Name-like "Copy-Item"}
Run Code Online (Sandbox Code Playgroud)
结果:

Get-Alias -Definition Copy-Item
Run Code Online (Sandbox Code Playgroud)
Get-Help解释使用-Definition:
指定指定项的别名数组。输入 cmdlet、函数、脚本、文件或可执行文件的名称。
| 归档时间: |
|
| 查看次数: |
945 次 |
| 最近记录: |