Skip to content

Script Errors #1

@Sunny4422000

Description

@Sunny4422000

Hi There

I have found two issues in the script

  1. In the script, the value for $PSScriptroot is not defined anywhere. So when i run the Script it started throwing errors.

once I assign the path issue is gone

$HomePage = . (Join-Path $PSScriptRoot "pages\home.ps1")
$HostsPage = . (Join-Path $PSScriptRoot "pages\hosts.ps1")
$VMspage = . (Join-Path $PSScriptRoot "pages\vms.ps1")

For some reason am getting the below not sure whats causing this error

Start-UDDashboard : The path is not of a legal form.
At line:38 char:1

  • Start-UDDashboard -Content { New-UDDashboard -Title "ESXi Dashboard" ...
  •   + CategoryInfo          : NotSpecified: (:) [Start-UDDashboard], ArgumentException
      + FullyQualifiedErrorId : System.ArgumentException,UniversalDashboard.Cmdlets.StartDashboardCommand
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions