After searching through the site I can't find anywhere any code that will let me set the default printer for an NT4 Workstation using VB5!

I want something along the lines of

If machinename = "Rm10-17" then
setdefaultprinter = "Room 10 printer"
EndIF

Any ideas?

Simon