Comments on: How to Create Your Own PowerShell Dashboard for ESXi https://www.altaro.com/vmware/powershell-dashboard-esxi/ VMware guides, how-tos, tips, and expert advice for system admins and IT professionals Wed, 31 Mar 2021 05:36:15 +0000 hourly 1 By: Luke Orellana https://www.altaro.com/vmware/powershell-dashboard-esxi/#comment-4538 Sun, 07 Apr 2019 17:29:26 +0000 https://www.altaro.com/vmware/?p=19334#comment-4538 In reply to Yitz.

Check out these instructions. This should do the trick for you to upgrade PowerShellGet: http://shaulov.us/2018/01/13/upgrading-powershellget-1-0-0-1-to-the-latest-version/

There are two gotcha’s that I’ve seen with updating PowerShellGet:
-Sometimes you need to save PowerShellGet locally to install the new version
-Sometimes you have to manually delete the version from the PowerShell Modules folders.

]]>
By: Yitz https://www.altaro.com/vmware/powershell-dashboard-esxi/#comment-4524 Mon, 25 Mar 2019 12:48:24 +0000 https://www.altaro.com/vmware/?p=19334#comment-4524 In reply to Luke Orellana.

I am also unable to install the dashboard due to the error:

PS C:Windowssystem32> install-module -Name UniversalDashboard -Force
WARNING: The specified module ‘UniversalDashboard’ with PowerShellGetFormatVersion ‘2.0’ is not supported by the
current version of PowerShellGet. Get the latest version of the PowerShellGet module to install this module, ‘UniversalDashboard’.

When trying your suggestion to uninstall:
uninstall-module powershellget -RequiredVersion 1.0.0.1 -Force
it also did not work. The error I received was:

PS C:Windowssystem32> uninstall-module powershellget -RequiredVersion 1.0.0.1 -Force
PackageManagementUninstall-Package : No match was found for the specified search criteria and module names
‘powershellget’.
At C:Program FilesWindowsPowerShellModulesPowerShellGet1.0.0.1PSModule.psm1:2194 char:21
… $null = PackageManagementUninstall-Package @PSBoundParameters
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CategoryInfo : ObjectNotFound: (Microsoft.Power…ninstallPackage:UninstallPackage) [Uninstall-Package]
, Exception
FullyQualifiedErrorId : NoMatchFound,Microsoft.PowerShell.PackageManagement.Cmdlets.UninstallPackage

]]>
By: Luke Orellana https://www.altaro.com/vmware/powershell-dashboard-esxi/#comment-4520 Thu, 21 Mar 2019 01:21:07 +0000 https://www.altaro.com/vmware/?p=19334#comment-4520 In reply to Brian.

Make sure powercli is up to date. If you open up a console and run this snippet: $ESXiConnectionTest = Connect-VIServer -server $Vcenter -Credential $Credentials -NotDefault

Then immediately typing in this should come out as “True”: $ESXiConnectionTest.IsConnected

As long as the isconnected property shows True it will redirect you to the homepage.

]]>
By: Luke Orellana https://www.altaro.com/vmware/powershell-dashboard-esxi/#comment-4519 Thu, 21 Mar 2019 01:10:37 +0000 https://www.altaro.com/vmware/?p=19334#comment-4519 In reply to Matt Roush.

The way the dashboard verifies that the user credentials are correct, is by checking if the “isconnected” property equals “True” from the connect-viserver session. If it’s not, you’ll get the “Your Credentials were not able to authenticate with $VCenter” message. To troubleshoot you might want to open up a separate powershell console, and run this snippet to get connected to VCenter: $ESXiConnectionTest = Connect-VIServer -server $Vcenter

Then see what you get after entering: $ESXiConnectionTest.IsConnected
This should be set to “true”

]]>
By: Luke Orellana https://www.altaro.com/vmware/powershell-dashboard-esxi/#comment-4518 Wed, 20 Mar 2019 23:23:48 +0000 https://www.altaro.com/vmware/?p=19334#comment-4518 In reply to David Hesse.

Make sure .net 4.7.2 is installed. Also, you can use -requiredversion to remove specific module versions: uninstall-module powershellget -RequiredVersion 1.0.0.1 -Force

]]>
By: David Hesse https://www.altaro.com/vmware/powershell-dashboard-esxi/#comment-4511 Sat, 16 Mar 2019 12:27:00 +0000 https://www.altaro.com/vmware/?p=19334#comment-4511 Its not working for me.
I am unable to install the Module.
When I am running: Install-Module -Name UniversalDashboard

I am getting the following error message:

WARNING: The specified module ‘UniversalDashboard’ with PowerShellGetFormatVersion ‘2.0’ is not supported by the current version of PowerShellGet. Get the latest version of the
PowerShellGet module to install this module, ‘UniversalDashboard’.

I already installed the latest PowerShellGet, so now I have two versions running in parallel, but it still does not work:

PS C:WINDOWSsystem32> Get-Module -ListAvailable PowerShellGet

Directory: C:Program FilesWindowsPowerShellModules

ModuleType Version Name ExportedCommands
———- ——- —- —————-
Script 2.1.2 PowerShellGet {Find-Command, Find-DSCResource, Find-Module, Find-RoleCapability…}
Script 1.0.0.1 PowerShellGet {Install-Module, Find-Module, Save-Module, Update-Module…}

Any suggestions on what I am missing here?

]]>
By: Matt Roush https://www.altaro.com/vmware/powershell-dashboard-esxi/#comment-4509 Wed, 13 Mar 2019 13:50:00 +0000 https://www.altaro.com/vmware/?p=19334#comment-4509 In reply to Luke Orellana.

I think I got everything working right. I even added a line to ignore the invalid cert error. My only hangup now is that login displays “Bad username or password” when using known good un/pw. The error message changes when I use a known bad un/pw to “Connect-VIServer Cannot complete login due to an incorrect user name or password”. Any thoughts on where the authentication piece might be broken?

]]>
By: Brian https://www.altaro.com/vmware/powershell-dashboard-esxi/#comment-4507 Wed, 13 Mar 2019 02:37:41 +0000 https://www.altaro.com/vmware/?p=19334#comment-4507 I’ve deployed your solution without issue, however all of my login attempts fail when trying to connect to my vcenter. If I run connect-viserver in powershell I am prompted for username and password and connection works fine. Any ideas that might lead me to a solution?

Thanks and excellent project!

]]>
By: Luke Orellana https://www.altaro.com/vmware/powershell-dashboard-esxi/#comment-4506 Tue, 12 Mar 2019 22:50:32 +0000 https://www.altaro.com/vmware/?p=19334#comment-4506 In reply to Tony Salazar.

Looks like whatever endpoint your trying to publish the dashboard on doesn’t have the PowerShell Universal Dashboard modules installed. If that’s the case, open up an Administrative Powershell console and type the following to install the modules on that endpoint: Install-Module -Name UniversalDashboard

]]>
By: Luke Orellana https://www.altaro.com/vmware/powershell-dashboard-esxi/#comment-4505 Tue, 12 Mar 2019 22:47:58 +0000 https://www.altaro.com/vmware/?p=19334#comment-4505 In reply to Matt Roush.

Make sure that before you use Publish-UDDashboard, that the “Pages” folder is in the C:UDService folder. The Publish-UDDashboard cmdlet will automatically copy over the dashboard.ps1 file to the C:UDService folder, however the dashboard pages that are contained within the “Pages” folder aren’t automatically copied and if these dashboard pages are missing at the time of Publishing, the service won’t start correctly.

]]>