Trying to remotely get/change a Default Printer registry value for the currently logged on user

0

When I run the following command I get a different value than what I see if I manually browse to the registry key as the logged on user...

psexec -u workgroup\xxx -p xxx \\7040-xxxx -i 4 cmd (reg query "HKCU\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows" /v Device)

tried -i (by itself, or 1, 2, 3, 4 for testing)

or if I try:

psexec -u workgroup\xxx \\7040-xxxx -i 5  RUNDLL32 PRINTUI.DLL,PrintUIEntry /y /n "Adobe PDF,winspool,Ne03:"

I get "Operation could not be completed (Error 0x00000709), double check the printer name and make sure that the printer is connected to the network."

Thank you!

registry
psexec
asked on Stack Overflow Apr 20, 2021 by user1245735

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0