alanrenouf / vCheck-vSphere

vCheck Daily Report for vSphere
MIT License
735 stars 326 forks source link

scheduled vCheck Report is not working #560

Open shaancool1234 opened 7 years ago

shaancool1234 commented 7 years ago

I scheduled vCheck report for weekly. It is running since 2 days seems looking for credentials.

when I set up this it asked for credentials seems credentials not getting saved. Please help me to fix this.

shaancool1234 commented 7 years ago

Hi Everyone, Please reply how to fix this credentials issue as VCheck ask for the password each time due to not working with scheduled task

isjwuk commented 7 years ago

You can setup saved credentials for the user running the scheduled task to allow them access to your vCenter using the PowerCLI cmdlet New-VICredentialStoreItem

Once you've done this (when logged in as that user who will be running the scheduled task) then you shouldn't get the additional prompt for credentials when running the task.

https://www.vmware.com/support/developer/windowstoolkit/wintk40u1/html/New-VICredentialStoreItem.html

shaancool1234 commented 7 years ago

It is not useful as you have to login to the server..so no point of making schedule task as account should be logged in on to server during task run

shaancool1234 commented 7 years ago

Hi Alan,

Could you please help me, Scheduled task is not running as it is stuck for asking password.

Sneddo commented 7 years ago

As @isjwuk says, you only need to run the script once as the user you are running the scheduled task as. You can just "Run As..." Powershell with this account. Once the credential is stored, the scheduled task will work without password prompt.

Otherwise, if you use AD authentication to vCenter, fix your single signon so it uses passthrough auth :)