Windows Powershell 4.0과 5.1의 커맨드 비교(커맨드 타입 Alias편)

PowerShell

Windows PowerShell 5.1의 Get-Command -CommandType Alias 명령을 실행해서 표시된 Alias일람을 소개합니다. -> 기호 앞쪽이 Alias명이고 뒤쪽이 실제 cmdlet 명령입니다. 각 명령의 대한 도움말은 help cmdlet명령으로 확인 할 수 있습니다 만 도움말이 필요한 명령을 지정할때는 dir -> Get-ChildItemAliasdir가 아닌 실제 cmdlet 명령Get-ChildItem를 지정합니다. 즉, help dir이 아닌 help Get-ChildItem가 됩니다.

Windows Powershell 4.0과 5.1의 커맨드 비교

Windows PowerShell 5.1과 4.0의 Alias 타입 커맨드를 비교하여 차이를 알 수 있게끔 표로 정리하였습니다. 5.1의 커맨드를 기준으로 4.0에서 제공하는 커맨드는 〇, 제공하지 않는 커맨드는 ×로 표시하였습니다.

No4.0Alias NameVersionSource
1% -> ForEach-Object  
2? -> Where-Object  
3ac -> Add-Content  
4×Add-AppPackage2.0.1.0    Appx
5×Add-AppPackageVolume2.0.1.0    Appx
6×Add-AppProvisionedPackage3.0        Dism
7×Add-ProvisionedAppPackage3.0        Dism
8Add-ProvisionedAppxPackage3.0        Dism
9×Add-WindowsFeature2.0.0.0    ServerManager
10×algm ->1.0.0.0    Microsoft.PowerShell.LocalAccounts
11Apply-WindowsUnattend3.0        Dism
12asnp -> Add-PSSnapin  
13blsmba ->2.0.0.0    SmbShare
14cat -> Get-Content  
15cd -> Set-Location  
16×CFS -> ConvertFrom-String3.1.0.0    Microsoft.PowerShell.Utility
17chdir -> Set-Location  
18clc -> Clear-Content  
19clear -> Clear-Host  
20clhy -> Clear-History  
21cli -> Clear-Item  
22clp -> Clear-ItemProperty  
23cls -> Clear-Host  
24clv -> Clear-Variable  
25×cmpcfg ->1.1        PSDesiredStateConfiguration
26cnsn -> Connect-PSSession  
27compare -> Compare-Object  
28copy -> Copy-Item  
29cp -> Copy-Item  
30cpi -> Copy-Item  
31cpp -> Copy-ItemProperty  
32cssmbo ->2.0.0.0    SmbShare
33cssmbse ->2.0.0.0    SmbShare
34curl -> Invoke-WebRequest  
35cvpa -> Convert-Path  
36dbp -> Disable-PSBreakpoint  
37del -> Remove-Item  
38diff -> Compare-Object  
39dir -> Get-ChildItem  
40Disable-PhysicalDiskIndication2.0.0.0    Storage
41×Disable-StorageDiagnosticLog2.0.0.0    Storage
42×Dismount-AppPackageVolume2.0.1.0    Appx
43×dlu ->1.0.0.0    Microsoft.PowerShell.LocalAccounts
44dnsn -> Disconnect-PSSession  
45dsmbd ->2.0.0.0    SmbShare
46ebp -> Enable-PSBreakpoint  
47echo -> Write-Output  
48×elu ->1.0.0.0    Microsoft.PowerShell.LocalAccounts
49Enable-PhysicalDiskIndication2.0.0.0    Storage
50×Enable-StorageDiagnosticLog2.0.0.0    Storage
51epal -> Export-Alias  
52epcsv -> Export-Csv  
53epsn -> Export-PSSession  
54erase -> Remove-Item  
55esmbd ->2.0.0.0    SmbShare
56etsn -> Enter-PSSession  
57Expand-IscsiVirtualDisk2.0.0.0    IscsiTarget
58exsn -> Exit-PSSession  
59fc -> Format-Custom  
60×fhx -> Format-Hex3.1.0.0    Microsoft.PowerShell.Utility
61×fimo ->1.0.0.1    PowerShellGet
62fl -> Format-List  
63Flush-Volume2.0.0.0    Storage
64foreach -> ForEach-Object  
65ft -> Format-Table  
66fw -> Format-Wide  
67gal -> Get-Alias  
68gbp -> Get-PSBreakpoint  
69gc -> Get-Content  
70gcai ->1.0.0.0    CimCmdlets
71×gcb ->3.1.0.0    Microsoft.PowerShell.Management
72×gcfg ->1.1        PSDesiredStateConfiguration
73×gcfgs ->1.1        PSDesiredStateConfiguration
74gci -> Get-ChildItem  
75gcim ->1.0.0.0    CimCmdlets
76gcls ->1.0.0.0    CimCmdlets
77gcm -> Get-Command  
78gcms ->1.0.0.0    CimCmdlets
79gcs -> Get-PSCallStack  
80gdr -> Get-PSDrive  
81×Get-AppPackage2.0.1.0    Appx
82×Get-AppPackageDefaultVolume2.0.1.0    Appx
83×Get-AppPackageLastError2.0.1.0    Appx
84×Get-AppPackageLog2.0.1.0    Appx
85×Get-AppPackageManifest2.0.1.0    Appx
86×Get-AppPackageVolume2.0.1.0    Appx
87×Get-AppProvisionedPackage3.0        Dism
88×Get-DiskSNV2.0.0.0    Storage
89Get-PhysicalDiskSNV2.0.0.0    Storage
90×Get-ProvisionedAppPackage3.0        Dism
91Get-ProvisionedAppxPackage3.0        Dism
92×Get-StorageEnclosureSNV2.0.0.0    Storage
93ghy -> Get-History  
94gi -> Get-Item  
95×gin ->3.1.0.0    Microsoft.PowerShell.Management
96gip ->1.0.0.0    NetTCPIP
97gjb -> Get-Job  
98gl -> Get-Location  
99×glcm ->1.1        PSDesiredStateConfiguration
100×glg ->1.0.0.0    Microsoft.PowerShell.LocalAccounts
101×glgm ->1.0.0.0    Microsoft.PowerShell.LocalAccounts
102×glu ->1.0.0.0    Microsoft.PowerShell.LocalAccounts
103gm -> Get-Member  
104gmo -> Get-Module  
105gp -> Get-ItemProperty  
106gps -> Get-Process  
107×gpv -> Get-ItemPropertyValue  
108group -> Group-Object  
109grsmba ->2.0.0.0    SmbShare
110gsmba ->2.0.0.0    SmbShare
111gsmbb ->2.0.0.0    SmbShare
112gsmbc ->2.0.0.0    SmbShare
113gsmbcc ->2.0.0.0    SmbShare
114gsmbcn ->2.0.0.0    SmbShare
115gsmbd ->2.0.0.0    SmbShare
116×gsmbgm ->2.0.0.0    SmbShare
117gsmbm ->2.0.0.0    SmbShare
118gsmbmc ->2.0.0.0    SmbShare
119gsmbo ->2.0.0.0    SmbShare
120gsmbs ->2.0.0.0    SmbShare
121gsmbsc ->2.0.0.0    SmbShare
122gsmbse ->2.0.0.0    SmbShare
123gsmbsn ->2.0.0.0    SmbShare
124gsmbt ->2.0.0.0    SmbShare
125×gsmbw ->2.0.0.0    SmbWitness
126gsn -> Get-PSSession  
127gsnp -> Get-PSSnapin  
128gsv -> Get-Service  
129×gtz ->3.1.0.0    Microsoft.PowerShell.Management
130gu -> Get-Unique  
131gv -> Get-Variable  
132gwmi -> Get-WmiObject  
133h -> Get-History  
134history -> Get-History  
135icim ->1.0.0.0    CimCmdlets
136icm -> Invoke-Command  
137iex -> Invoke-Expression  
138ihy -> Invoke-History  
139ii -> Invoke-Item  
140Initialize-Volume2.0.0.0    Storage
141×inmo ->1.0.0.1    PowerShellGet
142ipal -> Import-Alias  
143ipcsv -> Import-Csv  
144ipmo -> Import-Module  
145ipsn -> Import-PSSession  
146irm -> Invoke-RestMethod  
147×iru ->1.0.0.0    AppBackgroundTask
148ise -> powershell_ise.exe  
149iwmi -> Invoke-WMIMethod  
150iwr -> Invoke-WebRequest  
151kill -> Stop-Process  
152lp -> Out-Printer  
153ls -> Get-ChildItem  
154man -> help  
155md -> mkdir  
156measure -> Measure-Object  
157mi -> Move-Item  
158mount -> New-PSDrive  
159×Mount-AppPackageVolume2.0.1.0    Appx
160move -> Move-Item  
161×Move-AppPackage2.0.1.0    Appx
162×Move-SmbClient2.0.0.0    SmbWitness
163mp -> Move-ItemProperty  
164×msmbw ->2.0.0.0    SmbWitness
165mv -> Move-Item  
166nal -> New-Alias  
167ncim ->1.0.0.0    CimCmdlets
168ncms ->1.0.0.0    CimCmdlets
169ncso ->1.0.0.0    CimCmdlets
170ndr -> New-PSDrive  
171ni -> New-Item  
172×nlg ->1.0.0.0    Microsoft.PowerShell.LocalAccounts
173×nlu ->1.0.0.0    Microsoft.PowerShell.LocalAccounts
174nmo -> New-Module  
175npssc -> New-PSSessionConfigurationFile  
176×nsmbgm ->2.0.0.0    SmbShare
177nsmbm ->2.0.0.0    SmbShare
178nsmbs ->2.0.0.0    SmbShare
179nsmbt ->2.0.0.0    SmbShare
180nsn -> New-PSSession  
181nv -> New-Variable  
182×nwsn ->2.0.0.0    PSWorkflow
183ogv -> Out-GridView  
184oh -> Out-Host  
185×Optimize-AppProvisionedPackages3.0        Dism
186×Optimize-ProvisionedAppPackages3.0        Dism
187×Optimize-ProvisionedAppxPackages3.0        Dism
188×pbcfg ->1.1        PSDesiredStateConfiguration
189×pfn ->1.0.0.0    AppBackgroundTask
190popd -> Pop-Location  
191ps -> Get-Process  
192×pumo ->1.0.0.1    PowerShellGet
193pushd -> Push-Location  
194pwd -> Get-Location  
195r -> Invoke-History  
196rbp -> Remove-PSBreakpoint  
197rcie ->1.0.0.0    CimCmdlets
198rcim ->1.0.0.0    CimCmdlets
199rcjb -> Receive-Job  
200rcms ->1.0.0.0    CimCmdlets
201rcsn -> Receive-PSSession  
202rd -> Remove-Item  
203rdr -> Remove-PSDrive  
204×Remove-AppPackage2.0.1.0    Appx
205×Remove-AppPackageVolume2.0.1.0    Appx
206×Remove-AppProvisionedPackage3.0        Dism
207×Remove-EtwTraceSession1.0.0.0    EventTracingManagement
208×Remove-ProvisionedAppPackage3.0        Dism
209Remove-ProvisionedAppxPackage3.0        Dism
210×Remove-WindowsFeature2.0.0.0    ServerManager
211ren -> Rename-Item  
212ri -> Remove-Item  
213rjb -> Remove-Job  
214rksmba ->2.0.0.0    SmbShare
215×rlg ->1.0.0.0    Microsoft.PowerShell.LocalAccounts
216×rlgm ->1.0.0.0    Microsoft.PowerShell.LocalAccounts
217×rlu ->1.0.0.0    Microsoft.PowerShell.LocalAccounts
218rm -> Remove-Item  
219rmdir -> Remove-Item  
220rmo -> Remove-Module  
221rni -> Rename-Item  
222×rnlg ->1.0.0.0    Microsoft.PowerShell.LocalAccounts
223×rnlu ->1.0.0.0    Microsoft.PowerShell.LocalAccounts
224rnp -> Rename-ItemProperty  
225rp -> Remove-ItemProperty  
226rsmbb ->2.0.0.0    SmbShare
227×rsmbgm ->2.0.0.0    SmbShare
228rsmbm ->2.0.0.0    SmbShare
229rsmbs ->2.0.0.0    SmbShare
230rsmbt ->2.0.0.0    SmbShare
231rsn -> Remove-PSSession  
232rsnp -> Remove-PSSnapin  
233×rtcfg ->1.1        PSDesiredStateConfiguration
234rujb -> Resume-Job  
235rv -> Remove-Variable  
236rvpa -> Resolve-Path  
237rwmi -> Remove-WMIObject  
238×sacfg ->1.1        PSDesiredStateConfiguration
239sajb -> Start-Job  
240sal -> Set-Alias  
241saps -> Start-Process  
242sasv -> Start-Service  
243sbp -> Set-PSBreakpoint  
244sc -> Set-Content  
245×scb ->3.1.0.0    Microsoft.PowerShell.Management
246scim ->1.0.0.0    CimCmdlets
247select -> Select-Object  
248set -> Set-Variable  
249×Set-AppPackageDefaultVolume2.0.1.0    Appx
250×Set-AppPackageProvisionedDataFile3.0        Dism
251×Set-AutologgerConfig1.0.0.0    EventTracingManagement
252×Set-EtwTraceSession1.0.0.0    EventTracingManagement
253×Set-ProvisionedAppPackageDataFile3.0        Dism
254×Set-ProvisionedAppXDataFile3.0        Dism
255shcm -> Show-Command  
256si -> Set-Item  
257sl -> Set-Location  
258×slcm ->1.1        PSDesiredStateConfiguration
259sleep -> Start-Sleep  
260×slg ->1.0.0.0    Microsoft.PowerShell.LocalAccounts
261sls -> Select-String  
262×slu ->1.0.0.0    Microsoft.PowerShell.LocalAccounts
263sort -> Sort-Object  
264sp -> Set-ItemProperty  
265spjb -> Stop-Job  
266spps -> Stop-Process  
267spsv -> Stop-Service  
268ssmbb ->2.0.0.0    SmbShare
269ssmbcc ->2.0.0.0    SmbShare
270ssmbp ->2.0.0.0    SmbShare
271ssmbs ->2.0.0.0    SmbShare
272ssmbsc ->2.0.0.0    SmbShare
273start -> Start-Process  
274×stz ->3.1.0.0    Microsoft.PowerShell.Management
275sujb -> Suspend-Job  
276sv -> Set-Variable  
277swmi -> Set-WMIInstance  
278×tcfg ->1.1        PSDesiredStateConfiguration
279tee -> Tee-Object  
280×tid ->1.0.0.0    AppBackgroundTask
281TNC ->1.0.0.0    NetTCPIP
282trcm -> Trace-Command  
283type -> Get-Content  
284udsmbmc ->2.0.0.0    SmbShare
285ulsmba ->2.0.0.0    SmbShare
286×upcfg ->1.1        PSDesiredStateConfiguration
287×upmo ->1.0.0.1    PowerShellGet
288wget -> Invoke-WebRequest  
289where -> Where-Object  
290wjb -> Wait-Job  
291write -> Write-Output  
292Write-FileSystemCache2.0.0.0    Storage
제목과 URL을 복사했습니다