VMware View – IP Address Release
When utilizing DHCP assigned IP Addresses in a VMware View environment, it is possible to exhaust an entire DHCP scope when either the lease period is too long or when you need to execute a mass desktop activity like a Recompose or Refresh on a large pool. A simple approach to force all desktops to release their IP Address on shutdown is to utilize a GPO Shutdown Script that simply calls the IPConfig /release command. This is a very raw approach, but it does work for the purpose.
- Create or modify an existing GPO which is linked to the OU where your Virtual Desktops are created in Active Directory.
- Under Computer Configuration in the GPO Settings select Policies >Windows Settings > Scripts (Startup/Shutdown)
- Select Shutdown
- Select Add
- Select Browse
- Right-click in the folder window and create New > Text Document
- Provide a name such as IP_Release.bat
- Edit the file and enter the following:
C:\Windows\System32\cmd.exe /c ipconfig /release
- Select the file and Open
- Select OK
Once this is in place, all future desktops on shutdown will release their IP Address and return it to the DHCP scope. This is very useful with Floating Pools or Non-Persistent Desktops.


