Hi All,
Im trying to run the vCheck health report but its throwing an error every time. Also, can we restrict to few report like vCenter,Data store, VM and Host etc...
S D:\vmk\vcheck> .\vCheck.ps1
Security warning
Run only scripts that you trust. While scripts from the internet can be useful, this script can potentially harm your
computer. If you trust this script, use the Unblock-File cmdlet to allow the script to run without this warning
message. Do you want to run D:\vmk\vcheck\Styles\Clarity\Style.ps1?
[D] Do not run [R] Run once [S] Suspend [?] Help (default is "D"): R
WARNING:
WARNING: Welcome to vCheck by Virtu-Al http://virtu-al.net
WARNING: =================================================
WARNING: This is the first time you have run this script or you have re-enabled the setup wizard.
WARNING:
WARNING: To re-run this wizard in the future please use vCheck.ps1 -Config
WARNING: To get usage information, please use Get-Help vCheck.ps1
WARNING:
WARNING: Please complete the following questions or hit Enter to accept the current setting
WARNING: After completing this wizard the vCheck report will be displayed on the screen.
WARNING:
WARNING:
Begin Plugin Processing
[17:57:32] ..start calculating Connection settings for vCenter by Alan Renouf v1.20 [1 of 116]
Connect-VIServer : 12/26/2019 5:57:35 PM Connect-VIServer Could not resolve the requested VC serve
r.
Additional Information: There was no endpoint listening at https://vcsa.local.lab/sdk that could accept the message.
This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
At D:\vmk\vcheck\Plugins\00 Initialize\00 Connection Plugin for vCenter.ps1:151 char:20
+ $VIConnection = Connect-VIServer -Server $VIServer -Port $Port
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (:) [Connect-VIServer], ViServerConnectionException
+ FullyQualifiedErrorId : Client20_ConnectivityServiceImpl_Reconnect_NameResolutionFailure,VMware.VimAutomation.Vi
Core.Cmdlets.Commands.ConnectVIServer
D:\vmk\vcheck\Plugins\00 Initialize\00 Connection Plugin for vCenter.ps1 : Unable to connect to vCenter, please
ensure you have altered the vCenter server address correctly. To specify a username and password edit the connection
string in the file $GlobalVariables
At D:\vmk\vcheck\vCheck.ps1:896 char:56
+ ... = [math]::round((Measure-Command { $Details = @(. $_.FullName)}).Tota ...
+ ~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,00 Connection Plugin for vCenter.ps1
Thanks
vmk