Jump to content


Sign in to follow this  
anyweb

Network Printers not migrating in Offline Mode ?

Recommended Posts

You are using Offline mode in Windows PE and you notice it's not migrating your network printers.

 

Don't worry, windows-noob is here to help, add the following XML file to your existing USMT 4 package.

 

Please note: the following has been tested successfully with the guide here. Please also note that this will migrate the network printers settings but not the printer drivers. In addition, this xml file will migrate your network shares.

 

 

Add the printers.xml file to your USMT 4 package

 

locate your USMT 4 package and copy the following file to it:

 

printers.xml

 

 

Edit your Runscanstate

 

edit your Runscanstate.bat file so that it has the following appended to it

 

/i:%~2\USMTbits\x86\printers.xml

 

the entire line should look like so

 

@set USMT_WORKING_DIR=%~2%\USMTbits\x86

"%~2\USMTbits\x86\scanstate.exe" "%~1" /c /o /hardlink /efs:hardlink /nocompress /offlinewindir:c:\windows /v:5 /l:%~2\SMSTSLog\scanstate.log /progress:%~2\SMSTSLog\scanstateprogress.log /i:%~2\USMTbits\x86\miguser.xml /i:%~2\USMTbits\x86\migapp.xml /i:%~2\USMTbits\x86\printers.xml

 

Update Distribution Points

 

Update the distribution points for BOTH packages above, and do your offline in WinPE tests again.

 

References:

 

1. Offline Migration - Technet

2. Offline mode in Windows PE - windows-noob

 

 

cheers

niall

  • Like 1

Share this post


Link to post
Share on other sites


When moving from XP 32-bit to Win 7 64-bit is there an easy way to get the drivers installed fro the printers that are migrated? Should we just package up the drivers and install them as a normal install software step?

Share this post


Link to post
Share on other sites

AnyWeb,

 

Thanks for all of your great work here! I have been using this Printers.xml with great success in the offline migration scenario. I have one problem, when the migration is done, the network printers are imported and they can be printed to; you cannot select a default printer, however.

 

This is fixed by adding the "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows\Device" in regedit, doesn't matter what I set it to, just adding and re-booting fixes it.

 

What baffles me that info should be there! Given your key below:

<pattern type="Registry">HKCU\software\microsoft\windows NT\currentVersion\Windows\* [*]</pattern>

 

Any advice or recommendations would be great!

Share this post


Link to post
Share on other sites

Hi Guys,

 

just a quick question - do you really need to take HKLM part if you only care about user settings?

 

and BTW, it looks like an old topic, but i'm woundering why the folowing line is used twice in this XML file and nobody asked it before?

<pattern type="Registry">HKCU\software\microsoft\windows NT\currentVersion\Windows\* [*]</pattern>

 

THNX!

Share this post


Link to post
Share on other sites

Hi Guys,

 

The component to migrate printer settings uses the <destinationCleanup> ruleset which means scanstate will not collect any data inside the <objectSet>?

 

I would have thought we want to gather these registry keys during scanstate and then restore them during loadstate?

 

Is this by design? Am I missing something?

 

Thanks,

Share this post


Link to post
Share on other sites

Just a follow up for anyone else who may be experiencing issues with migrating printers in an offline migration.

 

In the attached "printers.xml", I changed the ruleset <destinationCleanup> in the "printer settings" component to <include> and this successfully migrated all network printers and settings from Windows XP to Windows 7. This also answers the question raised above by "Red3Recon" about why HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows\Device did not migrate and it also subsequently resolves the problem of not being able to set a default printer after migration. NB - there are two instances of <destinationCleanup> that need to be changed to <include>.

Share this post


Link to post
Share on other sites

sure thing, try it

Share this post


Link to post
Share on other sites

Hi Niall and everybody,

 

I have used the printers.xml myself, and have ran into problems with Adobe PDF printers specifically when the scanstate is ran on a different version of Acrobat than what loadstate is ran on. (Acrobat 9 vs Acrobat 11). In this scenario the v11 Adobe PDF printer is deleted.

 

I'm just wondering...is there a way to edit the printers.xml so that it only backs up the network printer connections? We just need to include only connections that start with \\printserver\. I'm just not sure which registry keys are actually needed for this to work.

 

Thanks

Share this post


Link to post
Share on other sites

Hi,

 

Sorry I'm a little confused on how I can use this USMT with SCCM, reading the technet and doing some research everyone is doing it different and no one has screenshots of step by step.

Can you please send me screenshots what I would like to do is,

 

Migrate user data, Documents, Desktop, Downloads. IE Fav, Printers, Signatures, .ost files, .pst

 

Thanks

Share this post


Link to post
Share on other sites

take a look at the below guides which cover working with USMT from Configuration Manager 2007 onwards...

 

Migrating Data using USMT

don't want to migrate Pinned items with USMT 4 ? no problem
unconditionally exclude pinned items

How can I exclude Start Menu items from being captured and restored using a custom file in USMT 4
using a custom XML file to Unconditionally exclude files

how can I use USMT 3.x in SCCM
migrate today restore tomorrow

how can I view the USMT recovery key
user state recovery information

How can I use Offline Mode in Windows PE using USMT 4
Using a scanstate (using offlinewindir in winpe ) Task Sequence in SCCM 2007 SP2

Some Sample XP to Windows 7 task sequences showing Hardlinking
hardlinking and SMP

Migrate XP to Windows 7 using Offline mode in Windows PE
screenshots describing the process

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...