Windows Authentication in PU 5

I setup a new instance of PU 5.0.9
Enabled Windows Authentication

Modified the Administratror role

After restarting PU service, the Administrator role is missing from GUI

and Roles.ps1 got modified

if I copy the administrator role code från another instance of PU which works and restart the service, then everything works

Product: PowerShell Universal
Version: 5.0.9


After I removed the marked part, and restarted the service, it works.

If you’re interested in why, policy authorization and claims authorization cannot exist in tandem - only one or the other. To preserve the default behavior you can also just comment out the -Policy { ... } block entirely

I understand, after many trial and error :slight_smile:
but it’s some kind of bug in the UI, that it can not correct the policy when one of the method is modifed.