myITforum.com Community Forum myITforum.com Community Forum

Home  Forums  Blogs  Live Support chat  Search Articles  Wiki  FAQ  Email Lists  Register  Login  My Profile  Inbox  Address Book  My Subscription  My Forums 

Photo Gallery  Member List  Search  Calendars  FAQ  Ticket List  Log Out

All Forums RSS Feed Subscription:


  


Migrating Network Printers & Drives with USMT

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
  Printable Version
All Forums >> [Management Products] >> System Center Products >> Microsoft Deployment (BDD) >> Migrating Network Printers & Drives with USMT Page: [1]
Login
Message << Older Topic   Newer Topic >>
Migrating Network Printers & Drives with USMT - 5/5/2008 5:46:24 PM   
old_chicago

 

Posts: 67
Score: 0
Joined: 2/21/2008
Status: offline
Has anyone had experience setting this up?  I found this following information on Johan's website:

http://www.deployvista.com/Blog/tabid/70/EntryID/36/language/en-US/Default.aspx

After the custom XML file is created, how do we incorporate it into our USMT data migration scenario?

OC
Post #: 1
RE: Migrating Network Printers & Drives with USMT - 5/6/2008 10:58:26 AM   
jscheffelmaer

 

Posts: 187
Score: 3
Joined: 5/6/2002
Status: offline
Depending on your deployment scenario, you simply use the newly created XML in your USMT process.  If this is via BDD/MDT without SCCM you simply put a line in your customsettings that looks similar to this:
USMTMigFiles1=Custom.xml

Or if you are using SCCM you can add the custom.xml right into the task sequence from the task sequence editor.

(in reply to old_chicago)
Post #: 2
RE: Migrating Network Printers & Drives with USMT - 5/6/2008 11:01:01 AM   
old_chicago

 

Posts: 67
Score: 0
Joined: 2/21/2008
Status: offline
I've got that much.  So, essentially I would copy this template and name it "Custom.XML" or whatever I choose to call it.  Then associate my cs.ini file with the following property?USMTMigFiles=Custom.XML

OC

(in reply to jscheffelmaer)
Post #: 3
RE: Migrating Network Printers & Drives with USMT - 5/6/2008 11:05:33 AM   
jscheffelmaer

 

Posts: 187
Score: 3
Joined: 5/6/2002
Status: offline
I believe the syntax is USMTMigFiles1=Custom.xml
It has a number at the end because the variable is a list variable and can accept multiple entries.   Also make sure that your custom.xml is in the tools folder where all the other usmt files are so it will get copied properly when it runs.

_____________________________

Jason Scheffelmaer
Systems Integration Specialist


(in reply to old_chicago)
Post #: 4
RE: Migrating Network Printers & Drives with USMT - 5/6/2008 12:43:37 PM   
old_chicago

 

Posts: 67
Score: 0
Joined: 2/21/2008
Status: offline
Hi Jason,

Currently, here is what I have in my cs.ini:

USMTMigFiles1=migapp.xml
USMTMigFiles2=migsys.xml
USMTMigFiles3=miguser.xml
USMTMigFiles4=Config.xml

I'll add in USMTMigFiles5=Custom.xml

So the custom.xml and config.xml both need to be in the \distribution$\tools\x86 directory?  Or do I need to recreate my USMT30_x86.CAB file and include both the custom.xml and config.xml?  I'm pretty close to getting this setup for testing.  I appreciate your help.

OC

Now,

(in reply to jscheffelmaer)
Post #: 5
RE: Migrating Network Printers & Drives with USMT - 5/6/2008 12:57:18 PM   
jscheffelmaer

 

Posts: 187
Score: 3
Joined: 5/6/2002
Status: offline
If the config.xml is the actual configuration file used to *filter* the content in the custom.xml or other files then this cannot be added as a USMTMigFiles property (meaning you used something like /genconfig command to create it).  The reason for this is the config file requires the /config:config.xml command line switch when the scanscate runs.  If you add this as a USMTMigFiles property then the command line gets changed to a /i:config.xml and it thinks its a data xml rather than a config filter xml (Which I am assuming it is for you in this case?)  

"BDD 2007 does not currently use config.xml, but team members can call the file manually by specifying it in CustomSettings.ini. For detailed instructions on preparing a config.xml file, see “Appendix A: Creating and Customizing Config.xml.”

http://technet.microsoft.com/en-us/library/bb490199.aspx#XSLTsection128121120120


_____________________________

Jason Scheffelmaer
Systems Integration Specialist


(in reply to old_chicago)
Post #: 6
RE: Migrating Network Printers & Drives with USMT - 5/6/2008 3:11:18 PM   
old_chicago

 

Posts: 67
Score: 0
Joined: 2/21/2008
Status: offline
Jason,

Thanks for the link, this helps out in that arena.  And yes, I am customzing the config.xml to "fitler" what settings I don't want to migrate.  I have this scripted in my scanstate.bat file I created, and it works great.  But, when I try to use it with MDT, as I have described above - it does not work. 

\\server\usmt301\migdata\%computername% /targetXP /config:config.xml /i:MigApp.xml /i:MigSys.xml /i:MigUser.xml /c /uel:14

How do I add the custom.xml to this?  I've tried both /i:custom.xml and config:custom.xml and niether of the switches seem to be working.

Thanks man,

OC

(in reply to jscheffelmaer)
Post #: 7
RE: Migrating Network Printers & Drives with USMT - 5/6/2008 3:24:37 PM   
jscheffelmaer

 

Posts: 187
Score: 3
Joined: 5/6/2002
Status: offline
The custom.xml should be simply added as /i:custom.xml right behind your other files.   You will want to look at the usmt log files though during a build to make sure it is calling off the right switches when using MDT. It may not be picking up your changes, especially if you are using both custom command vars and the built-in USMTMigFiles properties.

_____________________________

Jason Scheffelmaer
Systems Integration Specialist


(in reply to old_chicago)
Post #: 8
RE: Migrating Network Printers & Drives with USMT - 5/6/2008 3:37:48 PM   
old_chicago

 

Posts: 67
Score: 0
Joined: 2/21/2008
Status: offline
Just for clarification, at this point, i'm running Scanstate via a bat file I created.  The scanstate script has worked prior and I'm not trying to implement the custom.xml that includes the printers and mapped drives from Johan's blog.  Once, I get this working, I'll then concentrate on getting this setup for MDT. 

That all said, here is my script command:

\\server\usmt301\migdata\%computername% /targetXP /config:config.xml /i:MigApp.xml /i:MigSys.xml /i:MigUser.xml /i:custom.xml /c /uel:14 /progress:\\xdrive\usmt301\logs\%computername%\progress.log /l:\\xdrive\usmt301\logs\%computername%\scanstate.log /v:0

When I execute the script I get a very generic error in my scanstate.log:

Parse error while loading script custom.xml. 
Migstartup Failed with Migstatus
USMT is unable to complete successfully

Obviously, there is something wrong with my custom.xml syntax.  Here is the template.  Any ideas?

Template for Network drivers and printers
<?xml version="1.0" encoding="UTF-8"?>
<migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/customsys">
<library prefix="MigSysHelper">MigSys.dll</library>
<component type="System">
<displayName _locID="NetworkDrivesPrinters">Network Drives, Printers</displayName>
   <role role="Settings">
     <rules context="User">
       <include>
         <objectSet>
           <pattern type="Registry">HKCU\Network\*
  • </pattern>
      </objectSet>
      <objectSet>
               <pattern type="Registry">HKCU\Printers\*
  • </pattern>
             </objectSet>
           </include>
         </rules>
       </role>
    </component>
    </migration>




    (in reply to jscheffelmaer)
  • Post #: 9
    RE: Migrating Network Printers & Drives with USMT - 5/6/2008 4:10:01 PM   
    jscheffelmaer

     

    Posts: 187
    Score: 3
    Joined: 5/6/2002
    Status: offline
    Just to clarify: The line below is not in the file correct? 
    "Template for Network drivers and printers"

    It should start at the <?xml.... line.   And you can verify the syntax by opening the xml file in IE and making sure it does not report any errors while trying to display it. (Besides the activex warning at the top is normal).

    _____________________________

    Jason Scheffelmaer
    Systems Integration Specialist


    (in reply to old_chicago)
    Post #: 10
    RE: Migrating Network Printers & Drives with USMT - 5/6/2008 4:17:23 PM   
    old_chicago

     

    Posts: 67
    Score: 0
    Joined: 2/21/2008
    Status: offline
    Excellent Jason!  I learned a lot the last few hours.  Thanks for helping.  Actually, yes that was the hold up at this ponit.  I removed the "Template for Network Drives and Printers" 

    USMT is fairly new here, but I've learned a lot since I've incorporated it into my environment the last 2 weeks.  While we are on the topic for USMT.  I am currently using the user exclusion switch, /uel:14 so that USMT does not migrate any inactive profiles from the last 14 days.  I'd also like to add a few user accounts to this switch.  When I tried running separate /uel: switches, USMT gave me an error indicating you could only specify the /uel: switch one time.  How can I add two more user accounts to the user exclusion list in my script?

    Thanks dude!
    OC

    (in reply to jscheffelmaer)
    Post #: 11
    RE: Migrating Network Printers & Drives with USMT - 5/6/2008 5:05:45 PM   
    jscheffelmaer

     

    Posts: 187
    Score: 3
    Joined: 5/6/2002
    Status: offline
    Good to hear OC.  And as for your user exclusion uel is based on a number of days from last logon only, not specific user accounts.  If you also want to exclude specific accounts you would use the /ue:<Domain\User> command instead of uel.

    You can find the syntax on use here: http://technet2.microsoft.com/WindowsVista/en/library/3145bf5d-a5a1-456e-a069-6e619f845ce21033.mspx?mfr=true

    _____________________________

    Jason Scheffelmaer
    Systems Integration Specialist


    (in reply to old_chicago)
    Post #: 12
    Page:   [1]
    All Forums >> [Management Products] >> System Center Products >> Microsoft Deployment (BDD) >> Migrating Network Printers & Drives with USMT Page: [1]
    Jump to:





    New Messages No New Messages
    Hot Topic w/ New Messages Hot Topic w/o New Messages
    Locked w/ New Messages Locked w/o New Messages
     Post New Thread
     Reply to Message
     Post New Poll
     Submit Vote
     Delete My Own Post
     Delete My Own Thread
     Rate Posts



      
    Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

    0.266