I have a classroom which I do not wish to image but just delete all virtual hard drives throughout - I have a server and all clients are joined to its domain. Clients are named Cli01 through Cli18 and are accessbile through the admin share \\Cli01\C$ etc from that server.
How do I write a script which cycles through all 18 machines and deletes every VHD (Virtual Hard Drive) file from the PC please? I would prefer a regular batch file but powershell is fine if a regular BAT file cannot do this task.
I look forward to hearing from you.
Server OS is Server 2003
Client OS is XP SP3