Score:0

printer settings import not working as system account

ee flag

I'm trying to import the settings for printers via SCCM that runs installations in the system account. Manually as User with Administrator rights, it's working as expected. Manually as system account or over SCCM, it's not working.

Command I use:

rundll32 printui.dll,PrintUIEntry /Sr /n "Zebra" /a "C:\Temp\Zebra.dat"

The file is where it's expected, the printer has the correct name, and it works as admin but not as system account. Importing with the powershell "get-printconfiguration" / "Set-PrintConfiguration" doesn't work since it doesn't save the settings I need to transfer. I don't have the possibility to run the script as an administrator or change settings on sccm, so those aren't solutions for my case. I would have the ability to run it in the current user context, if there might be a possible way here, but as far as I checked just importing it as user doesn't work because of rights.

Any ideas how this can work as system account?

cn flag
Running manually as system, does it return to the command prompt and not provide an error or message?
Christian Leber avatar
ee flag
I start it in the command prompt as system and it doesn't give an error message. I can force an popup error message by entering wrong data, for example with a file that doesn't exist.
Score:0
ee flag

I found an workaround that works for me:

rundll32 printui.dll,PrintUIEntry /Sr /n "Zebra" /a "C:\Temp\Zebra.dat" u

if I import like this as user, the import works as user and the settings I need are there. This makes me think that I need a parameter to import as system to apply it for all users, but I haven't found out if that exactly is the problem and what I would need to fix it with the system account. But for what I need it's "Good enough" :)

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.