Thursday, October 5, 2017
Saturday, September 16, 2017
Have yourself email with all the Powered Off in your environment even if they are in different vCenter Servers. Best thing, you will get the information of user account used to Poweroff and how old is this powered off VM. Reclaim space in Datastore and save something for employer. Looking forward to hear from you guys.
Friday, September 2, 2016
Finally wait is over and here is the interactive PowerCLI scipt to increase any hard disk (VMDK) of Virtual Machine online w/o login into vCenter Server or Windows Guest VM.
I have tested it on Powershell 5.0, PowerCli 6.3, vSphere 6.0, Windows 2003, Windows 2008, Windows 2012.
After executing this script, there will be a popup asking for vCenter Credetials and Windows Guest Credentials (obviously with enough permission to increase disk/s).
Combo box will automatically populate all the VMs from vCenter inventory as soon as you click on login so please be patience after pressing Login button.
You can select the any of disk populated in Grid View row and put the increased size of the disk (it will choose to ignore if you put less than the existing size of disk ;) ). It will help you to figure out the relation of VMDK and Drive Letter...cool han?
And voilla, disk increased in VM configuration and within guest system to use.
Note: you need to login into Windows 2003 VM to increase the C Drive (boot partition). In other words, it will increase the disk size of System Partition in VM Configuration but leave it to you increase it within Windows.
Tuesday, August 16, 2016
In continuation of my first script, I am again writing another script to play around with VMware Virtual Machine's Snapshot but with a GUI and Take/Commit(Remove) snapshot functionality.
There are many scripts available on Internet to report/manage VM's Snapshot automatically so what does this has to offer. Here couple of things which can be taken care with the help of this GUI Script.
1. Connect the VMware vCenter Server w/o VI Client or Webclient
2. Single console to list most of the required information
3. Highlights VM's Name in case of low disk space (Yellow if less than 50Gig & Red if less than 25Gig free in the affected Datastore). It helps to identify the Datastores with critical status.
4. Anyone can use this after single session (helps to offload the task w/o risk)
5. Not only Snapshots but VM's information is also available including RDM
6. Virtual Machine button populates information about each registered VM in columns VMName, Host, Cluster, PowerState, ToolsStatus, Snapshots, RDMs, MemoryMB, ProvisionedGB, DatastoreName, DatastoreCapacity, DatastoreFreeSpace, OS
7. Snapshot button populates information about all the Snapshots of registered VM in columns VMName, SnapshotName, SizeInGB, CreatedTime, AgeInDays, Datastore, DatastoreCapacity, DatastoreFreeSpace, OperatingSystem, CreatedByLogin
8. Datastore information is available even if VM Configuration (VMX) or Disks are attached from multiple Datastores.
9. Buttons get disable and enable to avoid confusion & mistakes
10. Manual credentials and Use Windows Login Credentials, both the options are available
11. Status bar reflects the status of the Commands or Warning
12. Use Alt+<Highlighted Letter> if you wanna avoid using Mouse
1. .Net Framework 4.5
2. Powershell 5.0 (Not tested on earlier versions)
3. PowerCLI 6.0 U3 (Not tested on earlier versions)
4. vCenter connectivity (required ports shouldn't blocked)
Give it a shot and looking forward to hear from you