How to export user from local users and groups for migration on an other PC

Mike Schmutzer 6 Reputation points
2020-08-21T10:05:23.457+00:00

Hello specialists,

I have to migrate some user-groups filled with many users from a windows 7 enterprise PC to a Windows 10 enterprise PC. The users are from AD but needs local rights. That's why I put the users into local groups. I don't have access to the AD-rights. How can I export the users from Win7 and import into win10?
Can you show me a posibility to realise this?

Thanks - Mike

PS.: sorry, the tag may be not correct

Windows Server Migration
Windows Server Migration
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Migration: The process of making existing applications and data work on a different computer or operating system.
417 questions
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. MotoX80 32,836 Reputation points
    2020-08-21T13:31:00.933+00:00

    Try this. Run this Powershell script and capture the output into a text file. It will generate the net.exe commands to define groups and add users to them. Edit the txt file and remove groups like Administrators, Guests, Users, etc. Update the group comments and cleanup any users that you don't want. Save it as a .bat file on the target server so that you can run it there.

    Test it using one group before you run the entire bat file. Make sure it does what you want it to do. 19512-generategroupsps1.txt

    Note: the web site was not letting me post the script as code. It would not let me post it as plain text either. I had attach it as a txt file.

    1 person found this answer helpful.

  2. Anonymous
    2020-08-21T13:19:17.423+00:00

    Something here might help.
    https://video2.skills-academy.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/dd379531(v=ws.10)?redirectedfrom=MSDN

    --please don't forget to Accept as answer if the reply is helpful--