In an workgroup environment i must create a script that gets the name of
each client local machine and then it should create a folder with that
machine name in the server. If already exists the folder for ie "xpto" the
script shouldn't do nothing.

Another doubt remains once i'm working in an workgroup environment should i
put this script running through a schedule task or by service?... If the
second choice is better how can I do that?

Ricky