/build/static/layout/Breadcrumb_cap_w.png

Installing Local Printer via GPO

I have created a command line using the; rundll32 printui.dll,PrintUIEntry [options] [@commandfile]

This line works, running it logged in.

However running the exact same line in a .MSI distributed via GPO per Machine Level is non doable. The same is the cause running the commandline in GPO Startup Script, is this even possible?

0 Comments   [ + ] Show comments

Answers (1)

Posted by: Disman_ca 19 years ago
Senior Yellow Belt
1
Try this vbscript which will create a new process on the computer. Maybe it is timing out.

Dim strComputer
objWMIService
Dim Oprocess
strComputer = "."

Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set Oprocess = objWMIService.Get("win32_process")
Oprocess.create("rundll32 printui.dll,PrintUIEntry [options] [@commandfile]")
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ