{"id":261,"date":"2018-01-22T12:50:18","date_gmt":"2018-01-22T12:50:18","guid":{"rendered":"http:\/\/labiol.xyz\/?p=261"},"modified":"2018-01-22T12:51:07","modified_gmt":"2018-01-22T12:51:07","slug":"powercli-dodawanie-credenitiali-na-stale-dla-uzytkownika","status":"publish","type":"post","link":"https:\/\/www.labiol.xyz\/index.php\/2018\/01\/22\/powercli-dodawanie-credenitiali-na-stale-dla-uzytkownika\/","title":{"rendered":"PowerCLI, dodawanie &#8220;credentials&#8221; na sta\u0142e dla u\u017cytkownika."},"content":{"rendered":"<p>Dla skrypt\u00f3w wywo\u0142ywanych task schedulera albo z konta u\u017cytkownika k\u0142opotliwe jest wo\u0142anie za ka\u017cdym logowaniem do vCenter danych: u\u017cytkownika i has\u0142a.<\/p>\n<p>Z tego wzgl\u0119du wygodnie jest u\u017cy\u0107 specjaln\u0105 fukcj\u0119: New-VICredentialStoreItem. Funkcja ta utrzymuje dane logowania (w postaci zaszyfrowanej &#8211; ale niczym wyrafinowanym) w profilu u\u017cytkownika.<\/p>\n<p>&nbsp;<\/p>\n<p>Proste u\u017cycie:<\/p>\n<pre>New-VICredentialStoreItem -Host 192.168.10.10 -User \"Andrey\" -Password \"my favorite password\" \r\n<\/pre>\n<p>Ciekawy blog w temacie:<br \/>\n<a href=\"https:\/\/blogs.vmware.com\/PowerCLI\/2011\/11\/have-you-seen-powerclis-credential-store-feature.html\">https:\/\/blogs.vmware.com\/PowerCLI\/2011\/11\/have-you-seen-powerclis-credential-store-feature.html<\/a><br \/>\nDokumentacja<br \/>\n<a href=\"https:\/\/www.vmware.com\/support\/developer\/windowstoolkit\/wintk40u1\/html\/New-VICredentialStoreItem.html\">https:\/\/www.vmware.com\/support\/developer\/windowstoolkit\/wintk40u1\/html\/New-VICredentialStoreItem.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dla skrypt\u00f3w wywo\u0142ywanych task schedulera albo z konta u\u017cytkownika k\u0142opotliwe jest wo\u0142anie za ka\u017cdym logowaniem do vCenter danych: u\u017cytkownika i has\u0142a. Z tego wzgl\u0119du wygodnie jest u\u017cy\u0107 specjaln\u0105 fukcj\u0119: New-VICredentialStoreItem. Funkcja ta utrzymuje dane logowania (w postaci zaszyfrowanej &#8211; ale niczym wyrafinowanym) w profilu u\u017cytkownika. &nbsp; Proste u\u017cycie: New-VICredentialStoreItem -Host &hellip; <\/p>\n","protected":false},"author":1,"featured_media":244,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-261","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vmware"],"_links":{"self":[{"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/posts\/261","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/comments?post=261"}],"version-history":[{"count":2,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/posts\/261\/revisions"}],"predecessor-version":[{"id":263,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/posts\/261\/revisions\/263"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/media\/244"}],"wp:attachment":[{"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/media?parent=261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/categories?post=261"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.labiol.xyz\/index.php\/wp-json\/wp\/v2\/tags?post=261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}