i think this is possible in group policy sa windows, it is available since windows 2000...

there was a WSH script ani sauna nga makita sa MSDN... try lang search didto...