Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 209003

Re: Scheduling vCheck (for VMware) Daily report via windows (2016) Task Scheduler.

$
0
0

Hi LucD,

 

Good Morning !!

 

Yes, I tried even this, but it still the same, it pops to put the VC credentials.

 

What I did is, I removed the file and then ran the cmd to create a new and it did not work, and then I used "New-VICredentialStoreItem" but still the same.

 

below are the lines which are modified to file "00 Connection Plugin for vCenter" can cross check pls if this is correct.

 

# Start of Settings

# Please Specify the address (and optional port) of the vCenter server to connect to [servername(:port)]

$Server = "horsv1vcavp01.hor.michelin.com"

$Creds = Get-VICredentialStoreItem -Host $VIServer -File "E:\Rachappa\OMSR_A1_App\Test\vCheck-vSphere-master\vcpwd.xml"

$VIConnection = Connect-VIServer -Server $VIServer -User $Creds.User -Password $Creds.Password-Port $Port

# End of Settings

 

and I get the below error when I run he above code.


Viewing all articles
Browse latest Browse all 209003

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>