VDI optimization script (part 2)