<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Printer Remapping in Windows 7 Deployments</title><link>http://blogs.technet.com/b/deploymentguys/archive/2013/02/12/printer-remapping-in-windows-7-deployments.aspx</link><description>One of the challenges that I frequently come across is the shift from 32-bit operating system environments to 64-bit operating system environment during deployment projects. Windows 7 ships as both 32-bit as well as 64-Bit, with the 64-bit version becoming</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Printer Remapping in Windows 7 Deployments</title><link>http://blogs.technet.com/b/deploymentguys/archive/2013/02/12/printer-remapping-in-windows-7-deployments.aspx#3569551</link><pubDate>Sun, 28 Apr 2013 23:35:57 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3569551</guid><dc:creator>RobSampson</dc:creator><description>&lt;p&gt;No problem. &amp;nbsp;I also found the same approach to be helpful in situations where you need to apply other &amp;quot;current user&amp;quot; settings as well. &amp;nbsp;I have the step 2 script copy some other scripts to the StartUp folder that apply 64 bit user specific settings (for when HLKM doesn&amp;#39;t cut it) for specific applications.&lt;/p&gt;
&lt;p&gt;Glad it helped.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3569551" width="1" height="1"&gt;</description></item><item><title>re: Printer Remapping in Windows 7 Deployments</title><link>http://blogs.technet.com/b/deploymentguys/archive/2013/02/12/printer-remapping-in-windows-7-deployments.aspx#3569502</link><pubDate>Sun, 28 Apr 2013 10:27:31 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3569502</guid><dc:creator>DamonJohns</dc:creator><description>&lt;p&gt;Thanks Rob, appreciate your response. Your post is exactly what I was after.&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;Damon&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3569502" width="1" height="1"&gt;</description></item><item><title>re: Printer Remapping in Windows 7 Deployments</title><link>http://blogs.technet.com/b/deploymentguys/archive/2013/02/12/printer-remapping-in-windows-7-deployments.aspx#3569219</link><pubDate>Fri, 26 Apr 2013 04:25:23 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3569219</guid><dc:creator>RobSampson</dc:creator><description>&lt;p&gt;Hi Damon, I have set it up basically as a four step process.&lt;/p&gt;
&lt;p&gt;Step 1 is to create a deployment task sequence. &amp;nbsp;I based mine on the Client.xml template, and right down the bottom, I added a &amp;quot;Run Command Line&amp;quot; task that runs:&lt;/p&gt;
&lt;p&gt;cscript.exe &amp;quot;%SCRIPTROOT%\ZTI_Custom_Copy_Printer_Remap_Script.wsf&amp;quot;&lt;/p&gt;
&lt;p&gt;Step 2 is to create the ZTI_Custom_Copy_Printer_Remap_Script.wsf script in the %SCRIPTROOT% folder that contains this code:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="https://skydrive.live.com/redir?resid=FD2BD50EA84BFED6!216&amp;amp;authkey=!AAywdl3CjumNlWg"&gt;skydrive.live.com/redir&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Step 3 is to create the ZTI_Custom_Remap_Printers_To_Print_Queues.vbs script in the %SCRIPTROOT% folder that contains the below code. &amp;nbsp;This is the script that is copied to each StartUp folder within each profile on the new computer:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="https://skydrive.live.com/redir?resid=FD2BD50EA84BFED6!215&amp;amp;authkey=!ALQN9UDlSvaWXHM"&gt;skydrive.live.com/redir&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Finally in step 4, create your new printer queues on the new server, then create a text file called ZTI_Custom_Remap_Printers_To_Print_Queues_Reconnection_Map.txt in the %SCRIPTROOT% folder, that has contents like the following, with the old and new printers being separated by a semi-colon:&lt;/p&gt;
&lt;p&gt;\\OldServer\ShareName1;\\NewServer\NewShareName1&lt;/p&gt;
&lt;p&gt;\\OldServer\ShareName2;\\NewServer\NewShareName2&lt;/p&gt;
&lt;p&gt;\\OldServer\ShareName3;\\NewServer\NewShareName3&lt;/p&gt;
&lt;p&gt;So, what happens when the task sequence runs, the VBS is copied to the StartUp folder for each user (C:\Users\%username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup) and the TXT is copied to the Temp folder for each user (C:\Users\%username%\AppData\Local\Temp). &amp;nbsp;When the user logs in, the VBS runs and deletes itself, and you will find a log of its actions in the %TEMP% folder per user as well.&lt;/p&gt;
&lt;p&gt;Rob.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3569219" width="1" height="1"&gt;</description></item><item><title>re: Printer Remapping in Windows 7 Deployments</title><link>http://blogs.technet.com/b/deploymentguys/archive/2013/02/12/printer-remapping-in-windows-7-deployments.aspx#3568011</link><pubDate>Sat, 20 Apr 2013 02:11:09 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3568011</guid><dc:creator>DamonJohns</dc:creator><description>&lt;p&gt;Would you be willing to share your modified script Rob and the basic steps in your MDT TS that you used to achieve this?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3568011" width="1" height="1"&gt;</description></item><item><title>re: Printer Remapping in Windows 7 Deployments</title><link>http://blogs.technet.com/b/deploymentguys/archive/2013/02/12/printer-remapping-in-windows-7-deployments.aspx#3562593</link><pubDate>Tue, 02 Apr 2013 06:07:40 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3562593</guid><dc:creator>RobSampson</dc:creator><description>&lt;p&gt;Hi, I have found that instead of using&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; StrKeyFullPath=strKeyPath&amp;amp;&amp;quot;\&amp;quot;&amp;amp;Subkey&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; objReg.DeleteKey HKEY_CURRENT_USER,StrKeyFullPath&lt;/p&gt;
&lt;p&gt;it is better to use&lt;/p&gt;
&lt;p&gt;		objNetwork.RemovePrinterConnection Replace(strSubKey, &amp;quot;,&amp;quot;, &amp;quot;\&amp;quot;), True, True&lt;/p&gt;
&lt;p&gt;since this removes the printer connection properly. &amp;nbsp;Otherwise, the connection still appears under Devices and Printers.&lt;/p&gt;
&lt;p&gt;I have now combined a modified version of this script into a post LoadState task in my MDT Task Sequence, which places itself in the C:\Users\&amp;lt;username&amp;gt;\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup folder by enumerating the Users folder, and creating the Startup folder. &amp;nbsp;This way, it runs when the user logs in, and reconnects their printers, and remove the old ones.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3562593" width="1" height="1"&gt;</description></item><item><title>re: Printer Remapping in Windows 7 Deployments</title><link>http://blogs.technet.com/b/deploymentguys/archive/2013/02/12/printer-remapping-in-windows-7-deployments.aspx#3554103</link><pubDate>Thu, 21 Feb 2013 16:32:54 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3554103</guid><dc:creator>Jose Barba</dc:creator><description>&lt;p&gt;Thanks for sharing&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3554103" width="1" height="1"&gt;</description></item><item><title>re: Printer Remapping in Windows 7 Deployments</title><link>http://blogs.technet.com/b/deploymentguys/archive/2013/02/12/printer-remapping-in-windows-7-deployments.aspx#3552074</link><pubDate>Wed, 13 Feb 2013 01:05:40 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3552074</guid><dc:creator>Mohammed Imran</dc:creator><description>&lt;p&gt;Nice post. Will be really handy in x86-x64 migration scenarios.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3552074" width="1" height="1"&gt;</description></item></channel></rss>