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?
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)
Please log in to answer
Posted by:
Disman_ca
20 years ago
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]")
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.
so that the conversation will remain readable.