Open shaancool1234 opened 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
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.
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
Hi Alan,
Could you please help me, Scheduled task is not running as it is stuck for asking password.
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 :)
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.