alanrenouf / vCheck-vSphere

vCheck Daily Report for vSphere
MIT License
732 stars 326 forks source link

Get-vCheckSetting The term 'Get-vCheckSetting' is not recognized as the name of a cmdlet, function, script file, or operable program #730

Closed OttoSte99 closed 3 years ago

OttoSte99 commented 3 years ago

I've downloaded the latest version of vCheck-Vsphere and vmware PowerCLI

PS C:\Users\Otto> Get-InstalledModule

Version    Name                                Repository           Description
-------    ----                                ----------           -----------
12.2.0.... VMware.CloudServices                PSGallery            PowerCLI CloudServices sample module.
7.0.2.1... VMware.DeployAutomation             PSGallery            This Windows PowerShell module contains PowerCLI Auto Deploy cmdlets.
7.0.2.1... VMware.ImageBuilder                 PSGallery            This Windows PowerShell module contains PowerCLI ImageBuilder cmdlets.
12.3.0.... VMware.PowerCLI                     PSGallery            This Windows PowerShell module contains VMware.PowerCLI
7.0.2.1... VMware.Vim                          PSGallery            This Windows PowerShell module contains PowerCLI Vim.
12.3.0.... VMware.VimAutomation.Cis.Core       PSGallery            This Windows PowerShell module contains PowerCLI Cloud Infrastructure Suite cmdlets.
12.0.0.... VMware.VimAutomation.Cloud          PSGallery            This Windows PowerShell module contains PowerCLI Cloud cmdlets.
12.3.0.... VMware.VimAutomation.Common         PSGallery            This Windows PowerShell module contains functionality required by multiple PowerCLI modules.
12.3.0.... VMware.VimAutomation.Core           PSGallery            This Windows PowerShell module contains Windows PowerShell cmdlets for managing vSphere.
12.3.0.... VMware.VimAutomation.Hcx            PSGallery            This Windows PowerShell module contains PowerCLI HCX cmdlets.
12.3.0.... VMware.VimAutomation.HorizonView    PSGallery            This Windows PowerShell module contains Connect/Disconnect cmdlets for View API service.
12.0.0.... VMware.VimAutomation.License        PSGallery            This Windows PowerShell module contains PowerCLI cmdlets for managing VMware product licenses.
12.3.0.... VMware.VimAutomation.Nsxt           PSGallery            This Windows PowerShell module contains PowerCLI NSXT cmdlets.
12.2.0.... VMware.VimAutomation.Sdk            PSGallery            This Windows PowerShell module contains PowerCLI Sdk.
12.3.0.... VMware.VimAutomation.Security       PSGallery            This Windows PowerShell module contains PowerCLI security management cmdlets.
12.3.0.... VMware.VimAutomation.Srm            PSGallery            This Windows PowerShell module contains PowerCLI SRM cmdlets.
12.3.0.... VMware.VimAutomation.Storage        PSGallery            This Windows PowerShell module contains PowerCLI storage management cmdlets.
1.6.0.0    VMware.VimAutomation.StorageUtility PSGallery            This Windows PowerShell module contains utility scripts for storage.
12.3.0.... VMware.VimAutomation.Vds            PSGallery            This Windows PowerShell module contains PowerCLI VDS cmdlets.
12.2.0.... VMware.VimAutomation.Vmc            PSGallery            This Windows PowerShell module contains PowerCLI VMC cmdlets.
12.2.0.... VMware.VimAutomation.vROps          PSGallery            This Windows PowerShell module contains PowerCLI vROps cmdlets.
12.3.0.... VMware.VimAutomation.WorkloadMan... PSGallery            PowerShell commands for automation of workloads related functionality in vSphere.
12.1.0.... VMware.VumAutomation                PSGallery            This Windows PowerShell module contains PowerCLI VUM cmdlets.

But when running the command Get-vCheckSetting it gives me the following error:

Get-vCheckSetting : The term 'Get-vCheckSetting' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling 
of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\Otto\Downloads\vCheck-vSphere-master (1)\vCheck-vSphere-master\Plugins\00 Initialize\01 General Information.ps1:17 char:18
+ $DRSMigrateAge = Get-vCheckSetting $Title "DRSMigrateAge" $DRSMigrate ...
+                  ~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Get-vCheckSetting:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

How can I fix this?

monahancj commented 3 years ago

That function gets loaded when vcheck.ps1 is run. It also doesn't do anything yet. The comment below is from the function.

<# Placeholder for now, just return the setting passed to it. Eventually this
   will be used for new settings handling #>
OttoSte99 commented 3 years ago

That function gets loaded when vcheck.ps1 is run. It also doesn't do anything yet. The comment below is from the function.

<# Placeholder for now, just return the setting passed to it. Eventually this
   will be used for new settings handling #>

Hi @monahancj, thank you for the reply. Anyway I've noticed that some plugin scripts don't retreive all the information, for example 03 Datastore Information.ps1 should give me the datastore free/used space, but I can't find them in the final report. Maybe do I have missed some initial configuration parameters when executing vcheck.ps1 -config?