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
Category: Virtualization
PowerShell: Use Connect-VIServer In Your Script
To use ‘Connect-VIServer’ cmdlet in your PowerShell script. You have to follow two steps: 1) Install VMware PowerCLI in your machine. It will register itself in PowerShell during the installation. 2) Use ‘Add-PSSnapIn VMware.VimAutomation.Core’ to add the registered PowerShell VMware Snapin to the current session.
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
Clean Up vCenter After Remove It From VMM
1) Remove the vSwitch and port group added by VMM. 2) Remove the attribute named ‘Cluster Invariant’ added by VMM in the VM summary tab. 3) Remove any roles added by VMM (including SCVMM in the name) in the role tab.
Remove vCenter from SCVMM
To remove a VMware VirtualCenter server from VMM In Administration view of the VMM Administrator Console, click Virtualization Managers. In the results pane, select the VirtualCenter server that you want to remove. In the Actions pane, under Virtualization Manager, click Remove. In Host Group view, right click the host group that contained the vCenter cluster … Continue reading Remove vCenter from SCVMM