Removing unnecessary hardware from virtual machines is always a good practice and it usually we found that creating new VMs we left hardware like serial and parallel ports configured.
With the functions from the file you can remove serial and parallel ports from a VM, recommended to perform with powered off VMs. It can be added to a recursive scripts and remove cluster wide or even Datacenter wide all serial and parallel ports from the virtual machines.
As all PowerCLI scripts it requires a connection to a vCenter.
[wpfilebase tag=file id=7 /]