Windows 10: Net user returns "... completed with one or more errors." Solved

Page 2 of 3 FirstFirst 123 LastLast
  1. Bree's Avatar
    Posts : 8,600
    10 Home x64 (1803) (10 Pro on 2nd pc)
       29 Mar 2017 #11

    oxonsi said: View Post
    When I attempt to rename, I receive the message, "The PC name is invalid." no matter what name I choose. And if I enter the current name, it tells me I need to choose a different name.

    It certainly appears there is a problem with my PC's name. Any idea how I might remedy that?
    You could try the other ways to change the PC's name.
    Computer Name - Change in Windows 10


    And you can change it in the Registry. Worth looking there to see if the current values are corrupted.
    Computer Name - Change in Windows 10 - Post #14
      My ComputersSystem Spec

  2. Kari's Avatar
    Posts : 14,817
    Windows 10 Pro
       29 Mar 2017 #12

    oxonsi said: View Post
    Right, I was getting lazy. Probably should have stated, "that is my problem, or at least one of my problem(s)"... Logic :)

    When I attempt to rename, I receive the message, "The PC name is invalid." no matter what name I choose. And if I enter the current name, it tells me I need to choose a different name.

    It certainly appears there is a problem with my PC's name. Any idea how I might remedy that?
    This should work:

    1.) Create a new local user account, name it as you wish. I use username Dummy1 here. Make this account an administrator account.

    2.) Sign out from your normal user account, sign in to the new Dummy1 account.

    3.) Open an elevated Command Prompt, disable all existing user accounts except the new one you are currently signed in with following command:
    Code:
    net user USERNAME /active:no

    4.) Press WIN + R to open Run prompt, type following command and hit Enter:
    Code:
    %windir%\system32\Sysprep\Sysprep.exe /oobe /reboot

    5.) This runs Sysprep forcing Windows to go through the initial OOBE (Windows Welcome Mode, setup) again, generating a new PC name. You will go through the normal OOBE and need to create an initial user account. You cannot use any username already existing in system, I use Dummy2 at this point.

    6.) When on desktop of Dummy2, open elevated Command Prompt and re-activate your temporarily disabled old user account with following command:

    Code:
    net user USERNAME /active:yes

    7.) Sign out from Dummy2, sign in to your old, normal admin account

    8.) Remove Dummy1 and Dummy2 accounts

    That's it. I'll bet your NET USER command will return no more errors.

    BTW, although I am extremely familiar with Sysprep and how it can be used (no bragging, just stating a fact) I would never run it on an existing installation without creating a system image backup first. The above instructions will work but in case you come back telling you can't boot anymore after following the instructions, I will tell you to restore the systsme image you made before proceeding.

    If at that point you tell me you don't have a system image, you can only blame yourself. My only response to that would be "Tough!".

    The above flow of actions takes 3 to 5 minutes, not counting the time to backup your system first.

    Kari
      My ComputerSystem Spec

  3. Bree's Avatar
    Posts : 8,600
    10 Home x64 (1803) (10 Pro on 2nd pc)
       29 Mar 2017 #13

    @Kari, isn't the net user message "The command completed with one or more errors." referring to not being able to display the computer's name? It may not be referring to a problem with the user accounts at all. We've now established that oxonsi cannot rename the PC.
      My ComputersSystem Spec

  4. Kari's Avatar
    Posts : 14,817
    Windows 10 Pro
       29 Mar 2017 #14

    Bree said: View Post
    @Kari, isn't the net user message "The command completed with one or more errors." referring to not being able to display the computer's name?
    ... and my instructions are precisely attacking that issue, forcing OOBE to be run and new computer name to be generated.

    The play with usernames is only to assure that existing user account will also work after the Sysprep. It has a bad habit to disable Start and Search / Cortana from existing user accounts if left active. By using a Dummy account and setting existing accounts inactive, then sysprepping, we can be sure that this non-working Start and Search / Cortana will not happen.

    My instructions do nothing else than forces Windows to set a new computer name, resets Event Viewer and restore points.
      My ComputerSystem Spec


  5. Posts : 48
    Windows 10 Pro for Workstations x64 version 1803/ Arch Linux
    Thread Starter
       29 Mar 2017 #15

    Thanks for the replies.

    I will make the image file backup before attempting anything further. I am in the habit of using Macrium Reflect to image my machine, but it has been about a week since my last full image backup, so this is a good time to do so in any case.

    I appreciate the info. I'll probably try the less "intrusive" methods of renaming first. I think I now have enough information to resolve this one way or another.

    Thanks all!
      My ComputerSystem Spec

  6. Kari's Avatar
    Posts : 14,817
    Windows 10 Pro
       29 Mar 2017 #16

    oxonsi said: View Post
    Thanks for the replies.

    I will make the image file backup before attempting anything further. I am in the habit of using Macrium Reflect to image my machine, but it has been about a week since my last full image backup, so this is a good time to do so in any case.

    I appreciate the info. I'll probably try the less "intrusive" methods of renaming first. I think I now have enough information to resolve this one way or another.

    Thanks all!
    The method I described is not at least intrusive. It keeps everything intact but as it runs OOBE again, a new computer SID and PC name will be generated, which I am 99% sure will resolve your issue. Worst case scenario is that you get same error but at least this method allows you to change the PC name when done.

    Anyway, your PC, your decision. We can first spend a few days here trying to find another way.
      My ComputerSystem Spec

  7. Bree's Avatar
    Posts : 8,600
    10 Home x64 (1803) (10 Pro on 2nd pc)
       29 Mar 2017 #17

    Kari said: View Post
    My instructions do nothing else than forces Windows to set a new computer name, resets Event Viewer and restore points.
    Thanks, I understand now.
      My ComputersSystem Spec


  8. Posts : 48
    Windows 10 Pro for Workstations x64 version 1803/ Arch Linux
    Thread Starter
       29 Mar 2017 #18

    I have a new image file backup.

    Here's what happened when I executed Sysprep. You can tell me what I may be doing wrong [or that my PC is crazy]... At the initial OOBE screen, it assigned the name System. There was small link toward the bottom of the screen that said, "I'm not System", so I clicked on that. Then it asked me the usual questions about privacy settings [custom setup selected, not express]. And then it finally asked me to login as Dummy1. There was no option to create an initial user account as Dummy2.

    Is this normal? Anyway around it so that I can create Dummy2 as an initial user account?

    Thanks for all the help!
      My ComputerSystem Spec

  9. Kari's Avatar
    Posts : 14,817
    Windows 10 Pro
       30 Mar 2017 #19

    oxonsi said: View Post
    I have a new image file backup.

    Here's what happened when I executed Sysprep. You can tell me what I may be doing wrong [or that my PC is crazy]... At the initial OOBE screen, it assigned the name System. There was small link toward the bottom of the screen that said, "I'm not System", so I clicked on that. Then it asked me the usual questions about privacy settings [custom setup selected, not express]. And then it finally asked me to login as Dummy1. There was no option to create an initial user account as Dummy2.

    Is this normal? Anyway around it so that I can create Dummy2 as an initial user account?

    Thanks for all the help!
    No, that's OK. In that case you don't need "Dummy2".

    Just reactivate your old user accounts, sign in to your original admin account and see if you can change the PC name. If yes, then check what NET USER says.
      My ComputerSystem Spec


  10. Posts : 48
    Windows 10 Pro for Workstations x64 version 1803/ Arch Linux
    Thread Starter
       30 Mar 2017 #20

    That worked. I am able to change my PC name. And Net User completes successfully.

    Thanks for all of your assistance :)
      My ComputerSystem Spec


 
Page 2 of 3 FirstFirst 123 LastLast

Related Threads
Hi, I am running a daily task which is supposed to - wake the computer from hibernation - copy a file to a network drive, and create a log file - shutdown the computer When starting the task manually from within the task scheduler, everything...
Whenever i tried copy, delete, rename or modify folder having a movie file with the appropriate .srt file, after watching them, i used to receive the following error: "Folder In Use The action canít be completed because the folder or a file in it is...
Hi all, Just installed Win 10 pro on a new SSD, so a clean install. Started installing all my programs etc. Everything seems to be running well, except on thing that is annoying... I have placed a few icons on the desktop via right clicking...
Howdy All - I'm thinking I'm not the first nor the last to have MS trick me into changing my User Name from Local to (in my case) an outlook.com email account. Now I'm forced to sign in every time I log on. And FWIW, I prefer to be fully in charge...
What is "password" user in user list at login screen? in User Accounts and Family Safety
http://www.dodaj.rs/f/3H/tu/2fIhttFc/pass.jpg What is this? How can I remove it from login screen?
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 19:59.
Find Us