vmware / PowerCLI-Example-Scripts

http://blogs.vmware.com/powercli
Other
746 stars 603 forks source link

The term 'Set-HVEventDatabase' is not recognized as the name of a cmdlet, function, script file, or operable program #487

Closed mytuanZ closed 2 years ago

mytuanZ commented 2 years ago

Today, when I run the PowerShell script on Windows Server 2019, I got this error: image

My script has:

...
Install-Module -Name VMware.PowerCLI -Force
Connect-HVServer -Server ...  -User ...
Set-HVEventDatabase -ServerName ... -DatabaseType ...

As I remember, It worked a few months ago. Which module do I need to install to run Set-HVEventDatabase ?