Hi,
I have a form with a button that should allow you to log in to MS Graph.
The button code is fairly simple:$TenantId and $clientId are declared.
When i run the form within Sapien it runs ok: after i hit the Login button from the form, a new windows pops up asking me to provide my credential. After providing them i am logged in and a can do the next tasks (like Get all users etc..
However, when i create a package of the script and run this on a seperate computer (without PS Studio) the form pups up, however when hitting the login button nothing happens. The Connect-MgGraph should give me a login screen, but nothing happens. I have installed the Mggraph module, i have the correct Exectionpolicies.
Does anyone have an idea of what i am missing?
Regards,
Reinout
I have a form with a button that should allow you to log in to MS Graph.
The button code is fairly simple:
Code:
$connect = Connect-MgGraph -TenantId $TenantId -ClientId $clientId
When i run the form within Sapien it runs ok: after i hit the Login button from the form, a new windows pops up asking me to provide my credential. After providing them i am logged in and a can do the next tasks (like Get all users etc..
However, when i create a package of the script and run this on a seperate computer (without PS Studio) the form pups up, however when hitting the login button nothing happens. The Connect-MgGraph should give me a login screen, but nothing happens. I have installed the Mggraph module, i have the correct Exectionpolicies.
Does anyone have an idea of what i am missing?
Regards,
Reinout
Statistics: Posted by ReinoutDorreboom — Mon Nov 20, 2023 5:09 am — Replies 1 — Views 605