Windows 10: How to Transfer Users between isolated computers. Solved

  1.    18 Aug 2017 #1

    How to Transfer Users between isolated computers.


    Hello.
    Can you help me solve my USERS problem below?

    I have 30 New, Windows 10 v1703, stand alone computers - no network, no server...
    [They must remain isolated - l_o_n_g story - don't ask.]
    I need to add 53 users, identical list, to each computer.

    The data I enter for a NEW USER via MMC is:
    --User name
    --Full name
    --Description
    --Password
    --Confirm password
    --User must change password at next logon == YES or check this box

    I can add my users here:
    MMC \ Console Root \ Local Users and Groups \ Users
    Or here:
    Administrative tools \ Computer Management \ System Tools \ Local Users and Groups \ Users

    And both allow this:
    Action \ Export list
    Which creates a text, .CSV or .TXT, file for me.

    Examplie Lines from the file looks like this:
    User1020,Smith, Bob B.,AGENCY STAFF
    User1023,Smith, Sam S.,AGENCY STAFF
    User1024,Smith, Tom T.,AGENCY STAFF

    I would like to put this file on a USB drive and import it from computer #01 to #02, #03,...

    But I can't find a way to "IMPORT" this list.

    I was suggested that I attempt WET (Windows Easy Transfer; move folders\files from a Win-7 unit...)
    This did not work.

    I'm just learning PowerShell so I have no idea how to work it out that way either.

    Any help would be greatly appreciated.
      My ComputerSystem Spec

  2.    18 Aug 2017 #2

    Do you need to do anything except add the users?

    If not you could you just use a batch script like this specifying user name and (optionally) the password
    Code:
    net user /add USER1000 Password1000
    net user /add USER2000 
    net user /add USER3000 Password3000
    etc
      My ComputerSystem Spec


  3. Posts : 4,511
    10 Home x64 (1709) (10 Pro on 2nd pc)
       18 Aug 2017 #3

    Robert08182017 said: View Post
    I'm just learning PowerShell so I have no idea how to work it out that way either.
    Welcome to TenForums @Robert08182017

    You can add a user account from an elevated command prompt. See Option Six in this tutorial.
    https://www.tenforums.com/tutorials/...a.html#option6

    Try it in a batch file.

    Edit. Oh, I see lx07 has just beaten me to the punch
      My ComputersSystem Spec

  4.    18 Aug 2017 #4

    Thank you so much lx07 and Bree.
    The "net user" command works great directly from the command prompt!
    If I use the line below(I am runnin as admin just to be clear) from C:\

    net user SMITHB pa55w0rd% /add /comment:"Agency Staff" /fullname:"Smith, Bob B." /logonpasswordchg:yes

    and then run just "net user" SMITHB shows up in a screen list: User accounts for \\computer.
    MMC populated just fine when I checked there also.

    So.....
    I created a test .bat file to see what would happen:
    This file is located here: C:\01

    TITLE LOCALUSERS2.BAT
    REM CLEAR THE SCREEN FIRST
    CLS
    CD\
    PAUSE
    net user SMITHB pa55w0rd% /add /comment:"Agency Staff" /fullname:"Smith, Bob B." /logonpasswordchg:yes
    net user SMITHS pa55w0rd% /add /comment:"Agency Staff" /fullname:"Smith, Sam S." /logonpasswordchg:yes
    net user SMITHT pa55w0rd% /add /comment:"Agency Staff" /fullname:"Smith, Tom T." /logonpasswordchg:yes
    PAUSE

    And the following error messages appear (no matter where I try to run the bat file):
    C:\>net user SMITHB pa55w0rd"Agency Staff" /fullname:"Smith, Bob B." /logonpasswordchg:yes
    The user name could not be found.
    More help is available by typing NET HELPMSG 2221.

    C:\>net user SMITHS pa55w0rd"Agency Staff" /fullname:"Smith, Bob B." /logonpasswordchg:yes
    The user name could not be found.
    More help is available by typing NET HELPMSG 2221.

    C:\>net user SMITHT pa55w0rd"Agency Staff" /fullname:"Smith, Bob B." /logonpasswordchg:yes
    The user name could not be found.
    More help is available by typing NET HELPMSG 2221.

    Any thoughts on where I messed up?
    Thank you again!
      My ComputerSystem Spec


  5. Posts : 4,511
    10 Home x64 (1709) (10 Pro on 2nd pc)
       18 Aug 2017 #5

    Robert08182017 said: View Post
    Any thoughts on where I messed up?
    Yes. It's because you have used the % character in the password. The % character has a special function in batch files, for example %1 is substituted by the first argument you use when calling the batch file. Best to avoid it. If you really must have a % in batch files then you must escape it by typing %% for each % you want.

    To see this in practice, try this in a batch file then run it with an argument:
    Echo %1
    Echo %%1


    As it's just the temporary password, I'd use something else, like $ for example.
      My ComputersSystem Spec

  6.    21 Aug 2017 #6

    Yes!
    Problems solved.
    Thank you so very, very much.
    Tested out the file below and my users all showed up.
    I appreciate all the help!

    TITLE LOCAL-USER-CREATOR
    REM DOS special characters you CAN NOT use are |,<,>,2>,>>,&,%,&&,||,(),@,.,{,:,^
    REM CLEAR THE SCREEN FIRST
    CLS
    CD\
    PAUSE
    net user SMITHB pa55w0rd$ /add /comment:"Agency Staff" /fullname:"Smith, Bob B." /logonpasswordchg:yes
    net user SMITHS pa55w0rd$ /add /comment:"Agency Staff" /fullname:"Smith, Sam S." /logonpasswordchg:yes
    net user SMITHT pa55w0rd$ /add /comment:"Agency Staff" /fullname:"Smith, Tom T." /logonpasswordchg:yes
    PAUSE
      My ComputerSystem Spec


  7. Posts : 4,511
    10 Home x64 (1709) (10 Pro on 2nd pc)
       21 Aug 2017 #7

      My ComputersSystem Spec


 

Related Threads
Solved New unknown users have appeared in my Users folder. in User Accounts and Family Safety
I had to enable "Show hidden hidden files" in order to install Wizcrafts' latest Spam Filters for Mailwasher. There are two new users there. They were created dated today, when I first switched the computer on. What are they? 138846 ...
I don't remember when, but I availed myself of the free Windows 10 upgrade sometime back. I was using 8.1 and I had, at some point, moved C:\Users and all its associated folders to E:. Everything has worked fine and Win10 didn't have a problem. I...
Isolated User Mode is off. in Virtualization
I have virtualised a physical machine today which is Windows 7 32 Bit and am trying to enable to vTPM chip. When I try to start the machine I receive the following error: 113792 However the option to enable Isolated User Mode is not available...
How to Unlock "Users\All Users\Documents folder in User Accounts and Family Safety
The general method to change ownership is not working Please suggest some other method
Hi I have Windows 10 v1511 Enterprise 64 bit. From the Command Prompt, run as administrator, how should I do to remove any TrustedInstaller or Authenticated Users or System users from the ACLs of an entire directory structure also contains...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 21:08.
Find Us