Get-Alias -Name dir | Format-List -Property * PowerShell Alias 提供程序 PowerShell 包括 Alias 提供程序。 Alias 提供程序允许你在 PowerShell 中查看别名,就像它们是在文件系统驱动器上一样。 Alias 提供程序公开 Alias: 驱动器。 若要进入 Alias: 驱动器,请键入: PowerShell 复制 Set-Location Alias:...
Cmdlet Set-Alias 會在目前的 PowerShell 工作階段中建立別名。 Name 參數會指定別名的名稱 list。 Value 參數會指定別名執行的 Cmdlet。若要執行別名,請在 PowerShell 命令列上輸入 list。範例2:將現有的別名重新指派給不同的 Cmdlet此命令會重新指派現有的別名,以執行不同的 Cmdlet。
PowerShell includes the following aliases forSelect-String: All platforms: sls Select-Stringis similar togrepin UNIX orfindstr.exein Windows. Theslsalias for theSelect-Stringcmdlet was introduced in PowerShell 3.0. Note According toApproved Verbs for PowerShell Commands, the official alias prefix fo...
New-Alias-Name"C"-ValueGet-ChildItem-Description"quick gci alias"-OptionReadOnlyGet-Alias-Name"C"|Format-List* 此命令创建一C个名为表示 cmdlet 的Get-ChildItem别名。 它为该别名创建了说明、快速 wmi 别名,并使其只读。 该命令的最后一行用于Get-Alias获取新别名,并通过管道将其传递给Format-List以显示...
You can find out all the defined aliases by using the Get-Alias cmdlet. Another great feature in PowerShell is the fact that either the slash (/) or the backslash (\) can be used in specifying directory trees, making PowerShell a more comfortable experience for both Windows and Unix ...
Get-Module[[-Name] <String[]>] [-FullyQualifiedName <ModuleSpecification[]>] [-All] [-ListAvailable] [-PSEdition <String>] [-SkipEditionCheck] [-Refresh] [<CommonParameters>] PowerShell Get-Module[[-Name] <String[]>] [-FullyQualifiedName <ModuleSpecification[]>] [-ListAvailable] [-PS...
Aliases:CN, ServerName Position:Named Default value:None Required:False Accept pipeline input:True Accept wildcard characters:False -Filter Specifies a where clause to use as a filter. Specify the clause in either theWQLor theCQLquery language. Do not include theWHEREkeyword in the value of the...
Finding Aliases We already showed you how to get a list of all the aliases available (the Get-Alias cmdlet). Here’s how to get a list of aliases sorted by alias: get-alias | sort-object Want to sort by definition (the cmdlet, function, etc. that the alias is an alias for)? Okay...
The AddExchangeLocation parameter specifies the mailboxes to add to the list of included mailboxes when you aren't using the value All for the ExchangeLocation parameter. Valid values are: A regular user mailbox. Including other types of mailboxes (for example, inactive mailboxes or Microsoft ...
{"$schema":"./Microsoft.PowerShell.Crescendo.Schema.json",// <-- Schema definition file"Verb":"Get",// <-- Cmdlet Verb"Noun":"InstalledPackage",// <-- Cmdlet Noun"OriginalName":"apt",// <-- Native command"OriginalCommandElements":["-q","list","--installed"],"OutputHandlers":[...