Skip to content

Instantly share code, notes, and snippets.

View Gremgoll's full-sized avatar

Gremgoll Gremgoll

View GitHub Profile
@Gremgoll
Gremgoll / vm-rename
Last active April 18, 2022 18:16 — forked from raarts/vm-rename
Script to rename a virtual machine in ESXi 6
#!/bin/sh
#
# shell script to rename a virtual machine in ESXi
#set -x
if [ $# -ne 4 ]; then
echo "Usage: $0 VOLNAME DIRNAME OLDNAME NEWNAME
where VOLNAME is the volume name, e.g. datastore1,
DIRNAME is the the name of the directory of the virtual machine,