<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Manage printer mappings on cloud-managed Windows devices	</title>
	<atom:link href="https://inthecloud247.com/manage-printer-mappings-on-cloud-managed-windows-devices/feed/" rel="self" type="application/rss+xml" />
	<link>https://inthecloud247.com/manage-printer-mappings-on-cloud-managed-windows-devices/</link>
	<description>Intune, Windows, Office 365, Microsoft 365, Azure, Automation</description>
	<lastBuildDate>Tue, 08 Apr 2025 19:30:48 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Peter Klapwijk		</title>
		<link>https://inthecloud247.com/manage-printer-mappings-on-cloud-managed-windows-devices/#comment-250901</link>

		<dc:creator><![CDATA[Peter Klapwijk]]></dc:creator>
		<pubDate>Tue, 08 Apr 2025 19:30:48 +0000</pubDate>
		<guid isPermaLink="false">https://inthecloud247.com/?p=11427#comment-250901</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://inthecloud247.com/manage-printer-mappings-on-cloud-managed-windows-devices/#comment-250663&quot;&gt;Philip Brown&lt;/a&gt;.

Entra joined devices can find DCs when they&#039;re on the same network and when DNS is configured correctly, also name resolution works fine. Directly on the same network, but also via VPN/ zero-trust solutions]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://inthecloud247.com/manage-printer-mappings-on-cloud-managed-windows-devices/#comment-250663">Philip Brown</a>.</p>
<p>Entra joined devices can find DCs when they&#8217;re on the same network and when DNS is configured correctly, also name resolution works fine. Directly on the same network, but also via VPN/ zero-trust solutions</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Philip Brown		</title>
		<link>https://inthecloud247.com/manage-printer-mappings-on-cloud-managed-windows-devices/#comment-250663</link>

		<dc:creator><![CDATA[Philip Brown]]></dc:creator>
		<pubDate>Thu, 03 Apr 2025 04:35:49 +0000</pubDate>
		<guid isPermaLink="false">https://inthecloud247.com/?p=11427#comment-250663</guid>

					<description><![CDATA[How on earth are your azure ad joined devices resolving internal DNS names? That is the issue I am currently having. Sure I can connect to local domain resources, but I have to use the IP address because there is no way to resolve the IP from the netbios name. Thanks,]]></description>
			<content:encoded><![CDATA[<p>How on earth are your azure ad joined devices resolving internal DNS names? That is the issue I am currently having. Sure I can connect to local domain resources, but I have to use the IP address because there is no way to resolve the IP from the netbios name. Thanks,</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Peter Klapwijk		</title>
		<link>https://inthecloud247.com/manage-printer-mappings-on-cloud-managed-windows-devices/#comment-207648</link>

		<dc:creator><![CDATA[Peter Klapwijk]]></dc:creator>
		<pubDate>Thu, 12 Oct 2023 14:07:31 +0000</pubDate>
		<guid isPermaLink="false">https://inthecloud247.com/?p=11427#comment-207648</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://inthecloud247.com/manage-printer-mappings-on-cloud-managed-windows-devices/#comment-207647&quot;&gt;Ľuboš Nikolíni&lt;/a&gt;.

As written in the post, we have to be creative :)
I think a lot of different approaches are used to overcome these kind of challenges.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://inthecloud247.com/manage-printer-mappings-on-cloud-managed-windows-devices/#comment-207647">Ľuboš Nikolíni</a>.</p>
<p>As written in the post, we have to be creative 🙂<br />
I think a lot of different approaches are used to overcome these kind of challenges.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ľuboš Nikolíni		</title>
		<link>https://inthecloud247.com/manage-printer-mappings-on-cloud-managed-windows-devices/#comment-207647</link>

		<dc:creator><![CDATA[Ľuboš Nikolíni]]></dc:creator>
		<pubDate>Thu, 12 Oct 2023 14:02:35 +0000</pubDate>
		<guid isPermaLink="false">https://inthecloud247.com/?p=11427#comment-207647</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://inthecloud247.com/manage-printer-mappings-on-cloud-managed-windows-devices/#comment-207646&quot;&gt;Ľuboš Nikolíni&lt;/a&gt;.

And I even pasted an incorrect code (facepalm)
It should be &#039;return $returnCode&#039;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://inthecloud247.com/manage-printer-mappings-on-cloud-managed-windows-devices/#comment-207646">Ľuboš Nikolíni</a>.</p>
<p>And I even pasted an incorrect code (facepalm)<br />
It should be &#8216;return $returnCode&#8217;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ľuboš Nikolíni		</title>
		<link>https://inthecloud247.com/manage-printer-mappings-on-cloud-managed-windows-devices/#comment-207646</link>

		<dc:creator><![CDATA[Ľuboš Nikolíni]]></dc:creator>
		<pubDate>Thu, 12 Oct 2023 14:00:47 +0000</pubDate>
		<guid isPermaLink="false">https://inthecloud247.com/?p=11427#comment-207646</guid>

					<description><![CDATA[Hello Peter, 
nicely done!
I also use a similar approach, however less elegant than yours: running a Remediation every few fours that will map the printer, if not already mapped.

function Set-NewPrinter {
[cmdletbinding()]
    param (
        [Parameter (Mandatory=$true)][string]$printerName,
        [Parameter (Mandatory=$true)][string]$printServer
    )

    $returnCode = 0 # successfully mapped - at least added a job that will map it

    $printer = &quot;\\&quot; + $printServer + &quot;\&quot; + $printerName
    Write-Verbose &quot;Printer: $printer&quot;
    $printerFound = Get-Printer -Name $printer -ErrorAction SilentlyContinue
    Write-Verbose &quot;Printer found: $printerFound&quot;

    if (-not $printerFound) {

        $pingtest = Test-Connection -ComputerName $printServer -Quiet -Count 1 -ErrorAction SilentlyContinue
        Write-Verbose &quot;Ping test: $pingtest&quot;

        if($pingtest){

            try { 
   
                $addPrinter = Add-Printer -ConnectionName $printer -AsJob -Verbose 
                Write-Verbose &quot;$printServer;$printerName;Add-Printer-AsJob&quot;
    
            } catch {
                Write-Verbose  &quot;Exception while adding printer.&quot; 
                Write-Verbose  $_ -ForegroundColor Red
                $returnCode = 99 # Exception
            }
        
        } else{
            Write-Verbose  &quot;$printServer is not reachable&quot;
            $returnCode = 50 # printServer is not reachable
        }

    } else {         # if (-not (Get-Printer -Name $printer))
        Write-Verbose &quot;$printServer;$printerName;printerFound&quot;
        $returnCode = 1 # OK, printer found - already mapped
    }

    return $errorCode

}

Set-NewPrinter -printServer MyPrintServer -printerName MyPrinter]]></description>
			<content:encoded><![CDATA[<p>Hello Peter,<br />
nicely done!<br />
I also use a similar approach, however less elegant than yours: running a Remediation every few fours that will map the printer, if not already mapped.</p>
<p>function Set-NewPrinter {<br />
[cmdletbinding()]<br />
    param (<br />
        [Parameter (Mandatory=$true)][string]$printerName,<br />
        [Parameter (Mandatory=$true)][string]$printServer<br />
    )</p>
<p>    $returnCode = 0 # successfully mapped &#8211; at least added a job that will map it</p>
<p>    $printer = &#8220;\\&#8221; + $printServer + &#8220;\&#8221; + $printerName<br />
    Write-Verbose &#8220;Printer: $printer&#8221;<br />
    $printerFound = Get-Printer -Name $printer -ErrorAction SilentlyContinue<br />
    Write-Verbose &#8220;Printer found: $printerFound&#8221;</p>
<p>    if (-not $printerFound) {</p>
<p>        $pingtest = Test-Connection -ComputerName $printServer -Quiet -Count 1 -ErrorAction SilentlyContinue<br />
        Write-Verbose &#8220;Ping test: $pingtest&#8221;</p>
<p>        if($pingtest){</p>
<p>            try { </p>
<p>                $addPrinter = Add-Printer -ConnectionName $printer -AsJob -Verbose<br />
                Write-Verbose &#8220;$printServer;$printerName;Add-Printer-AsJob&#8221;</p>
<p>            } catch {<br />
                Write-Verbose  &#8220;Exception while adding printer.&#8221;<br />
                Write-Verbose  $_ -ForegroundColor Red<br />
                $returnCode = 99 # Exception<br />
            }</p>
<p>        } else{<br />
            Write-Verbose  &#8220;$printServer is not reachable&#8221;<br />
            $returnCode = 50 # printServer is not reachable<br />
        }</p>
<p>    } else {         # if (-not (Get-Printer -Name $printer))<br />
        Write-Verbose &#8220;$printServer;$printerName;printerFound&#8221;<br />
        $returnCode = 1 # OK, printer found &#8211; already mapped<br />
    }</p>
<p>    return $errorCode</p>
<p>}</p>
<p>Set-NewPrinter -printServer MyPrintServer -printerName MyPrinter</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
