

The scripts are located in the "Scripts" folder in the PowerCLI installation directory and their names have the following format:
#Hard disk encrypt linux virtualmachine windows
You can modify these scripts or add new ones to support operating systems different than Windows and RHEL 5, and more specific disk resizing scenarios. It is achieved by scripts, provided with the VMware PowerCLI installation. Resizing guest partitions is supported only for Windows OS and for ext3 partitions on RHEL 5. On Linux, you can expand only the last partition. If you do not specify a partition, the last partition of the disk is resized. On Windows, you can specify which partition you want to resize by using the Partition parameter. Specifies the partitions you want to resize. Specifies the user name you want to use for authenticating with the host.
#Hard disk encrypt linux virtualmachine password
Specifies the password you want to use for authenticating with the host. Specifies the PSCredential object that contains the credentials you want to use for authenticating with the host. When you resize more than one disks using a helper virtual machine, the disks are resized one by one causing the helper machine to power on and off for each virtual machine, and this might slow down the cmdlet's performance. When you use a helper virtual machine, all virtual machines associated with the disk and the helper virtual machine must be powered off before expanding the disk. LVM (logical volume manager) for Linux is not supported and Linux guest system disks cannot be expanded. Specifies a helper virtual machine you want to use when expanding a Windows virtual machine system disk.

Specifies the username you want to use for authenticating with the guest operating system. Specifies the password you want to use for authenticating with the guest operating system. Specifies the PSCredential object that contains the credentials you want to use for authenticating with the guest operating system. If the storage policy is an encryption policy, the hard disk is encrypted. Specifies the StoragePolicy that you want to attach to the specified hard disk. For more information about the RunAsync parameter, run "help About_RunAsync" in the VMware PowerCLI console. In this mode, the output of the cmdlet is a Task object. Indicates that the command returns immediately without waiting for the task to complete. If StoragePolicy is not specified, the default encryption storage policy "VM Encryption Policy" is used. Specifies the key provider that you want to use for the encryption key while encrypting the specified hard disk. This parameter accepts Thin, Thick, and EagerZeroedThick values. This parameter is applicable only when moving a virtual machine disk to a different datastore by using the Datastore parameter. Specifies the storage format of the relocated hard disk. For more information about default servers, see the description of the Connect-VIServer cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. Specifies the vCenter Server systems on which you want to run the cmdlet. Specifies a SCSI controller to which you want to attach the hard disk. If you are connected to a vCenter Server 2.5 or ESX 3.5, the size of the disk can only be increased and the CapacityGB parameter is discarded if its value is less than the current disk size. If you are connected to a vCenter Server 2.0 or ESX 3.0, the size of the disk cannot be changed and the CapacityGB parameter is discarded. Specifies the updated capacity of the virtual disk in gigabytes (GB). Moving a hard disk attached to a virtual machine to a different datastore is only supported on vCenter Server. Specifies the datastore to which you want to move the specified hard disk. These values do not work with snapshots and are not supported on ESXi 3.5 and later. The NonPersistent and Undoable values are deprecated and scheduled for removal. This parameter is supported only when the disk type is rawVirtual or flat. The valid values are Persistent, NonPersistent, IndependentPersistent, IndependentNonPersistent, and Undoable. If you are connected to a vCenter Server 2.5 or ESX 3.5 server, the size of the disk can only be increased and the CapacityKB parameter is discarded if its value is less than the current disk size.

If you are connected to a vCenter Server 2.0 or ESX 3.0 server, the size of the disk cannot be changed and the CapacityKB parameter is discarded. Specifies the updated capacity of the virtual disk in kilobytes (KB).

Specifies the virtual hard disk you want to configure.
