FailoverClusters.ArgumentCompleters.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
# ARGUMENT COMPLETER FUNCTIONS #################################################
# Version 0.97

#CLUSTER
function FailoverClusters_ClusterArgumentCompletion
{
    param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameter)

    $OptionalDomain = @{}
    $Domain = $fakeBoundParameter["Domain"]
    if($Domain)
    {
        $OptionalDomain.Domain = $Domain
    } else
    {
        $OptionalDomain.Domain = $env:USERDOMAIN
    }

    FailoverClusters\Get-Cluster -Name "$wordToComplete*" @OptionalDomain |
        ForEach-Object {
            $Tooltip = "Cluster Name: {0}" -f $_.Name
            New-CompletionResult -CompletionText $_.Name -ToolTip $Tooltip
        }
}
function FailoverClusters_ClusterNameArgumentCompletion
{
    param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameter)

    FailoverClusters\Get-Cluster -Name "$wordToComplete*" |
        ForEach-Object {
            $Tooltip = "Cluster Name: {0}" -f $_.Name
            New-CompletionResult -CompletionText $_.Name -ToolTip $Tooltip
        }
}
#CLUSTER NAME
function FailoverClusters_ClusterNodeArgumentCompletion
{
    param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameter)

    $OptionalCluster = @{}
    $Cluster = $fakeBoundParameter["Cluster"]
    if($Cluster)
    {
        $OptionalCluster.Cluster = $Cluster
    }

    FailoverClusters\Get-ClusterNode -Name "$wordToComplete*" @OptionalCluster |
        ForEach-Object {
            $Tooltip = "Name: {0}" -f $_.Name
            New-CompletionResult -CompletionText $_.Name -ToolTip $Tooltip
        }    
}
#CLUSTER GROUP
function FailoverClusters_ClusterGroupNameArgumentCompletion
{
    param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameter)

    $OptionalCluster = @{}
    $Cluster = $fakeBoundParameter["Cluster"]
    if($Cluster)
    {
        $OptionalCluster.Cluster = $Cluster
    }
    # These completions are slow
    FailoverClusters\Get-ClusterGroup -Name "$wordToComplete*" @OptionalCluster |
        ForEach-Object {
            $Tooltip = "Name: {0} - State: {1} - Owner Node: {2}" -f $_.Name,$_.State,$_.OwnerNode
            New-CompletionResult -CompletionText $_.Name -ToolTip $Tooltip
        }
}
function FailoverClusters_ClusterGroupVMIdArgumentCompletion
{
    param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameter)

    $OptionalCluster = @{}
    $Cluster = $fakeBoundParameter["Cluster"]
    if($Cluster)
    {
        $OptionalCluster.Cluster = $Cluster
    }
    # These completions are slow
    FailoverClusters\Get-ClusterGroup -Name "*$wordToComplete*" @OptionalCluster |
        Where-Object {$_.GroupType -eq "VirtualMachine"} |
        Hyper-V\Get-VM | 
        ForEach-Object {
            $Tooltip = "Name: {0} - VM Id: {1} `nState: {2} - Owner Node: {3}" -f $_.Name,$_.VMId,$_.State,$_.ComputerName
            New-CompletionResult -CompletionText $_.VMId -ToolTip $Tooltip -ListItemText $_.Name
        }
}
#CLUSTER VIRTUALMACHINE
function FailoverClusters_ClusterVirtualMachineRoleNameArgumentCompletion
{
    param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameter)

    $OptionalCluster = @{}
    $Cluster = $fakeBoundParameter["Cluster"]
    if($Cluster)
    {
        $OptionalCluster.Cluster = $Cluster
    }
    # These completions are slow
    FailoverClusters\Get-ClusterGroup -Name "$wordToComplete*" @OptionalCluster | 
        Where-Object { $_.GroupType -eq 'VirtualMachine'} |
        ForEach-Object {
            $Tooltip = "Name: {0} - State: {1} - Owner Node: {2}" -f $_.Name,$_.State,$_.OwnerNode
            New-CompletionResult -CompletionText $_.Name -ToolTip $Tooltip
        }
}
function FailoverClusters_ClusterVirtualMachineRoleVMIdArgumentCompletion
{
    param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameter)

    $OptionalCluster = @{}
    $Cluster = $fakeBoundParameter["Cluster"]
    if($Cluster)
    {
        $OptionalCluster.Cluster = $Cluster
    }
    # These completions are slow
    FailoverClusters\Get-ClusterGroup -Name "*$wordToComplete*" @OptionalCluster | 
        Where-Object { $_.GroupType -eq 'VirtualMachine'} |
        Hyper-V\Get-VM |
        ForEach-Object {
            $Tooltip = "Name: {0} - VM Id: {1} `nState: {2} - Owner Node: {3}" -f $_.Name,$_.VMId,$_.State,$_.ComputerName
            New-CompletionResult -CompletionText $_.VMId -ToolTip $Tooltip -ListItemText $_.Name
        }
}
#CLUSTER RESOURCE
function FailoverClusters_ClusterResourceNameArgumentCompletion
{
    param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameter)

    $OptionalCluster = @{}
    $Cluster = $fakeBoundParameter["Cluster"]
    if($Cluster)
    {
        $OptionalCluster.Cluster = $Cluster
    }
    # These completions are slow
    FailoverClusters\Get-ClusterResource -Name "$wordToComplete*" @OptionalCluster |
        Sort-Object |
        ForEach-Object {
            $Tooltip = "State: {0} - Resource Type: {1}" -f $_.State,$_.ResourceType
            New-CompletionResult -CompletionText $_.Name -ToolTip $Tooltip
        }
}
function FailoverClusters_ClusterResourceVMIdArgumentCompletion
{
    param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameter)

    $OptionalCluster = @{}
    $Cluster = $fakeBoundParameter["Cluster"]
    if($Cluster)
    {
        $OptionalCluster.Cluster = $Cluster
    }
    # These completions are slow
    FailoverClusters\Get-ClusterResource -Name "*$wordToComplete*" @OptionalCluster | 
        Where-Object { $_.ResourceType -eq 'Virtual Machine'} |
        Hyper-V\Get-VM |
        Sort-Object |
        ForEach-Object {
            $Tooltip = "Name: {0} - VM Id: {1} `nState: {2} - Owner Node: {3}" -f $_.Name,$_.VMId,$_.State,$_.ComputerName
            New-CompletionResult -CompletionText $_.VMId -ToolTip $Tooltip -ListItemText $_.Name
        }
}
function FailoverClusters_ClusterResourceDiskArgumentCompletion
{
    param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameter)

    $OptionalCluster = @{}
    $Cluster = $fakeBoundParameter["Cluster"]
    if($Cluster)
    {
        $OptionalCluster.Cluster = $Cluster
    }
    # These completions are slow
    FailoverClusters\Get-ClusterResource -Name "$wordToComplete*" @OptionalCluster |
        Where-Object {$_.ResourceType -eq "Physical Disk" }
        Sort-Object |
        ForEach-Object {
            $Tooltip = "State: {0} - Resource Type: {1} - Owner Node: {2}" -f $_.State,$_.ResourceType,$_.OwnerNode
            New-CompletionResult -CompletionText $_.Name -ToolTip $Tooltip
        }
}
function FailoverClusters_ClusterResourceTypeNameArgumentCompletion
{
    param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameter)

    $OptionalCluster = @{}
    $Cluster = $fakeBoundParameter["Cluster"]
    if($Cluster)
    {
        $OptionalCluster.Cluster = $Cluster
    }

    FailoverClusters\Get-ClusterResourceType -Name "$wordToComplete*" @OptionalCluster |
        Sort-Object |
        ForEach-Object {
            $Tooltip = "Name: {0} - Resource DLL: {1}" -f $_.DisplayName,$_.DllName
            New-CompletionResult -CompletionText $_.Name -ToolTip $Tooltip
        }
}
#CLUSTER SHAREDVOLUME
function FailoverClusters_ClusterSharedVolumeNameArgumentCompletion
{
    param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameter)

    $OptionalCluster = @{}
    $Cluster = $fakeBoundParameter["Cluster"]
    if($Cluster)
    {
        $OptionalCluster.Cluster = $Cluster
    }
    # These completions are slow
    FailoverClusters\Get-ClusterSharedVolume -Name "$wordToComplete*" @OptionalCluster |
        Sort-Object |
        ForEach-Object {
            $Tooltip = "State: {0} - OwnerNode: {1}" -f $_.State,$_.OwnerNode
            New-CompletionResult -CompletionText $_.Name -ToolTip $Tooltip
        }
}
#STORAGE
function FailoverClusters_StorageArgumentCompletion
{
    param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameter)

    $OptionalCluster = @{}
    $Cluster = $fakeBoundParameter["Cluster"]
    if($Cluster)
    {
        $OptionalCluster.Cluster = $Cluster
    }

    FailoverClusters\Get-ClusterAvailableDisk @OptionalCluster |
        Where-Object {$_.Name -like "$wordToComplete*"}
        Sort-Object |
        ForEach-Object {
            $Tooltip = "State: {0} - OwnerNode: {1}" -f $_.State,$_.OwnerNode
            New-CompletionResult -CompletionText $_.Name -ToolTip $Tooltip
        }
}
#CLUSTER NETWORK
function FailoverClusters_ClusterNetworkNameArgumentCompletion
{
    param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameter)

    $OptionalCluster = @{}
    $Cluster = $fakeBoundParameter["Cluster"]
    if($Cluster)
    {
        $OptionalCluster.Cluster = $Cluster
    }

    FailoverClusters\Get-ClusterNetwork -Name "$wordToComplete*" @OptionalCluster |
        Sort-Object |
        ForEach-Object {
            $Tooltip = "State: {0} - Subnet/Mask: {1}/{2}" -f $_.State,$_.Address,$_.AddressMask
            New-CompletionResult -CompletionText $_.Name -ToolTip $Tooltip
        }
}
#CLUSTER NETWORK INTERFACE
function FailoverClusters_ClusterNetworkInterfaceNameArgumentCompletion
{
    param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameter)

    $OptionalCluster = @{}
    $Cluster = $fakeBoundParameter["Cluster"]
    if($Cluster)
    {
        $OptionalCluster.Cluster = $Cluster
    }

    FailoverClusters\Get-ClusterNetworkInterface -Name "$wordToComplete*" @OptionalCluster |
        Sort-Object |
        ForEach-Object {
            $Tooltip = "Adapter: {0} `nState: {1} - IP: {2} - Network: {3}" -f $_.Adapter,$_.State,$_.Address,$_.Network
            New-CompletionResult -CompletionText $_.Name -ToolTip $Tooltip
        }
}

# ARGUMENT COMPLETER REGISTRATION ##############################################

#CLUSTER
Register-ArgumentCompleter `
    -Command ('Get-Cluster') `
    -Parameter 'Name' `
    -Description 'Complete cluster names, for example: Get-Cluster -Name <TAB>' `
    -ScriptBlock $function:FailoverClusters_ClusterArgumentCompletion

Register-ArgumentCompleter `
    -Command ('Add-VMToCluster','Remove-VMFromCluster','Add-ClusterCheckpoint','Add-ClusterDisk','Add-ClusterFileServerRole','Add-ClusterGenericApplicationRole','Add-ClusterGenericScriptRole','Add-ClusterGenericServiceRole','Add-ClusterGroup','Add-ClusteriSCSITargetServerRole','Add-ClusterNode','Add-ClusterPrintServerRole','Add-ClusterResource','Add-ClusterResourceDependency','Add-ClusterResourceType','Add-ClusterScaleOutFileServerRole','Add-ClusterServerRole','Add-ClusterSharedVolume','Add-ClusterVirtualMachineRole','Add-ClusterVMMonitoredItem','Block-ClusterAccess','Clear-ClusterNode','Get-ClusterAccess','Get-ClusterAvailableDisk','Get-ClusterCheckpoint','Get-ClusterGroup','Get-ClusterLog','Get-ClusterNetwork','Get-ClusterResource','Get-ClusterNetworkInterface','Get-ClusterNode','Get-ClusterOwnerNode','Get-ClusterParameter','Get-ClusterQuorum','Get-ClusterResource','Get-ClusterResourceDependency','Get-ClusterResourceDependencyReport','Get-ClusterResourceType','Get-ClusterSharedVolume','Get-ClusterSharedVolumeState','Get-ClusterVMMonitoredItem','Grant-ClusterAccess','Move-ClusterGroup','Move-ClusterResource','Move-ClusterSharedVolume','Move-ClusterVirtualMachineRole','Remove-Cluster','Remove-ClusterAccess','Remove-ClusterCheckpoint','Remove-ClusterGroup','Remove-ClusterNode','Remove-ClusterResource','Remove-ClusterResourceDependency','Remove-ClusterResourceType','Remove-ClusterSharedVolume','Remove-ClusterVMMonitoredItem','Resume-ClusterNode','Resume-ClusterResource','Set-ClusterLog','Set-ClusterOwnerNode','Set-ClusterParameter','Set-ClusterQuorum','Set-ClusterResourceDependency','Start-Cluster','Start-ClusterGroup','Start-ClusterNode','Start-ClusterResource','Stop-Cluster','Stop-ClusterGroup','Stop-ClusterNode','Stop-ClusterResource','Suspend-ClusterNode','Suspend-ClusterResource','Test-Cluster','Test-ClusterResourceFailure','Update-ClusterIPResource','Update-ClusterNetworkNameResource','Update-ClusterVirtualMachineConfiguration') `
    -Parameter 'Cluster' `
    -Description 'Complete cluster names, for example: Get-ClusterResource -Cluster <TAB>' `
    -ScriptBlock $function:FailoverClusters_ClusterNameArgumentCompletion

#CLUSTER NODE
Register-ArgumentCompleter `
    -Command ('Clear-ClusterDiskReservation','Get-ClusterLog','Get-ClusterNetworkInterface','Get-ClusterSharedVolumeState','Move-ClusterGroup','Move-ClusterSharedVolume','Move-ClusterVirtualMachineRole','New-Cluster','Test-Cluster') `
    -Parameter 'Node' `
    -Description 'Complete cluster node names, for example: Test-Cluster -Cluster <cluster> -Node <TAB>' `
    -ScriptBlock $function:FailoverClusters_ClusterNodeArgumentCompletion

Register-ArgumentCompleter `
    -Command ('Clear-ClusterNode','Get-ClusterNode','Remove-ClusterNode','Resume-ClusterNode','Start-ClusterNode','Stop-ClusterNode','Suspend-ClusterNode') `
    -Parameter 'Name' `
    -Description 'Complete cluster node names, for example: Get-ClusterNode -Cluster <cluster> -Name <TAB>' `
    -ScriptBlock $function:FailoverClusters_ClusterNodeArgumentCompletion

#CLUSTER GROUP
Register-ArgumentCompleter `
    -Command ('Add-ClusterGroup','Get-ClusterGroup','Move-ClusterGroup','Move-ClusterVirtualMachineRole','Remove-ClusterGroup','Start-ClusterGroup','Stop-ClusterGroup') `
    -Parameter 'Name' `
    -Description 'Complete cluster group names, for example: Get-ClusterGroup -Cluster <cluster> -Name <TAB>' `
    -ScriptBlock $function:FailoverClusters_ClusterGroupNameArgumentCompletion

Register-ArgumentCompleter `
    -Command ('Get-ClusterGroup','Remove-ClusterGroup') `
    -Parameter 'VMId' `
    -Description 'Complete cluster group names, for example: Get-ClusterGroup -Cluster <cluster> -VMId <TAB>' `
    -ScriptBlock $function:FailoverClusters_ClusterGroupVMIdArgumentCompletion

Register-ArgumentCompleter `
    -Command ('Get-ClusterOwnerNode','Set-ClusterOwnerNode') `
    -Parameter 'Group' `
    -Description 'Complete cluster group names, for example: Get-ClusterOwnerNode -Cluster <cluster> -Group <TAB>' `
    -ScriptBlock $function:FailoverClusters_ClusterGroupNameArgumentCompletion

#CLUSTER VM
Register-ArgumentCompleter `
    -Command ('Move-ClusterVirtualMachineRole') `
    -Parameter 'Name' `
    -Description 'Complete cluster virtual machine group names, for example: Move-ClusterVirtualMachineRole -Cluster <cluster> -Name <TAB>' `
    -ScriptBlock $function:FailoverClusters_ClusterVirtualMachineRoleNameArgumentCompletion

Register-ArgumentCompleter `
    -Command ('Move-ClusterVirtualMachineRole') `
    -Parameter 'VMId' `
    -Description 'Complete cluster virtual machine VMId names, for example: Move-ClusterVirtualMachineRole -Cluster <cluster> -VMId <TAB>' `
    -ScriptBlock $function:FailoverClusters_ClusterVirtualMachineRoleVMIdArgumentCompletion

#CLUSTER RESOURCE
Register-ArgumentCompleter `
    -Command ('Get-ClusterResource','Move-ClusterResource','Remove-ClusterResource','Start-ClusterResource','Stop-ClusterResource') `
    -Parameter 'Name' `
    -Description 'Complete cluster resource names, for example: Get-ClusterResource -Cluster <cluster> -Name <TAB>' `
    -ScriptBlock $function:FailoverClusters_ClusterResourceNameArgumentCompletion

Register-ArgumentCompleter `
    -Command ('Get-ClusterResource') `
    -Parameter 'VMId' `
    -Description 'Complete cluster resource names, for example: Get-ClusterResource -Cluster <cluster> -VMId <TAB>' `
    -ScriptBlock $function:FailoverClusters_ClusterResourceVMIdArgumentCompletion

Register-ArgumentCompleter `
    -Command ('Move-ClusterResource') `
    -Parameter 'Group' `
    -Description 'Complete cluster resource names, for example: Move-ClusterResource -Cluster <cluster> -Name <name> -Group <TAB>' `
    -ScriptBlock $function:FailoverClusters_ClusterGroupNameArgumentCompletion

Register-ArgumentCompleter `
    -Command ('Get-ClusterOwnerNode','Set-ClusterOwnerNode') `
    -Parameter 'Resource' `
    -Description 'Complete cluster resource names, for example: Move-ClusterResource -Cluster <cluster> -Name <name> -Group <TAB>' `
    -ScriptBlock $function:FailoverClusters_ClusterResourceNameArgumentCompletion

Register-ArgumentCompleter `
    -Command ('Resume-ClusterResource','Supsend-ClusterResource') `
    -Parameter 'Name' `
    -Description 'Complete cluster disk resource names, for example: Get-ClusterResource -Cluster <cluster> -Name <TAB>' `
    -ScriptBlock $function:FailoverClusters_ClusterResourceDiskArgumentCompletion

Register-ArgumentCompleter `
    -Command ('Resume-ClusterResource','Supsend-ClusterResource') `
    -Parameter 'Name' `
    -Description 'Complete cluster shared volume names, for example: Resume-ClusterResource -Cluster <cluster> -VolumeName <TAB>' `
    -ScriptBlock $function:FailoverClusters_ClusterSharedVolumeNameArgumentCompletion

#CLUSTER RESOURCE TYPE
Register-ArgumentCompleter `
    -Command ('Get-ClusterResourceType','Remove-ClusterResourceType') `
    -Parameter 'Name' `
    -Description 'Complete cluster resource type names, for example: Get-ClusterResourceType -Cluster <cluster> -Name <TAB>' `
    -ScriptBlock $function:FailoverClusters_ClusterResourceTypeNameArgumentCompletion
Register-ArgumentCompleter `
    -Command ('Get-ClusterOwnerNode','Get-ClusterParameter') `
    -Parameter 'ResourceType' `
    -Description 'Complete cluster resource type names, for example: Get-ClusterOwnerNode -Cluster <cluster> -ResourceType <TAB>' `
    -ScriptBlock $function:FailoverClusters_ClusterResourceTypeNameArgumentCompletion

#CLUSTER SHAREDVOLUME
Register-ArgumentCompleter `
    -Command ('Get-ClusterSharedVolume','Get-ClusterSharedVolumeState','Move-ClusterSharedVolume','Remove-ClusterSharedVolume') `
    -Parameter 'Name' `
    -Description 'Complete cluster shared volume names, for example: Get-ClusterSharedVolume -Cluster <cluster> -Name <TAB>' `
    -ScriptBlock $function:FailoverClusters_ClusterSharedVolumeNameArgumentCompletion

#STORAGE
Register-ArgumentCompleter `
    -Command ('Add-ClusterFileServerRole','Add-ClusterGenericApplicationRole','Add-ClusterGenericScriptRole','Add-ClusterGenericServiceRole','Add-ClusteriSCSITargetServerRole','Add-ClusterPrintServerRole','Add-ClusterServerRole') `
    -Parameter 'Storage' `
    -Description 'Complete cluster storage names, for example: Add-ClusterFileServerRole -Cluster <cluster> -Storage <TAB>' `
    -ScriptBlock $function:FailoverClusters_StorageArgumentCompletion

#CLUSTER NETWORK
Register-ArgumentCompleter `
    -Command ('Get-ClusterNetwork') `
    -Parameter 'Name' `
    -Description 'Complete cluster network names, for example: Get-ClusterNetwork -Cluster <cluster> -Name <TAB>' `
    -ScriptBlock $function:FailoverClusters_ClusterNetworkNameArgumentCompletion
#CLUSTER NETWORK INTERFACE
Register-ArgumentCompleter `
    -Command ('Get-ClusterNetworkInterface') `
    -Parameter 'Network' `
    -Description 'Complete cluster network interface network names, for example: Get-ClusterNetworkInterface -Cluster <cluster> -Network <TAB>' `
    -ScriptBlock $function:FailoverClusters_ClusterNetworkNameArgumentCompletion
Register-ArgumentCompleter `
    -Command ('Get-ClusterNetworkInterface') `
    -Parameter 'Name' `
    -Description 'Complete cluster network interface network names, for example: Get-ClusterNetworkInterface -Cluster <cluster> -Network <TAB>' `
    -ScriptBlock $function:FailoverClusters_ClusterNetworkInterfaceNameArgumentCompletion