[CmdletBinding()]
param(
[Parameter(Mandatory=$True)]
[string[]] $Computername='localhost'
)
Get-VM -ComputerName $Computername
with help:
<#
.Synopsis
short Explanation
.Description
long Explanation
.Parameter Computername
paramdesc
.Example
getVm localhost
#>
[CmdletBinding()]
param(
[Parameter(Mandatory=$True)]
[string[]] $Computername='localhost'
)
Get-VM -ComputerName $Computername
No comments:
Post a Comment