VMware Cloud Community
NGSI
Contributor
Contributor
Jump to solution

Script - Rules DRS

Good afternoon, with the PowerCLI is possible to activate and deactivate a DRS rule?

Example: I would like to disable a DRS rule on Wednesdays, Thursdays and Fridays.

Regards.

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Alan did a post on that, see Running a PowerCLI Scheduled task


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

Reply
0 Kudos
3 Replies
LucD
Leadership
Leadership
Jump to solution

Yes, with the Set-DrsRule cmdlet you can enable/disable a rule.

You could use Windows Task scheduler to run the scripts at the desired times.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
NGSI
Contributor
Contributor
Jump to solution

Thank you. I have a Vcenter Appliance and is now only install vSphere PowerCLI, execute commands and put in task scheduler of a Windows Server for example?

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

Alan did a post on that, see Running a PowerCLI Scheduled task


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos