标签:Get 0.0 别名 PowerShell 命令 Remove ItemAlias Microsoft
PowerShell 的简称命令是由 Alias
提供的,这些别名为常用的 PowerShell 命令提供了更简洁的替代方式。你可以使用以下命令来查看当前系统中定义的所有别名:
powershellCopy Code
Get-Alias
这将列出所有已定义的别名及其对应的完整命令。你也可以通过在 Get-Alias
命令后面添加参数来查找特定的别名,例如:
powershellCopy Code
Get-Alias -Name <AliasName>
这将显示指定别名的完整命令。
此外,你还可以使用 gal
作为 Get-Alias
的简称,因此你可以使用以下命令来执行相同的操作:
powershellCopy Code
gal
或者
powershellCopy Code
gal -Name <AliasName>
请注意,虽然别名可以方便地缩短命令的输入,但在阅读和理解脚本时,建议尽量使用完整的命令,以确保代码的可读性和可维护性。
Get-Alias
CommandType Name Version Source ----------- ---- ------- ------ Alias % -> ForEach-Object Alias ? -> Where-Object Alias ac -> Add-Content Alias Add-AppProvisionedPackage 3.0 Dism Alias Add-ProvisionedAppPackage 3.0 Dism Alias Add-ProvisionedAppSharedPackageContainer 3.0 Dism Alias Add-ProvisionedAppxPackage 3.0 Dism Alias algm -> Add-LocalGroupMember 1.0.0.0 Microsoft.PowerShell.LocalAccounts Alias Apply-WindowsUnattend 3.0 Dism Alias asnp -> Add-PSSnapin Alias cat -> Get-Content Alias cd -> Set-Location Alias CFS -> ConvertFrom-String 3.1.0.0 Microsoft.PowerShell.Utility Alias chdir -> Set-Location Alias clc -> Clear-Content Alias clear -> Clear-Host Alias clhy -> Clear-History Alias cli -> Clear-Item Alias clp -> Clear-ItemProperty Alias cls -> Clear-Host Alias clv -> Clear-Variable Alias cnsn -> Connect-PSSession Alias compare -> Compare-Object Alias copy -> Copy-Item Alias cp -> Copy-Item Alias cpi -> Copy-Item Alias cpp -> Copy-ItemProperty Alias curl -> Invoke-WebRequest Alias cvpa -> Convert-Path Alias dbp -> Disable-PSBreakpoint Alias del -> Remove-Item Alias diff -> Compare-Object Alias dir -> Get-ChildItem Alias dlu -> Disable-LocalUser 1.0.0.0 Microsoft.PowerShell.LocalAccounts Alias dnsn -> Disconnect-PSSession Alias ebp -> Enable-PSBreakpoint Alias echo -> Write-Output Alias elu -> Enable-LocalUser 1.0.0.0 Microsoft.PowerShell.LocalAccounts Alias epal -> Export-Alias Alias epcsv -> Export-Csv Alias epsn -> Export-PSSession Alias erase -> Remove-Item Alias etsn -> Enter-PSSession Alias exsn -> Exit-PSSession Alias fc -> Format-Custom Alias fhx -> Format-Hex 3.1.0.0 Microsoft.PowerShell.Utility Alias fl -> Format-List Alias foreach -> ForEach-Object Alias ft -> Format-Table Alias fw -> Format-Wide Alias gal -> Get-Alias Alias gbp -> Get-PSBreakpoint Alias gc -> Get-Content Alias gcb -> Get-Clipboard 3.1.0.0 Microsoft.PowerShell.Management Alias gci -> Get-ChildItem Alias gcm -> Get-Command Alias gcs -> Get-PSCallStack Alias gdr -> Get-PSDrive Alias Get-AppProvisionedPackage 3.0 Dism Alias Get-ProvisionedAppPackage 3.0 Dism Alias Get-ProvisionedAppSharedPackageContainer 3.0 Dism Alias Get-ProvisionedAppxPackage 3.0 Dism Alias ghy -> Get-History Alias gi -> Get-Item Alias gin -> Get-ComputerInfo 3.1.0.0 Microsoft.PowerShell.Management Alias gip -> Get-NetIPConfiguration 1.0.0.0 NetTCPIP Alias gjb -> Get-Job Alias gl -> Get-Location Alias glg -> Get-LocalGroup 1.0.0.0 Microsoft.PowerShell.LocalAccounts Alias glgm -> Get-LocalGroupMember 1.0.0.0 Microsoft.PowerShell.LocalAccounts Alias glu -> Get-LocalUser 1.0.0.0 Microsoft.PowerShell.LocalAccounts Alias gm -> Get-Member Alias gmo -> Get-Module Alias gp -> Get-ItemProperty Alias gps -> Get-Process Alias gpv -> Get-ItemPropertyValue Alias group -> Group-Object Alias gsn -> Get-PSSession Alias gsnp -> Get-PSSnapin Alias gsv -> Get-Service Alias gtz -> Get-TimeZone 3.1.0.0 Microsoft.PowerShell.Management Alias gu -> Get-Unique Alias gv -> Get-Variable Alias gwmi -> Get-WmiObject Alias h -> Get-History Alias history -> Get-History Alias icm -> Invoke-Command Alias iex -> Invoke-Expression Alias ihy -> Invoke-History Alias ii -> Invoke-Item Alias ipal -> Import-Alias Alias ipcsv -> Import-Csv Alias ipmo -> Import-Module Alias ipsn -> Import-PSSession Alias irm -> Invoke-RestMethod Alias ise -> powershell_ise.exe Alias iwmi -> Invoke-WmiMethod Alias iwr -> Invoke-WebRequest Alias kill -> Stop-Process Alias lp -> Out-Printer Alias ls -> Get-ChildItem Alias man -> help Alias md -> mkdir Alias measure -> Measure-Object Alias mi -> Move-Item Alias mount -> New-PSDrive Alias move -> Move-Item Alias mp -> Move-ItemProperty Alias mv -> Move-Item Alias nal -> New-Alias Alias ndr -> New-PSDrive Alias ni -> New-Item Alias nlg -> New-LocalGroup 1.0.0.0 Microsoft.PowerShell.LocalAccounts Alias nlu -> New-LocalUser 1.0.0.0 Microsoft.PowerShell.LocalAccounts Alias nmo -> New-Module Alias npssc -> New-PSSessionConfigurationFile Alias nsn -> New-PSSession Alias nv -> New-Variable Alias ogv -> Out-GridView Alias oh -> Out-Host Alias Optimize-AppProvisionedPackages 3.0 Dism Alias Optimize-ProvisionedAppPackages 3.0 Dism Alias Optimize-ProvisionedAppxPackages 3.0 Dism Alias popd -> Pop-Location Alias ps -> Get-Process Alias pushd -> Push-Location Alias pwd -> Get-Location Alias r -> Invoke-History Alias rbp -> Remove-PSBreakpoint Alias rcjb -> Receive-Job Alias rcsn -> Receive-PSSession Alias rd -> Remove-Item Alias rdr -> Remove-PSDrive Alias Remove-AppProvisionedPackage 3.0 Dism Alias Remove-ProvisionedAppPackage 3.0 Dism Alias Remove-ProvisionedAppSharedPackageContainer 3.0 Dism Alias Remove-ProvisionedAppxPackage 3.0 Dism Alias ren -> Rename-Item Alias ri -> Remove-Item Alias rjb -> Remove-Job Alias rlg -> Remove-LocalGroup 1.0.0.0 Microsoft.PowerShell.LocalAccounts Alias rlgm -> Remove-LocalGroupMember 1.0.0.0 Microsoft.PowerShell.LocalAccounts Alias rlu -> Remove-LocalUser 1.0.0.0 Microsoft.PowerShell.LocalAccounts Alias rm -> Remove-Item Alias rmdir -> Remove-Item Alias rmo -> Remove-Module Alias rni -> Rename-Item Alias rnlg -> Rename-LocalGroup 1.0.0.0 Microsoft.PowerShell.LocalAccounts Alias rnlu -> Rename-LocalUser 1.0.0.0 Microsoft.PowerShell.LocalAccounts Alias rnp -> Rename-ItemProperty Alias rp -> Remove-ItemProperty Alias rsn -> Remove-PSSession Alias rsnp -> Remove-PSSnapin Alias rujb -> Resume-Job Alias rv -> Remove-Variable Alias rvpa -> Resolve-Path Alias rwmi -> Remove-WmiObject Alias sajb -> Start-Job Alias sal -> Set-Alias Alias saps -> Start-Process Alias sasv -> Start-Service Alias sbp -> Set-PSBreakpoint Alias sc -> Set-Content Alias scb -> Set-Clipboard 3.1.0.0 Microsoft.PowerShell.Management Alias select -> Select-Object Alias set -> Set-Variable Alias Set-AppPackageProvisionedDataFile 3.0 Dism Alias Set-ProvisionedAppPackageDataFile 3.0 Dism Alias Set-ProvisionedAppXDataFile 3.0 Dism Alias shcm -> Show-Command Alias si -> Set-Item Alias sl -> Set-Location Alias sleep -> Start-Sleep Alias slg -> Set-LocalGroup 1.0.0.0 Microsoft.PowerShell.LocalAccounts Alias sls -> Select-String Alias slu -> Set-LocalUser 1.0.0.0 Microsoft.PowerShell.LocalAccounts Alias sort -> Sort-Object Alias sp -> Set-ItemProperty Alias spjb -> Stop-Job Alias spps -> Stop-Process Alias spsv -> Stop-Service Alias start -> Start-Process Alias stz -> Set-TimeZone 3.1.0.0 Microsoft.PowerShell.Management Alias sujb -> Suspend-Job Alias sv -> Set-Variable Alias swmi -> Set-WmiInstance Alias tee -> Tee-Object Alias TNC -> Test-NetConnection 1.0.0.0 NetTCPIP Alias trcm -> Trace-Command Alias type -> Get-Content Alias wget -> Invoke-WebRequest Alias where -> Where-Object Alias wjb -> Wait-Job Alias write -> Write-Output
|
TNC 192.168.1.1
ComputerName : 192.168.1.1 RemoteAddress : 192.168.1.1 InterfaceAlias : 以太网 SourceAddress : 192.168.1.55 PingSucceeded : True PingReplyDetails (RTT) : 1 ms
|
标签:Get,
0.0,
别名,
PowerShell,
命令,
Remove,
ItemAlias,
Microsoft
From: https://www.cnblogs.com/suv789/p/18112727