< Back

Get-PSVersion

Sun Jan 19, 2020 7:14 pm

NAME Get-PSVersion



SYNTAX

Get-PSVersion





PARAMETERS

None





INPUTS

None





OUTPUTS

System.Object



ALIASES

None





REMARKS

None





examples : @{example=@{code=# Saves the script that reproduces the error into a variable and passes the script to

Get-ErrorReport. The command provides a destination for storing the error report and a description of

the observed problem.

$script = {

Connect-VIServer 10.23.34.36

$vapp = Get-VApp

Get-VM VM -Location $vapp

}

$script | Get-ErrorReport -Destination "D:\\error-reports" -ProblemDescription "No VM is returned.

There are several VMs in this vApp. The vApp is in a DRS-enabled cluster. All VMs part of the vApp are

expected to be returned"; remarks=System.Management.Automation.PSObject[];

title=-------------------------- Example 1 --------------------------}}

inputTypes : @{inputType=@{type=@{name=System.Management.Automation.ScriptBlock};

description=System.Management.Automation.PSObject[]}}

alertSet : @{alert=System.Management.Automation.PSObject[]}

syntax : @{syntaxItem=@{name=Get-ErrorReport; parameter=System.Management.Automation.PSObject[]}}

parameters : @{parameter=System.Management.Automation.PSObject[]}

details : @{description=System.Management.Automation.PSObject[]; verb=Get; noun=ErrorReport;

name=Get-ErrorReport}

description : {@{Text=This cmdlet collects debugging information in order to investigate a problem in PowerCLI or

the work environment. The cmdlet runs a script that reproduces the problem and captures any relevant

information in a single .zip file. Then, you can send the .zip file to the PowerCLI support for

analysis.

}, @{Text=To generate an error report:

}, @{Text=1. Isolate the problem into a simple script.

}, @{Text=2. Run Get-ErrorReport to generate the support bundle.

}...}

relatedLinks : @{navigationLink=@{uri=; linkText=Get-ErrorReport}}

returnValues : @{returnValue=@{type=@{name=System.IO.FileInfo}; description=System.Management.Automation.PSObject[]}}

xmlns:maml : http://schemas.microsoft.com/maml/2004/10

xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10

xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10

xmlns:MSHelp : http://msdn.microsoft.com/mshelp

Name : Get-ErrorReport

Category : Cmdlet

Synopsis : This cmdlet collects debugging information in order to investigate a problem in PowerCLI or the work

environment.

Component :

Role :

Functionality :

PSSnapIn :

ModuleName : VMware.VimAutomation.Sdk