Synopsis:
Script should allow user to add D:\ drive to VM of their choice (with size of their choice) without requiring GUI intervention in Virtual Center or Windows Operating System
Note: this is not a stable script, and is only being published now to avoid deletion from CodePlex
Objectives (Script should):
-
Prompt user for Virtual Machine name and required D:\ size
-
Validate that indicated Virtual Machine exists, is remotely accessible and does not already have a D:\ volume
-
Script should allow user to pass in name of Virtual Machine @runtime
-
...be smart enough to know which Cluster given VM is a part of
-
...present user with suggested datastore location and ask for confirmation (a check should be done that ensures that chosen datastore still has at least 50 GB available -- if there are multiple candidates
'proposed' candidate should be randomized)
-
Remotely access Virtual Machine OS , automatically write disk signature and format volume with label, "Applications"
-
-
Support --help and --examples capability
Requirements:
-
User must have Vmware vSphere PowerCLI installed on OS where script is executed
-
User must have rights to vCenter
-
Virtual Machine being given a D:\ drive must be online (with permanent IP address) and be psexec accessible