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> RenderingModeValue : 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, NullValueIsValueModified : FalseSo 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>