Get-BrokerMachine : Failed to connect to back-end server 'localhost' on port 80 using binding WSHttp. when using Citrix Cloud powershell from command line (poweshell.exe calling a ps1 script)
Get-BrokerMachine : Failed to connect to back-end server 'localhost' on port 80 using binding WSHttp. when using Citrix Cloud powershell from command line (poweshell.exe calling a ps1 script)
Script works from powershell ISE, but if i save the script as a PS1 file and call it from powershell.exe from within a .net app and set UseShellExecute = false it fails
Question
Magnar Johnsen1709162108
Get-BrokerMachine : Failed to connect to back-end server 'localhost' on port 80 using binding WSHttp. when using Citrix Cloud powershell from command line (poweshell.exe calling a ps1 script)
Script works from powershell ISE, but if i save the script as a PS1 file and call it from powershell.exe from within a .net app and set UseShellExecute = false it fails
Script:
asnp citrix.*
Set-XDCredentials -ProfileType CloudApi -CustomerId "xxxx" -APIKey xxxx -SecretKey xxxx
Get-XDAuthentication
$vm = Get-BrokerMachine -HostedMachineName xxxx
$vm.SessionCount
Calling the script with UseShellExecute = True it works, but then I can't capture the output of the script
Link to comment
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now