●パワーシェル短縮コマンドを次に記載します(alias)。
[##★]は、このPSH利用アプリで使用又は使用予定のコマンドです。
[##★★]は、頻繁に利用のコマンドです。
[##★★]は、頻繁に利用のコマンドです。
◎NO. [短縮型] [PSHコマンド]
- % ##★ ForEach-Object 例: foreach($cc in XXXX){ ; };
- ? Where-Object
--[A]------ - ac ##★ Add-Content
- asnp Add-PSSnapIn
--[C]------ - cat ##★★ Get-Content 例: $zcc=Cat $fileName -Raw;
- cd ##★★ Set-Location 例: cd $DirName
- chdir Set-Location
- clc Clear-Content
- clhy Clear-History
- clear ##★ Clear-Host
- cls ##★★ Clear-Host
- cli Clear-Item
- clp Clear-ItemProperty
- clv Clear-Variable
- compare Compare-Object
- cnsn Connect-PSSession
- CFS ConvertFrom-String
- cvpa Convert-Path
- copy ##★ Copy-Item
- cp Copy-Item
- cpi Copy-Item
- cpp Copy-ItemProperty
- curl Invoke-WebRequest
--[D]------ - diff ##★ Compare-Object
- dbp Disable-PSBreakpoint
- dnsn Disconnect-PSSession
- dir ##★★ Get-ChildItem
- del ##★ Remove-Item
--[E]------ - erase ##★ Remove-Item
- ebp Enable-PSBreakpoint
- echo ##★★ Write-Output
- etsn Enter-PSSession
- exsn Exit-PSSession
- epal Export-Alias
- epcsv Export-Csv
- epsn Export-PSSession
--[F]-------- - foreach ##★★ ForEach-Object 例: foreach($cc in XXXX){ ; };
- fc ##★ Format-Custom
- fhx Format-Hex
- fl Format-List
- ft Format-Table
- fw Format-Wide
--[G]------ - gal Get-Alias
- gci Get-ChildItem
- gcb ##★★ Get-Clipboard
- gcm Get-Command
- gin Get-ComputerInfo
- gc ##★★ Get-Content 例: $zcc=Cat $filename -Raw;
- ghy Get-History
- gi Get-Item
- gp Get-ItemProperty
- gpv Get-ItemPropertyValue
- gjb Get-Job
- gl Get-Location
- pwd ##★★ Get-Location 例: explorer (pwd);
- gm Get-Member
- gmo Get-Module
- gps Get-Process
- ps ##★ Get-Process
- gbp Get-PSBreakpoint
- gcs Get-PSCallStack
- gdr Get-PSDrive
- gsn Get-PSSession
- gsnp Get-PSSnapIn
- gsv Get-Service
- gtz Get-TimeZone
- gu Get-Unique
- gv Get-Variable
- gwmi Get-WmiObject
- group Group-Object
---[H]----- - h Get-History
- history Get-History
---[I]----- - ipal Import-Alias
- ipcsv Import-Csv
- ipmo Import-Module
- ipsn Import-PSSession
- icm Invoke-Command
- iex ##★★ Invoke-Expression 例: iex("PSHコマンド列")
- ihy Invoke-History
- ii Invoke-Item
- irm Invoke-RestMethod
- ise powershell_ise.exe
- iwr Invoke-WebRequest
- iwmi Invoke-WMIMethod
---[K]----- - kill Stop-Process
--[L]------ - ls Get-ChildItem
- lp Out-Printer
--[M]------ - man help
- measure Measure-Object
- md ##★ mkdir
- mi Move-Item
- move ##★ Move-Item
- mv ##★ Move-Item
- mp Move-ItemProperty
- mount ##★ New-PSDrive
--[N]------ - nal New-Alias
- ni New-Item
- nmo New-Module
- ndr New-PSDrive
- nsn New-PSSession
- npssc New-PSSessionConfigura…
- nv New-Variable
--[O]------ - ogv ##★★ Out-GridView
- oh Out-Host
--[P]------ - popd Pop-Location
- pushd Push-Location
--[R]------ - r Invoke-History
- rcjb Receive-Job
- rcsn Receive-PSSession
- rd Remove-Item
- ri Remove-Item
- rm Remove-Item
- rmdir ##★ Remove-Item
- rp Remove-ItemProperty
- rjb Remove-Job
- rmo Remove-Module
- rbp Remove-PSBreakpoint
- rdr Remove-PSDrive
- rsn Remove-PSSession
- rsnp Remove-PSSnapin
- rv Remove-Variable
- rwmi Remove-WMIObject
- ren ##★ Rename-Item
- rni Rename-Item
- rnp Rename-ItemProperty
- rvpa Resolve-Path
- rujb Resume-Job
--[S]------ - select Select-Object
- sls Select-String
- sal Set-Alias
- scb ##★★ Set-Clipboard
- sc ##★★ Set-Content 例: SC $fileName $zcc;
- si Set-Item
- sp Set-ItemProperty
- sl Set-Location
- sbp Set-PSBreakpoint
- stz Set-TimeZone
- set Set-Variable
- sv Set-Variable
- swmi Set-WMIInstance
- shcm Show-Command
- sort ##★★ Sort-Object
- sajb Start-Job
- saps Start-Process
- start ##★★ Start-Process 例: start "https:xxxxxx";
- sasv Start-Service
- sleep ##★ Start-Sleep
- spjb Stop-Job
- spps Stop-Process
- spsv Stop-Service
- sujb Suspend-Job
--[T]------ - tee Tee-Object
- trcm Trace-Command
- type ##★ Get-Content
--[W]------ - wget Invoke-WebRequest
- wjb Wait-Job
- where ##★ Where-Object
- write ##★ Write-Output
--------