项目作者: acnrayd

项目描述 :
PS script to change computer name to a random one + renew DHCP lease
高级语言: PowerShell
项目地址: git://github.com/acnrayd/vm_template_staging_ps.git
创建时间: 2019-09-21T13:37:01Z
项目社区:https://github.com/acnrayd/vm_template_staging_ps

开源协议:

下载


vm_template_staging_ps

PS script to change computer name to a random one + renew DHCP lease

I have created VM templates for Windows Server OS on my ESXi environment for rapid testing purposes. But after creating a new VM from a template, I had two main problems:
1) Because all VM’s created from this template have same computer name, it creates conflicts.
2) Sometimes I had IP conflicts as well, because all VM’s created from same template still have the same IP.

So basically this Powershell script just randomises a new computer name, changes it, also renews the DHCP lease, restarts the computer and completes the staging for my environment. Simple but useful.