How to use -NotAuthorized in v 2.10


Trying to test -NotAuthorized parameter in new-uddashboard but it seems its needs a value cause just by itself will cause an error.

can you provide an example of how to use the new parameter.

Thank you

The -NotAuthorized parameter is looking for a script block that contains the content of your not authorized page.

-NotAuthorized {
   New-UDTypography -Text 'No!'