Jump to content
Welcome to our new Citrix community!
  • 0

XD 7.19 - Remote PS SDK - Need to get HostedMachineId


Gonzalo Lopez

Question

Hi, I am writing a (remote) script to add a broker machine, but I need the HostedMachineId. I noticed in the web that browsing 'XDHyp:\Connections' like a regular windows unit, could get that information. This works fine inside the controller but fails using remote ps sdk. The connections with the controller is fine, i scripted a lot of things, but fail in this one.

Can you help me to find the HostedMachineId ??

 

This is the error i get

Get-ChildItem : El índice y la longitud deben hacer referencia a una ubicación en la cadena.
Nombre del parámetro: length
At line:1 char:1
+ Get-ChildItem -Path @('XDHyp:\Connections\')
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-ChildItem], ArgumentOutOfRangeException
    + FullyQualifiedErrorId : System.ArgumentOutOfRangeException,Microsoft.PowerShell.Commands
   .GetChildItemCommand

Link to comment

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...