I need to add something to my login script that checks to see if the user currently has a LPT1 or USB printer as their default. If not I need to map the user to a network printer.
Now I know I can easly see if they have a LPT1 printer using IF EXIST('LPT1:')
any idea what I can do with a USB printer? DOT4_001 is the port showing in windows and doesnt seem to want to work if I use that in place of LPT1:

Anyhelp?

Thanks
Dennis Tadin