PowerShell: Using Credential File For Connect-VIServer


To run a scheduled PS script against the vCenter server, you either hard code the credential in your script or use the credential file. Needless to say that credential file is better in terms of security, as the password is encrypted in the file. Two steps to complete: 1) Create a credential file. Add-PSSnapIn VMware.VimAutomation.CoreNew-VICredentialStoreItem … Continue reading PowerShell: Using Credential File For Connect-VIServer

Moving VM to Folder in vCenter


To make things more organized in vCenter, I use folders to categorize the servers with the same functions together. The folders can be Production with subfolders SQL server, Linux server … But somehow, two servers refused to move. Everything looks fine, they just did not want to move to a new folder. After being frustrated … Continue reading Moving VM to Folder in vCenter