![image|689x153](upload://rRX5vVBEFDSrivHqiD6yhOyV8jp.jpeg)
Product: PowerShell Universal
Version: 1.4.6
This cmdlet is not a part of the UD v3 module any longer. You should have Get-PSUDashboard in the Universal module.
Thanks so much! Since the commands change, I’m trying to figure out what I need to do in order to get my dashboard to work again, so I’m starting with the bare minimum, just to get a simple dashboard working, but with PSUDashboard, I’m having a hard time, I don’t understand why.
$token = “aksdjf;ajsdfkajsdf;l”
Do I need to Connect-UAServer ?
Do I need to Connect-PSUServer?
I don’t understand the difference between these 2 or if they are even needed.
Here is a simple code I’m trying.
New-PSUDashboard -Name “test” -Computername “http://localhost:5000” -Apptoken $token -content {
New-UDButton -text “Click Me” -onClick {
Show-UDToast -Message ‘Success!!’
}
}
Error:
New-PSUDashboard : Call failed with status code 400 (Bad Request): POST http://localhost:5000/api/v1/Dashboard
I’m using the visual studio code extension and I can’t seem to get my dashboard script in visual studio code to sync with what’s in the dashboard either, which is driving me nuts as well.
Please help adam