I'm trying to use rpcclient to duplicate printers' registry settings, and while the other registry types seem to work, trying to set a REG_MULTI_SZ value doesn't.
Example working command:
rpcclient localhost -U printadmin -c 'setprinterdata "Printer 1" string "Foo" "Bar"'
A subsequent enumdata command shows the value has been updated:
Foo: REG_SZ: Bar
Every way I can think of using "multistring" doesn't seem to work. For example, this command:
rpcclient localhost -U printadmin -c 'setprinterdata "Printer 1" multistring "Foo" "Bar A"'
It returns normally (no error messages), but a subsequent enumdata command shows:
Does anyone have an idea as to what I'm doing wrong or how I'd go about figuring it out?
I can't seem to find a single example of someone doing this successfully. If it helps, rpcclient is version 3.6.3 on a 64bit Ubuntu server.