Categories
Welcome Center
Education & Development
Cyber Security
Virtualization
General
Certification Preparation
Project Management
Posts
Groups
Training Resources
Infosec
IT & Security Bootcamps
Practice Exams
Security Awareness Training
About Us
Home
General
Off-Topic
Microsoft printers and scripting
twodogs62
I am in need of a script that would install a ms printer locally but globally for all users of each workstation.
does anyone have a script they could share to get me started?
thanks
Find more posts tagged with
Comments
Mr.Network
Are you using a MS domain? If so i would recommend group policy for adding the printer and stick it to a OU.
gespenstern
Printui.dll is your friend here. Here's what I've written back in the days. Works in startup scripts. Replace with your own stuff printer/drivers names.
rundll32 printui.dll,PrintUIEntry /Xg /n"Canon iR2018 UFRII dLT" /q /f"%temp%\results.txt"
reg export "HKLM\SYSTEM\CurrentControlSet\Control\Print\Printers\Canon iR2018 UFRII LT" %temp%\canon.reg /y
if %errorlevel% == 0 goto end
if %processor_architecture% == AMD64 goto amd-64
regedit /S \\servergw\distr\prn-deploy\port.reg
net stop spooler
net start spooler
rundll32 printui.dll,PrintUIEntry /if /b "Canon iR2018 UFRII LT" /f "\\servergw\distr\driver\CNLB0R.inf" /r "IP_192.168.0.76" /m "Canon iR2018 UFRII LT" /z /u /q
goto end
:amd-64
regedit /S \\servergw\distr\prn-deploy\vista-7.reg
net stop spooler
net start spooler
rundll32 printui.dll,PrintUIEntry /if /b "Canon iR2018 UFRII LT" /f "\\servergw\distr\x64\driver\CNLB0RA64.inf" /r "192.168.0.76" /m "Canon iR2018 UFRII LT" /z /u /q
:end
Here is description in Russian, translate using google if it's unclear what script does.
leo_sosnine:
Quick Links
All Categories
Recent Posts
Activity
Unanswered
Groups
Best Of