{"id":630,"date":"2016-12-08T13:28:14","date_gmt":"2016-12-08T12:28:14","guid":{"rendered":"http:\/\/vblog.hochsticher.de\/?p=630"},"modified":"2016-12-08T13:30:50","modified_gmt":"2016-12-08T12:30:50","slug":"save-your-credentials-for-viserver-connections","status":"publish","type":"post","link":"https:\/\/vblog.hochsticher.de\/?p=630","title":{"rendered":"Save your credentials for VIServer connections"},"content":{"rendered":"<p>Don&#8217;t put your credentials into the PowerCLI scripts! There is an option to store your credentials on the Host.<\/p>\n<p><!--more--><\/p>\n<p>Instead&nbsp;of plain text connection like:<\/p>\n<pre class=\"lang:default decode:true\">Connect-VIServer -Server vCenter.mydomain.org \u2013User MyUser \u2013Password \u201cmy favorite password\u201d<\/pre>\n<p>Put your credentials into the store with:<\/p>\n<pre class=\"lang:default decode:true \">New-VICredentialStoreItem -Host vCenter.mydomain.org \u2013User MyUser \u2013Password \u201cmy favorite password\u201d<\/pre>\n<p>Once you&nbsp;stored this, you have to write only:<\/p>\n<pre class=\"lang:default decode:true \">Connect-VIServer -Server vCenter.mydomain.org<\/pre>\n<p><em>Connect-VIServer check&#8217;s first the credential store and uses it<\/em> \ud83d\ude09<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Don&#8217;t put your credentials into the PowerCLI scripts! There is an option to store your credentials on the Host.<\/p>\n","protected":false},"author":1,"featured_media":637,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[4,10],"tags":[],"class_list":["post-630","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powercli","category-vcenter"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=\/wp\/v2\/posts\/630","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=630"}],"version-history":[{"count":5,"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=\/wp\/v2\/posts\/630\/revisions"}],"predecessor-version":[{"id":636,"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=\/wp\/v2\/posts\/630\/revisions\/636"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=\/wp\/v2\/media\/637"}],"wp:attachment":[{"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=630"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=630"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vblog.hochsticher.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=630"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}