Page 1 of 1

setting the property "ha_sync_traffic_share"

Posted: Mon Nov 13, 2017 5:29 pm
by YoYo
I'm trying to write a script in PowerShell which allows me to set the following property:

$device.GetPropertyValue("ha_sync_traffic_share")

I need to automate changing the sync priority when reseeding... any ideas?

Re: setting the property "ha_sync_traffic_share"

Posted: Mon Nov 13, 2017 7:58 pm
by Boris (staff)
YoYo,

Use the following:

Code: Select all

$device.SyncTrafficShare = 10
$device.Refresh()
It accepts an integer value, so feel free to adjust as needed.
If you want to explore further, use:

Code: Select all

$device | Get-Member
to see the available parameters to be retrieved or set.

Re: setting the property "ha_sync_traffic_share"

Posted: Mon Nov 13, 2017 10:19 pm
by YoYo
I'm receiving:
"setting "SyncTrafficShare": "The property 'SyncTrafficShare' cannot be found on this object."
I'm using v8.0.0 Build 10927

Re: setting the property "ha_sync_traffic_share"

Posted: Tue Nov 14, 2017 11:09 am
by Boris (staff)
I tested this on the latest build, which is 11456. I would suggest you upgrading StarWind and try changing this value.