Remove-Alias [-Name] <String[]> [-Scope <String>] [-Force] [<CommonParameters>]说明Remove-Alias cmdlet 从当前 PowerShell 会话中删除别名。 若要删除 Option 属性设置为 ReadOnly的别名,请使用 Force 参数。PowerShell 6.0 中引入了 Remove-Alias cmdlet。示例...
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 ...
Reference Feedback Definition Namespace: Microsoft.PowerShell.Commands Assembly: Microsoft.PowerShell.Commands.Utility.dll Package: Microsoft.PowerShell.Commands.Utility v7.4.0 C# 複製 public RemoveAliasCommand (); Applies to 產品版本 PowerShell SDK 7.2.0, 7.3.0, 7.4.0 本文...
Remove-Item -Path Alias:serv 此命令删除以“s”开头的别名。 它不会删除只读别名。 PowerShell 复制 Clear-Item -Path Alias:s* 删除只读别名 此命令从当前会话中删除所有别名,但其 Options 属性的值Constant除外。 该-Force参数允许命令删除其 Options。 PowerShell 复制 Remove-Item Alias:* -Fo...
Alias:当前作用域内定义的别名 Env:当前作用域内定义的环境变量 Function:当前作用域内定义的函数 Variable:当前作用域内定义的变量 脚本的默认作用域是脚本作用域。 函数和别名的默认作用域是本地作用域,即使它们是在脚本中定义的。 使用作用域修饰符 若要指定新变量、别名或函数的作用域,请使用作用域修饰符。
Get-ChildItem -Path "C:\Path\To\Directory" | Select-Object Name, Length, LastWriteTime 递归删除目录及其内容: powershellCopy Code Remove-Item -Path "C:\Path\To\Directory" -Recurse -Force 复制文件到新目录: powershellCopy Code Copy-Item -Path "C:\Source\File.txt" -Destination "C:\Destinatio...
.1.1PSFTPAlias Receive-FTPItem1.7.1.1PSFTPAlias Send-FTPItem1.7.1.1PSFTPFunction Add-FTPItem1.7.1.1PSFTPFunction Get-FTPChildItem1.7.1.1PSFTPFunction Get-FTPConnection1.7.1.1PSFTPFunction Get-FTPItem1.7.1.1PSFTPFunction Get-FTPItemSize1.7.1.1PSFTPFunction New-FTPItem1.7.1.1PSFTPFunction Remove-FTPItem...
Position: Named Default value: None Required: False Accept pipeline input: False Accept wildcard characters: False Applies to: Exchange Server 2010, Exchange Server 2013, Exchange Server 2016, Exchange Server 2019-ExtendedRightsThe ExtendedRights parameter specifies the extended rights to remove. Expand...
Note: For scripts written against earlier versions of this module this cmdlet can also be invoked with the alias,Remove-DPTags. Parameters -ClientConfig <AmazonDataPipelineConfig> Amazon.PowerShell.Cmdlets.DP.AmazonDataPipelineClientCmdlet.ClientConfig ...
Alias You can't use this parameter with the MailboxGuid or MoveRequestQueue parameters. Expand table Type: MoveRequestIdParameter Position: 1 Default value: None Required: True Accept pipeline input: True Accept wildcard characters: False Applies to: Exchange Server 2010, Exchange Server 2013, Ex...