I want to be able to get and set the default printer for users within Windows Terminal Services, but I don't see any relevant functions. (The closest I've seen is RDS User Config, but it doesn't appear to do what I need.) It can be done by name or by ID (however necessary). For example, something like this pseudocode:
For each user, u:
p = u.GetDefaultPrinter()
if p.name=='Inkjet' then:
p2 = GetPrinterByName('Laser')
u.SetDefaultPrinter( p2 )