How to Transfer Users between isolated computers.


  1. Posts : 3
    Windows 10 v1703
       #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 Computer

  2. lx07's Avatar
    Posts : 5,479
    2004
       #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 Computer

  3. Bree's Avatar
    Posts : 18,624
    10 Home x64 (20H2) (10 Pro on 2nd pc)
       #3

    Robert08182017 said:
    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 Computers


  4. Posts : 3
    Windows 10 v1703
    Thread Starter
       #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 Computer

  5. Bree's Avatar
    Posts : 18,624
    10 Home x64 (20H2) (10 Pro on 2nd pc)
       #5

    Robert08182017 said:
    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 Computers


  6. Posts : 3
    Windows 10 v1703
    Thread Starter
       #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 Computer

  7. Bree's Avatar
    Posts : 18,624
    10 Home x64 (20H2) (10 Pro on 2nd pc)
       #7

      My Computers


 

  Related Discussions
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 14:39.
Find Us




Windows 10 Forums