Tell me more ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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:

Foo: REG_MULTI_SZ: 

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.

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.