Quantcast
Channel: Print/Fax forum
Viewing all articles
Browse latest Browse all 1589

Win2016 - Setting Branch Office Printing mode not being correctly displayed

$
0
0

I am having trouble displaying the Branch Office Print mode from the Get-Printer cmdlet 

We first set a printer to use Branch Office direct printing

Set-Printer -name sgbrcp1 -ComputerName <g class="gr_ gr_12 gr-alert gr_spell gr_disable_anim_appear ContextualSpelling ins-del multiReplace" data-gr-id="12" id="12">psrv</g> -RenderingMode BranchOffice

Then <g class="gr_ gr_42 gr-alert gr_spell gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="42" id="42">retreive</g> the status:

Get-Printer sgbrcp1 | ft name, renderingmode</g>

This returns:

name    RenderingMode
----    -------------
SGBRCP1              

The <g class="gr_ gr_53 gr-alert gr_spell gr_run_anim ContextualSpelling ins-del multiReplace gr-progress" data-gr-id="53" id="53">Renderingmode</g> property is being returned as empty. 

For reasons I do not understand, Get-Printer returns <g class="gr_ gr_67 gr-alert gr_gramm gr_run_anim Grammar multiReplace" data-gr-id="67" id="67">a MSFT_Printer</g> object in the Root\StandardCimV2 namespace, vs a Win32_PrinterObject. It appears that the two object types are shadows of the other, although Win32_Printer is defined in the MSDN documentation whereas I can't find MSFT_Printer definition.

I know that the Rendering mode is not actually a property of the underlying MSFT_PrinterObject, but a reference to the instance properties:

$p.psbase.CimInstanceProperties['Renderingmode'] where $p is the MSFT_Printer instance for a printer).

If I look at that, I see:

<g class="gr_ gr_99 gr-alert gr_gramm gr_run_anim Style multiReplace" data-gr-id="99" id="99">Name            :</g> RenderingMode
Value            : 
CimType        : UInt32
<g class="gr_ gr_112 gr-alert gr_gramm gr_run_anim Style multiReplace" data-gr-id="112" id="112">Flags             :</g> Property, NotModified, NullValue
IsValueModified : False

So my question is: how can I set rendering mode so that is actually displays? And why isn't the value being returned from the Get-Printer Cmdlet?

Given that Get-Printer is failing, how else can I see that Branch Office printing is setup (preferably through automation)?




Thomas Lee <DoctorDNS@Gmail.Com>



Viewing all articles
Browse latest Browse all 1589

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>