To help you better we need some information from you.
*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***
Product, version and build:5.6.165
32 or 64 bit version of product:64
Operating system:Windows 10 Enterprise
32 or 64 bit OS:64
*** Please add details and screenshots as needed below. ***
Having trouble getting Windows forms to complete connection to Citrix Cloud but I am able to complete same task in the console.
Code Sample:
Add-PSSnapin Citrix.*
Set-XDCredentials -ProfileType CloudAPI -SecureClientFile 'C:\AppExport\secureclient.csv' -CustomerId 'NOTSHARED' -StoreAs "CloudAdmin" -verbose
Get-XDAuthentication –ProfileName "CloudAdmin" -verbose
Results Sample from Windows Form (GUI Interface):
VERBOSE: secureclientfile
VERBOSE: __AllParameterSets
VERBOSE: Get-XDAuthentication: Enter
VERBOSE: Get-XDAuthentication: Using config environment: com
VERBOSE: Get-XDAuthentication: GetBearerToken: transactionId: be8e35c6-a7d9-47c7-8b78-271dbf7e5e5e (Gets Stuck here forever)
Results Sample from Console:
PS C:\Users\oa09596.CORP\Documents\SAPIEN\PowerShell Studio\Files>
PS C:\Users\oa0samp.CORP\Documents\SAPIEN\PowerShell Studio\Files> Add-PSSnapin Citrix.*
PS C:\Users\oa0samp.CORP\Documents\SAPIEN\PowerShell Studio\Files>
PS C:\Users\oa0samp.CORP\Documents\SAPIEN\PowerShell Studio\Files> Set-XDCredentials -ProfileType CloudAPI -Secur
AppExport\secureclient.csv' -CustomerId 'NOTSHARED' -StoreAs "CloudAdmin" -verbose
VERBOSE: secureclientfile
PS C:\Users\oa0samp.CORP\Documents\SAPIEN\PowerShell Studio\Files>
PS C:\Users\oa0samp.CORP\Documents\SAPIEN\PowerShell Studio\Files>
PS C:\Users\oa0samp.CORP\Documents\SAPIEN\PowerShell Studio\Files> Get-XDAuthentication -ProfileName "CloudAdmin"
VERBOSE: __AllParameterSets
VERBOSE: Get-XDAuthentication: Enter
VERBOSE: Get-XDAuthentication: Using config environment: com
VERBOSE: Get-XDAuthentication: GetBearerToken: transactionId: 4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HW5zef7kP6gpN2zOuCfPOP-NU
nA
VERBOSE: Get-XDAuthentication: ProcessBearerToken: Calling core: transactionId: 9badc7aa-fb48-4fe2-b323-a69ca497621
VERBOSE: Get-XDAuthentication: DecodeCustomersfromCwsToken: Customers decoded :1
VERBOSE: Get-XDAuthentication: Set XDSDKAuth to [CloudApi]
VERBOSE: Get-XDAuthentication: Exit
PS C:\Users\oa0samp.CORP\Documents\SAPIEN\PowerShell Studio\Files>
PS C:\Users\oa0samp.CORP\Documents\SAPIEN\PowerShell Studio\Files>
At this Point I am connected and able to do Tasks in the cloud.
Windows Form Hanging Citrix Cloud
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Windows Form Hanging Citrix Cloud
- Attachments
-
- PowershellStudioConsole.jpg (241.78 KiB) Viewed 2035 times
Re: Windows Form Hanging Citrix Cloud
[TOPIC MOVED TO POWERSHELL GUIS FORUM BY MODERATOR]
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Windows Form Hanging Citrix Cloud
Some cmdlets can hang when the form is displayed because the GUI is holding up the pipeline. This all depends on the internal implementation of the cmdlets.
You can try to run these commands before the form is displayed or use a job to run the commands via the Job Tracker control set.
https://info.sapien.com/index.php/guis/ ... sive-forms
You can try to run these commands before the form is displayed or use a job to run the commands via the Job Tracker control set.
https://info.sapien.com/index.php/guis/ ... sive-forms
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.