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

How to import PVS target devices into Citrix Site with Powershell to make use of them within machine catalogs


Piotr Ostrowski

Question

Everything works when it is done within Studio, manually, but the goal is to have this scripted within powershell.

 

Maybe it is really easy, but unfortunatelly I can not find an answer....

There is a PVS Machine Catalog, I'm trying to add machines there. There is a hosting connectivity. There are already Target Devices, and their domain accounts.

 

I've stuck with finding a way / commandlet which are importing the target devices from the PVS server (which is emulating this particular operation).

 

pvsMachineCatalogPowerManaged.thumb.png.6d15fddfc7b68230b64ba0ecf32b05e0.png

 

So the question is how to import the target devices from the PVS server. or how to find out what are the commandlets / magic used by this mmc to make this happen ?

Machines are power managed, and it is throwing an error that they can not be added to machine catalog within the following command

 

It seems there has to be something which is run upfront the following command:

 

New-BrokerMachine -MachineName $testTargetDevice `
                  -CatalogUid (Get-BrokerCatalog -Name $brokerCatalog['Name']).Uid `
                  -HypervisorConnectionUid (Get-BrokerHypervisorConnection).Uid `
                  -HostedMachineId (Get-BrokerMachine -MachineName $testTargetDevice).HostedMachineId `
                  -Verbose

 

Does anybody have any idea ?

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...