Product: PowerShell Universal
Version: 3.9.8
I need to create several small webapps to display data from restpoints on our identity management system. First app is a password generator which works from powershell:
PS C:\Users\skikacoroski> Invoke-RestMethod -Uri $url -Authentication “Basic” -Credential $cred
yoyo-lather6-body
unstamped-starless6-drained
quilt-guise1-avid
battering5-ample-mashing
henchman-petty0-masculine
However, when I run it as a script or add it to a dashboard or page in Powershell Universal I get:
[error] An attempt was made to access a socket in a way forbidden by its access permissions.
My goal is to have a page that users can just refresh to get a different set of passwords. Any ideas or hints to get around this problem would be most helpful.