Skip to content

Instantly share code, notes, and snippets.

@AdmiringWorm
Created November 17, 2017 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AdmiringWorm/4f576301250313f862135542464516ed to your computer and use it in GitHub Desktop.
Save AdmiringWorm/4f576301250313f862135542464516ed to your computer and use it in GitHub Desktop.
List of aliases that are Read-Only in Powershell V2

List of aliases that are Read-Only in Powershell V2

PS C:\Users\Administrator> gal | ? { $_.options -match 'readonly' } | ft Name,Definition -a

Name    Definition
----    ----------
%       ForEach-Object
?       Where-Object
ac      Add-Content
asnp    Add-PSSnapIn
clc     Clear-Content
clhy    Clear-History
cli     Clear-Item
clp     Clear-ItemProperty
clv     Clear-Variable
compare Compare-Object
cpi     Copy-Item
cpp     Copy-ItemProperty
cvpa    Convert-Path
dbp     Disable-PSBreakpoint
diff    Compare-Object
ebp     Enable-PSBreakpoint
epal    Export-Alias
epcsv   Export-Csv
fc      Format-Custom
fl      Format-List
foreach ForEach-Object
ft      Format-Table
fw      Format-Wide
gal     Get-Alias
gbp     Get-PSBreakpoint
gc      Get-Content
gci     Get-ChildItem
gcm     Get-Command
gcs     Get-PSCallStack
gdr     Get-PSDrive
ghy     Get-History
gi      Get-Item
gl      Get-Location
gm      Get-Member
gmo     Get-Module
gp      Get-ItemProperty
gps     Get-Process
group   Group-Object
gsnp    Get-PSSnapIn
gsv     Get-Service
gu      Get-Unique
gv      Get-Variable
gwmi    Get-WmiObject
iex     Invoke-Expression
ihy     Invoke-History
ii      Invoke-Item
ipal    Import-Alias
ipcsv   Import-Csv
ipmo    Import-Module
ise     powershell_ise.exe
iwmi    Invoke-WMIMethod
measure Measure-Object
mi      Move-Item
mp      Move-ItemProperty
nal     New-Alias
ndr     New-PSDrive
ni      New-Item
nmo     New-Module
nv      New-Variable
ogv     Out-GridView
oh      Out-Host
rbp     Remove-PSBreakpoint
rdr     Remove-PSDrive
ri      Remove-Item
rmo     Remove-Module
rni     Rename-Item
rnp     Rename-ItemProperty
rp      Remove-ItemProperty
rsnp    Remove-PSSnapin
rv      Remove-Variable
rvpa    Resolve-Path
rwmi    Remove-WMIObject
sal     Set-Alias
saps    Start-Process
sasv    Start-Service
sbp     Set-PSBreakpoint
sc      Set-Content
select  Select-Object
si      Set-Item
sl      Set-Location
sleep   Start-Sleep
sort    Sort-Object
sp      Set-ItemProperty
spps    Stop-Process
spsv    Stop-Service
start   Start-Process
sv      Set-Variable
swmi    Set-WMIInstance
tee     Tee-Object
where   Where-Object
write   Write-Output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment