VMware Horizon Community
ascheale
Contributor
Contributor
Jump to solution

mass updating manual pools by script

hi,

i need to update about 200 manual pools to change default protocol from rdp to pcoip.

I know the syntax with powershell:

PS C:\Program Files\VMware\VMware View\Server\bin> update-manualpool -pool_id myPool1 -defaultprotocol pcoip

I have myPool1 to myPool199 and want to scipt this ....

Can you please help.

Sorry but i am not a programmer

Alex

Reply
0 Kudos
1 Solution

Accepted Solutions
cgrubbe
Enthusiast
Enthusiast
Jump to solution

I use this basic code to run a refresh on a bunch of pools that have a name that starts with certain characters.  Should iterate through all of your pools and run the CmdLet that you want to run.  As always test it first as your mileage may vary. Smiley Happy

foreach($pool in (Get-Pool -pool_id <INSERT POOL NAME OR FIRST PART OF NAME>*)){
<CMDLET YOU WANT TO USE> -pool_id $pool.pool_id | <COMMAND YOU WANT TO RUN>
}

-Chris

View solution in original post

Reply
0 Kudos
3 Replies
cgrubbe
Enthusiast
Enthusiast
Jump to solution

I use this basic code to run a refresh on a bunch of pools that have a name that starts with certain characters.  Should iterate through all of your pools and run the CmdLet that you want to run.  As always test it first as your mileage may vary. Smiley Happy

foreach($pool in (Get-Pool -pool_id <INSERT POOL NAME OR FIRST PART OF NAME>*)){
<CMDLET YOU WANT TO USE> -pool_id $pool.pool_id | <COMMAND YOU WANT TO RUN>
}

-Chris

Reply
0 Kudos
ascheale
Contributor
Contributor
Jump to solution

cool- this works !

Thx a lot

Alex

Reply
0 Kudos
cgrubbe
Enthusiast
Enthusiast
Jump to solution

Happy to hear it worked.  If you have the time and inclination there was a great video in the View Bootcamp that talks about automating View with Powershell.

http://communities.vmware.com/community/vmtn/desktop/view/bootcamp/video_7

-Chris

Reply
0 Kudos