I want to automatically run a PowerCLI script every morning.
Note- This assumes….
- The script loads the Snapin-
Add-PSsnapin VMware.VimAutomation.Core - The script has the vCenter specified
Connect-VIServer “vc-fqdn” - The service account has local access on the windows 2012 server to run a scheduled task.
- The server account is part of a vCenter role that has permission to read/make any changes.