Remove-Alias[-Name] <String[]> [-Scope <String>] [-Force] [<CommonParameters>] 说明 Remove-Aliascmdlet 从当前 PowerShell 会话中删除别名。 若要删除Option属性设置为ReadOnly的别名,请使用Force参数。 PowerShell 6.0 中引入了Remove-Aliascmdlet。
Name The alias name to remove. PagingParameters If the cmdlet declares paging support (via SupportsPaging), then PagingParameters property contains arguments of the paging parameters. Otherwise PagingParameters property is null. (Inherited from PSCmdlet) ParameterSetName The name of the parameter ...
Remove-ItemAlias:*-Force 动态参数 动态参数是由 PowerShell 提供程序添加的 cmdlet 参数,仅在启用提供程序的驱动器中使用 cmdlet 时才可用。 选项[System.Management.Automation.ScopedItemOptions] 确定alias的Options属性的值。 None:无选项。 此值为默认值。
RemoveAliasCommand Constructors Properties Force Name Scope Methods RemoveEventCommand RemoveItemCommand RemoveItemPropertyCommand RemoveJobCommand RemoveModuleCommand RemovePSBreakpointCommand RemovePSDriveCommand RemovePSSessionCommand RemoveServiceCommand RemoveTypeDataCommand ...
New-Alias - 建立新的別名。 Set-Alias - 建立或變更別名。 Remove-Alias - 刪除別名。 Export-Alias - 將一或多個別名匯出至檔案。 Import-Alias - 將別名檔案匯入 PowerShell。 如需Cmdlet 的詳細資訊,請輸入: PowerShell 複製 Get-Help <cmdlet-Name> -Detailed 例如,鍵入: PowerShell 複製 Get-Hel...
使用Remove-Item alias命令删除已设定的别名。 如删除别名ls: PS C:\> Remove-Item alias:ls 创建永久的别名 在PowerShell中直接使用Set-Alias或New-Alias命令创建的别名在关闭此Session后即会失效,防止此现象的方法是将此命令写入Windows PowerShell profile文件。
别名是 cmdlet 或命令元素的替代名称或昵称。若要运行 cmdlet,您可以使用其全名或任何有效别名。有关详细信息,请参阅 about_Aliases。若要创建新别名,请使用 Set-Alias 或 New-Alias。若要删除别名,请使用 Remove-Item。自
Remove-Item Rename-Item Set-Item 從名稱應該不難瞭解這些與項目相關 cmdlet 的功能,以下我們利用例子簡述這些 cmdlet 的用法。New-Item(別名為 ni):可用來建立新的檔案、目錄或登錄機碼;如果是別名或變數,要利用 New-Alias 和 New-Variable 新建。例如以下的例子:#...
private string _name = "PowerShellIsolatedStore"; /// name of store [Alias("Filename")] [Parameter] public string Name { get { return _name; } set { _name = value; } } Common ParametersWindows PowerShell reserves a few parameter names, referred to as Common parameters, which you ...
Alias cls Clear-Host Alias clv Clear-Variable Alias compare Compare-Object Alias copy Copy-Item Alias cp Copy-Item Alias cpi Copy-Item Alias cpp Copy-ItemProperty Alias cvpa Convert-Path Alias dbp Disable-PSBreakpoint Alias del Remove-Item ...