PowerShell mode

x
 
1
# Number Literals
2
0 12345
3
12kb 12mb 12gB 12Tb 12PB 12L 12D 12lkb 12dtb
4
1.234 1.234e56 1. 1.e2 .2 .2e34
5
1.2MB 1.kb .1dTb 1.e1gb
6
0x1 0xabcdef 0x3tb 0xelmb
7
8
# String Literals
9
'Literal escaping'''
10
'Literal $variable'
11
"Escaping 1`""
12
"Escaping 2"""
13
"Escaped `$variable"
14
"Text, $variable and more text"
15
"Text, ${variable with spaces} and more text."
16
"Text, $($expression + 3) and more text."
17
"Text, $("interpolation $("inception")") and more text."
18
19
@"
20
Multiline
21
string
22
"@
23
# --
24
@"
25
Multiline
26
string with quotes "'
27
"@
28
# --
29
@'
30
Multiline literal
31
string with quotes "'
32
'@
33
34
# Array and Hash literals
35
@( 'a','b','c' )
36
@{ 'key': 'value' }
37
38
# Variables
39
$Variable = 5
40
$global:variable = 5
41
${Variable with spaces} = 5
42
43
# Operators
44
= += -= *= /= %=
45
++ -- .. -f * / % + -
46
-not ! -bnot
47
-split -isplit -csplit
48
-join
49
-is -isnot -as
50
-eq -ieq -ceq -ne -ine -cne
51
-gt -igt -cgt -ge -ige -cge
52
-lt -ilt -clt -le -ile -cle
53
-like -ilike -clike -notlike -inotlike -cnotlike
54
-match -imatch -cmatch -notmatch -inotmatch -cnotmatch
55
-contains -icontains -ccontains -notcontains -inotcontains -cnotcontains
56
-replace -ireplace -creplace
57
-band   -bor -bxor
58
-and -or -xor
59
60
# Punctuation
61
() [] {} , : ` = ; .
62
63
# Keywords
64
elseif begin function for foreach return else trap while do data dynamicparam
65
until end break if throw param continue finally in switch exit filter from try
66
process catch
67
68
# Built-in variables
69
$$ $? $^ $_
70
$args $ConfirmPreference $ConsoleFileName $DebugPreference $Error
71
$ErrorActionPreference $ErrorView $ExecutionContext $false $FormatEnumerationLimit
72
$HOME $Host $input $MaximumAliasCount $MaximumDriveCount $MaximumErrorCount
73
$MaximumFunctionCount $MaximumHistoryCount $MaximumVariableCount $MyInvocation
74
$NestedPromptLevel $null $OutputEncoding $PID $PROFILE $ProgressPreference
75
$PSBoundParameters $PSCommandPath $PSCulture $PSDefaultParameterValues
76
$PSEmailServer $PSHOME $PSScriptRoot $PSSessionApplicationName
77
$PSSessionConfigurationName $PSSessionOption $PSUICulture $PSVersionTable $PWD
78
$ShellId $StackTrace $true $VerbosePreference $WarningPreference $WhatIfPreference
79
$true $false $null
80
81
# Built-in functions
82
A:
83
Add-Computer Add-Content Add-History Add-Member Add-PSSnapin Add-Type
84
B:
85
C:
86
Checkpoint-Computer Clear-Content Clear-EventLog Clear-History Clear-Host Clear-Item
87
Clear-ItemProperty Clear-Variable Compare-Object Complete-Transaction Connect-PSSession
88
ConvertFrom-Csv ConvertFrom-Json ConvertFrom-SecureString ConvertFrom-StringData
89
Convert-Path ConvertTo-Csv ConvertTo-Html ConvertTo-Json ConvertTo-SecureString
90
ConvertTo-Xml Copy-Item Copy-ItemProperty
91
D:
92
Debug-Process Disable-ComputerRestore Disable-PSBreakpoint Disable-PSRemoting
93
Disable-PSSessionConfiguration Disconnect-PSSession
94
E:
95
Enable-ComputerRestore Enable-PSBreakpoint Enable-PSRemoting Enable-PSSessionConfiguration
96
Enter-PSSession Exit-PSSession Export-Alias Export-Clixml Export-Console Export-Counter
97
Export-Csv Export-FormatData Export-ModuleMember Export-PSSession
98
F:
99
ForEach-Object Format-Custom Format-List Format-Table Format-Wide
100
G:
101
Get-Acl Get-Alias Get-AuthenticodeSignature Get-ChildItem Get-Command Get-ComputerRestorePoint
102
Get-Content Get-ControlPanelItem Get-Counter Get-Credential Get-Culture Get-Date
103
Get-Event Get-EventLog Get-EventSubscriber Get-ExecutionPolicy Get-FormatData Get-Help
104
Get-History Get-Host Get-HotFix Get-Item Get-ItemProperty Get-Job Get-Location Get-Member
105
Get-Module Get-PfxCertificate Get-Process Get-PSBreakpoint Get-PSCallStack Get-PSDrive
106
Get-PSProvider Get-PSSession Get-PSSessionConfiguration Get-PSSnapin Get-Random Get-Service
107
Get-TraceSource Get-Transaction Get-TypeData Get-UICulture  Get-Unique Get-Variable Get-Verb
108
Get-WinEvent Get-WmiObject Group-Object
109
H:
110
help
111
I:
112
Import-Alias Import-Clixml Import-Counter Import-Csv Import-LocalizedData Import-Module
113
Import-PSSession ImportSystemModules Invoke-Command Invoke-Expression Invoke-History
114
Invoke-Item Invoke-RestMethod Invoke-WebRequest Invoke-WmiMethod
115
J:
116
Join-Path
117
K:
118
L:
119
Limit-EventLog
120
M:
121
Measure-Command Measure-Object mkdir more Move-Item Move-ItemProperty
122
N:
123
New-Alias New-Event New-EventLog New-Item New-ItemProperty New-Module New-ModuleManifest
124
New-Object New-PSDrive New-PSSession New-PSSessionConfigurationFile New-PSSessionOption
125
New-PSTransportOption New-Service New-TimeSpan New-Variable New-WebServiceProxy
126
New-WinEvent
127
O:
128
oss Out-Default Out-File Out-GridView Out-Host Out-Null Out-Printer Out-String
129
P:
130
Pause Pop-Location prompt Push-Location
131
Q:
132
R:
133
Read-Host Receive-Job Receive-PSSession Register-EngineEvent Register-ObjectEvent
134
Register-PSSessionConfiguration Register-WmiEvent Remove-Computer Remove-Event
135
Remove-EventLog Remove-Item Remove-ItemProperty Remove-Job Remove-Module
136
Remove-PSBreakpoint Remove-PSDrive Remove-PSSession Remove-PSSnapin Remove-TypeData
137
Remove-Variable Remove-WmiObject Rename-Computer Rename-Item Rename-ItemProperty
138
Reset-ComputerMachinePassword Resolve-Path Restart-Computer Restart-Service
139
Restore-Computer Resume-Job Resume-Service
140
S:
141
Save-Help Select-Object Select-String Select-Xml Send-MailMessage Set-Acl Set-Alias
142
Set-AuthenticodeSignature Set-Content Set-Date Set-ExecutionPolicy Set-Item
143
Set-ItemProperty Set-Location Set-PSBreakpoint Set-PSDebug
144
Set-PSSessionConfiguration Set-Service Set-StrictMode Set-TraceSource Set-Variable
145
Set-WmiInstance Show-Command Show-ControlPanelItem Show-EventLog Sort-Object
146
Split-Path Start-Job Start-Process Start-Service Start-Sleep Start-Transaction
147
Start-Transcript Stop-Computer Stop-Job Stop-Process Stop-Service Stop-Transcript
148
Suspend-Job Suspend-Service
149
T:
150
TabExpansion2 Tee-Object Test-ComputerSecureChannel Test-Connection
151
Test-ModuleManifest Test-Path Test-PSSessionConfigurationFile Trace-Command
152
U:
153
Unblock-File Undo-Transaction Unregister-Event Unregister-PSSessionConfiguration
154
Update-FormatData Update-Help Update-List Update-TypeData Use-Transaction
155
V:
156
W:
157
Wait-Event Wait-Job Wait-Process Where-Object Write-Debug Write-Error Write-EventLog
158
Write-Host Write-Output Write-Progress Write-Verbose Write-Warning
159
X:
160
Y:
161
Z:

MIME types defined: application/x-powershell.