Windows OS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsSystem AdministrationWindows OS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old November 19th, 2008, 01:08 PM
eylusion eylusion is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2008
Posts: 12 eylusion User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 10 m 55 sec
Reputation Power: 0
General Scripting - Migrate local machines local and global groups

I setup new computers for people all day long, and it's really tedious to move a users domain account to the local administrators group and any other sort of global and local groups and memberships that might of been setup on a previous machine.

Is there something out there I could use to say give it an old machinename and then it would query the old machines local and global user groups and copy them over to the new machine?

Matt
*this is my first post, please be gentle *

Reply With Quote
  #2  
Old November 20th, 2008, 12:38 AM
Nilpo's Avatar
Nilpo Nilpo is online now
ASP Free Beginner (1000 - 1499 posts)
 
Join Date: Jun 2006
Location: Salem, OH
Posts: 1,254 Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)  Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 6 Days 10 h 25 m 23 sec
Reputation Power: 667
Send a message via ICQ to Nilpo Send a message via AIM to Nilpo Send a message via MSN to Nilpo Send a message via Yahoo to Nilpo Send a message via Google Talk to Nilpo Send a message via Skype to Nilpo Send a message via XFire to Nilpo
Facebook MySpace Orkut
Hey, Matt. This really isn't a scripting question. I'm moving your thread to the OS section.
__________________
Click the image if at any point you don't like my decision.

Scripting problems? Windows questions? Ask the Windows Guru!


Reply With Quote
  #3  
Old November 20th, 2008, 10:26 AM
eylusion eylusion is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2008
Posts: 12 eylusion User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 10 m 55 sec
Reputation Power: 0
My appologies

I'm sorry, I thought that maybe there was a way to use like PowerShell or something that would Query the WMI on a machine and batch create (mirror) the users/groups on another machine onto the one that you wanted.

Reply With Quote
  #4  
Old December 9th, 2008, 02:16 PM
eylusion eylusion is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2008
Posts: 12 eylusion User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 10 m 55 sec
Reputation Power: 0
So i guess no one knows how to do this easily?

Reply With Quote
  #5  
Old December 9th, 2008, 03:50 PM
Nilpo's Avatar
Nilpo Nilpo is online now
ASP Free Beginner (1000 - 1499 posts)
 
Join Date: Jun 2006
Location: Salem, OH
Posts: 1,254 Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)  Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 6 Days 10 h 25 m 23 sec
Reputation Power: 667
Send a message via ICQ to Nilpo Send a message via AIM to Nilpo Send a message via MSN to Nilpo Send a message via Yahoo to Nilpo Send a message via Google Talk to Nilpo Send a message via Skype to Nilpo Send a message via XFire to Nilpo
Facebook MySpace Orkut
Well, you can use PowerShell or WMI to query this information and save it to some type of file. Then you could use a similar method on the new machine to import the data.

However, have you tried using the Files and Settings Transfer Wizard? It should do everything that you are trying to do here.

Reply With Quote
  #6  
Old December 9th, 2008, 03:51 PM
Nilpo's Avatar
Nilpo Nilpo is online now
ASP Free Beginner (1000 - 1499 posts)
 
Join Date: Jun 2006
Location: Salem, OH
Posts: 1,254 Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)  Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 6 Days 10 h 25 m 23 sec
Reputation Power: 667
Send a message via ICQ to Nilpo Send a message via AIM to Nilpo Send a message via MSN to Nilpo Send a message via Yahoo to Nilpo Send a message via Google Talk to Nilpo Send a message via Skype to Nilpo Send a message via XFire to Nilpo
Facebook MySpace Orkut
Also, what exactly are you trying to move? Wouldn't domain user accounts be stored on the Domain Server??

If you're using Domain log in, you can simply log in with any valid user's credentials. It's independent of the current hardware.

Reply With Quote
  #7  
Old December 9th, 2008, 03:52 PM
eylusion eylusion is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2008
Posts: 12 eylusion User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 10 m 55 sec
Reputation Power: 0
Quote:
Originally Posted by Nilpo
Well, you can use PowerShell or WMI to query this information and save it to some type of file. Then you could use a similar method on the new machine to import the data.

However, have you tried using the Files and Settings Transfer Wizard? It should do everything that you are trying to do here.


It doesn't copy local accounts and groups
i don't even think the vista easy transfer does it either.

Reply With Quote
  #8  
Old December 9th, 2008, 03:53 PM
Nilpo's Avatar
Nilpo Nilpo is online now
ASP Free Beginner (1000 - 1499 posts)
 
Join Date: Jun 2006
Location: Salem, OH
Posts: 1,254 Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)  Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 6 Days 10 h 25 m 23 sec
Reputation Power: 667
Send a message via ICQ to Nilpo Send a message via AIM to Nilpo Send a message via MSN to Nilpo Send a message via Yahoo to Nilpo Send a message via Google Talk to Nilpo Send a message via Skype to Nilpo Send a message via XFire to Nilpo
Facebook MySpace Orkut
You're using local accounts/groups in conjunction with Domain users/groups? Is that what you're saying?

Reply With Quote
  #9  
Old December 9th, 2008, 03:54 PM
eylusion eylusion is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2008
Posts: 12 eylusion User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 10 m 55 sec
Reputation Power: 0
Quote:
Originally Posted by Nilpo
You're using local accounts/groups in conjunction with Domain users/groups? Is that what you're saying?

Well a local machine's Administrators group might contain a domain user account, etc.

Reply With Quote
  #10  
Old December 9th, 2008, 04:04 PM
Nilpo's Avatar
Nilpo Nilpo is online now
ASP Free Beginner (1000 - 1499 posts)
 
Join Date: Jun 2006
Location: Salem, OH
Posts: 1,254 Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)  Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1Folding Points: 206875 Folding Title: Super Ultimate Folder - Level 1
Time spent in forums: 6 Days 10 h 25 m 23 sec
Reputation Power: 667
Send a message via ICQ to Nilpo Send a message via AIM to Nilpo Send a message via MSN to Nilpo Send a message via Yahoo to Nilpo Send a message via Google Talk to Nilpo Send a message via Skype to Nilpo Send a message via XFire to Nilpo
Facebook MySpace Orkut
In either case, what you are trying to do is called User State Migration and Microsoft provides utilities for this. We've already mentioned two of them: the Files and Settings Transfer Wizard in Windows XP and Windows Easy Transfer in Windows Vista. There is also a third utility used by both operating systems called the User State Migration Tool. This tool provides the functionality of both that have already been listed but also provides additional functionality for administrators in a domain environment. It ships in the various Resource Kits, but you can download the latest version of the USMT here.

In addition, here are two guides you may want to take a look at. The first is for migrating to Windows XP and the second is for migrating to Windows Vista. I hope these help.

User State Migration in Windows XP
Windows Vista Migration Step-By-Step Guide

Reply With Quote
  #11  
Old December 9th, 2008, 04:20 PM
eylusion eylusion is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2008
Posts: 12 eylusion User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 10 m 55 sec
Reputation Power: 0
Quote:
Originally Posted by Nilpo
In either case, what you are trying to do is called User State Migration and Microsoft provides utilities for this. We've already mentioned two of them: the Files and Settings Transfer Wizard in Windows XP and Windows Easy Transfer in Windows Vista. There is also a third utility used by both operating systems called the User State Migration Tool. This tool provides the functionality of both that have already been listed but also provides additional functionality for administrators in a domain environment. It ships in the various Resource Kits, but you can download the latest version of the USMT here.

In addition, here are two guides you may want to take a look at. The first is for migrating to Windows XP and the second is for migrating to Windows Vista. I hope these help.

User State Migration in Windows XP
Windows Vista Migration Step-By-Step Guide


i'm aware of the USMT, but that contains a lot of configuration, and I don't want to migrate any files or settings, i just want to copy the local user accounts and groups

Reply With Quote
  #12  
Old December 9th, 2008, 05:51 PM
Nilpo's Avatar
Nilpo Nilpo is online now
ASP Free Beginner (1000 - 1499 posts)
 
Join Date: Jun 2006
Location: Salem, OH
Posts: 1,254 Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)Nilpo User rank is Brigadier General (60000 - 70000 Reputation Level)