I'm trying to install a network printer for all users on a workstation. Currently we have a login.bat that is executed each time a user logs in to maps some drives. It looks like this:
net use f: /del
net use g: /del
net use h: /del
net use m: /del
net use n: /del
net use s: /del
net use f: /home
net use g: \\%servername%\vol1
net use h: \\%servername%\shared
net use n: \\%servername%\apps
copy \\%servername%\shared\hosts %windir%\system32\drivers\etc\
I want to add come code to this file to add a network printer and make it the default printer. Many of our users move around and I don't want to install a printer each time someone is at a new workstation. We are running Windows Server 2003 on our Domain Controller. Each workstation is running Windows XP. Thanks for the help.
net use f: /del
net use g: /del
net use h: /del
net use m: /del
net use n: /del
net use s: /del
net use f: /home
net use g: \\%servername%\vol1
net use h: \\%servername%\shared
net use n: \\%servername%\apps
copy \\%servername%\shared\hosts %windir%\system32\drivers\etc\
I want to add come code to this file to add a network printer and make it the default printer. Many of our users move around and I don't want to install a printer each time someone is at a new workstation. We are running Windows Server 2003 on our Domain Controller. Each workstation is running Windows XP. Thanks for the help.