New-ExoPSSession not being recognized as a cmdlet
Posted: Tue Jun 11, 2019 8:09 am
PowerShell Studio Product: PowerShell Studio 2019 (32 Bit)
Build: v5.6.163
OS: Windows 10 Enterprise (64 Bit)
Build: v10.0.16299.0
===================================================
Hi folks,
I'm a new PowerShell Studio user, but not a stranger to PowerShell scripts.
I have a function with an '$AzureAD = Connect-AzureAD' call that works and loads the required data to the form's objects, etc.
The problem is that (unlike the same GUI code in PowerShell_ISE) I can't create/pass the MFA session to 'New-ExoPSSession'.
1 - i'm prompted to login again... which doesn't happen when running the same commands in PowerShell_ISE, the session simply imports in the background.
2 - although prompted for credentials, the cmdlets work, but not recognized in the PowerShell Studio editor - wondering if that's why 1 above occurs...
I'm thinking it has something to do with scope or setting the session as some sort of global variable... but just can't seem to find what it is.
Thanks in advance for your help!
Marcel
Build: v5.6.163
OS: Windows 10 Enterprise (64 Bit)
Build: v10.0.16299.0
===================================================
Hi folks,
I'm a new PowerShell Studio user, but not a stranger to PowerShell scripts.
I have a function with an '$AzureAD = Connect-AzureAD' call that works and loads the required data to the form's objects, etc.
The problem is that (unlike the same GUI code in PowerShell_ISE) I can't create/pass the MFA session to 'New-ExoPSSession'.
1 - i'm prompted to login again... which doesn't happen when running the same commands in PowerShell_ISE, the session simply imports in the background.
2 - although prompted for credentials, the cmdlets work, but not recognized in the PowerShell Studio editor - wondering if that's why 1 above occurs...
I'm thinking it has something to do with scope or setting the session as some sort of global variable... but just can't seem to find what it is.
Thanks in advance for your help!
Marcel