PowerCLI, dodawanie “credentials” na stałe dla użytkownika.

VMware
1

Dla skryptów wywoływanych task schedulera albo z konta użytkownika kłopotliwe jest wołanie za każdym logowaniem do vCenter danych: użytkownika i hasła.

Z tego względu wygodnie jest użyć specjalną fukcję: New-VICredentialStoreItem. Funkcja ta utrzymuje dane logowania (w postaci zaszyfrowanej – ale niczym wyrafinowanym) w profilu użytkownika.

 

Proste użycie:

New-VICredentialStoreItem -Host 192.168.10.10 -User "Andrey" -Password "my favorite password" 

Ciekawy blog w temacie:
https://blogs.vmware.com/PowerCLI/2011/11/have-you-seen-powerclis-credential-store-feature.html
Dokumentacja
https://www.vmware.com/support/developer/windowstoolkit/wintk40u1/html/New-VICredentialStoreItem.html

1 Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Linux
Migrate WordPress site to another hosting service.

IntroductionThis article details the migration of WordPress site (exactly this site you are now on) from one service provider to Amazon Lightsail. There might be various reason to do that (mine is outlined below) but in general I hope to share the message that especially with WordPress, migration can be …

VMware
VMware Workstation and Fusion can be installed and use for free (even for the enterprise)

For a while now, the VMware Workstation (and Fusion for MacOS) can be used without any additional fee for Personal use. That was a great Broadcom news and nice gesture from that software vendor. Recently Broadcom announced that the software will be available for all, even the commercial sector. This …

Linux
Salt, VMware implementation – part 1, introduction

As every IT administrator knows, the infrastructure (meaning storages, compute, VMware virtualisation stack) is just a fundaments to run various operating systems (OS) and finally (containerized) application. Therefore, installation of (let’s call it) infrastructure in the datacenter (SDDC), in that sense is just the beginning of the adventure. No wonder, …