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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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]")
Answered 05/20/2004 by: Disman_ca
Senior Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity