Windows 10: regarding local admin user account in windows 10

Discus and support regarding local admin user account in windows 10 in AntiVirus, Firewalls and System Security to solve the problem; Hi Guys, I have prepared a powershell script to create local admin user account and I have planned to push it through Intune. There are totally... Discussion in 'AntiVirus, Firewalls and System Security' started by manikandan_2306, Jun 20, 2020.

  1. regarding local admin user account in windows 10


    Hi Guys,

    I have prepared a powershell script to create local admin user account and I have planned to push it through Intune. There are totally 700 pc's in my Organisation.

    I want to know is there any option to have a local user admin account which should be working even when the PC is out of Organisation Domain.


    Below is the script that I have prepared to create local admin account through Intune:


    $Username = "test"

    $Password = "Password12345"

    $Description = "Local Admin Account"

    $group = "Administrators"

    $adsi = [ADSI]"WinNT://$env:COMPUTERNAME"

    $existing = $adsi.Children where {$_.SchemaClassName -eq 'user' -and $_.Name -eq $Username }

    if $existing -eq $null {

    Write-Host "Creating new local user $Username."

    & NET USER $Username $Password /add /y /expires:never

    & net user $USERNAME /comment:"Local Admin Account”

    & net user $USERNAME /fullname:"$Username"

    Write-Host "Adding local user $Username to $group."

    & NET LOCALGROUP $group $Username /add



    }else {

    Write-Host "Setting password for existing local user $Username."

    $existing.SetPassword$Password

    }

    Write-Host "Ensuring password for $Username never expires."

    & WMIC USERACCOUNT WHERE "Name='$Username'" SET PasswordExpires=FALSE

    :)
     
    manikandan_2306, Jun 20, 2020
    #1
  2. Try3 Win User

    My admin account switched to a user account!

    The first of the many diagrams in this thread show that the link Sign in with a local account instead is displayed for the account that is currently logged on and so the reversion procedure might work for this account. For normal circumstances, that would initiate the conversion back to a local account for the user account currently logged in - see my 23rd & 26th September 2016 posts in revert to local account from one converted to MSAccount. I have no way of knowing how Windows will react to an attempt to use this procedure for the Built-In Admin account and I do not know if that link Sign in with a local account instead will be displayed or not.

    I think I side-stepped this issue by suggesting that that
    • An extra password-protected Admin level account is created, and
    • The Built-In Admin is disabled, and
    • The recovery attempt focuses on whichever existing user account remains active afterwards.

    Personally, I would reinstall Windows 10 without even attempting this recovery. Installation takes very little effort once everything is backed up and the only necessary user interactions are right at the start & right at the end so it can be initiated before making a pot of tea. It took about 30, 60 & 90 minutes for each of my computers [the 30 minuter is 6 months old, the 60 minuter is 7 years old, 90 minuter is 12 years old].

    Raner - I am trying to avoid sounding like I am nagging you into doing a clean install.
    • Once you have recovered the existing user account you can attempt to re-enable & remove the MSAccount link from your Built-In Admin if that link appears in Settings, Accounts.
    • Bree says it cannot be done and I think the same but I have never tried - I have never been able to get to Settings using the Built-In Admin because it cannot run any Windows 10 Apps so I do not know how it can be done [but the diagrams in Bree's link shows that those users got there].
    • Even though I have the safety of having created two spare password-protected Admin accounts I would not want to know that my Built-In Admin was sitting in the background but unable to help me if my other accounts were corrupted.

    Denis
     
  3. Zakin Win User
    Strange Windows 10 User Account issue.

    Unfortunately I had done those steps numerous reboots, it just, reappears for no good reason. The base account isn't even a Microsoft account, it's a local account.

    I haven't quite tried the built in administrator account on W10, but so far in my experience on my own computer, the built in account seemed to have absolutely no more control than I did on my own.

    It's just strange, I go in, it warns me twice about deleting the account, then it's gone. Reboot, and it's back?

    EDIT: Just to specify, both command line and Netplwiz both say only HIS account exists on the computer, it doesn't list this rogue account. This is what I meant in my first post about the fact that even Windows doesn't seem to believe it exists, HALF the time. *Frown regarding local admin user account in windows 10 :(
     
    Zakin, Jun 20, 2020
    #3
  4. regarding local admin user account in windows 10

    Locked Out of Admin Account

    Hello Linda,



    Thank you for writing to Microsoft Community Forums.



    1. Are you using a Microsoft account or a local account?
    2. Which version of Windows 10 you are using currently?
    3. Is the other user account an admin account?


    I suggest you to try using the on screen keyboard at the login page and check if you are able to login to the PC.



    1. At the login screen click on the
      ease of access icon at the bottom right hand corner.
    2. Click on the on screen keyboard to open it.
    3. Type the password and try to login.

    If you are using a Microsoft account, I suggest you to refer the article on

    how to reset your Microsoft account password
    .



    However, if you are using a local account, then I suggest you to refer the article on

    reset your Windows 10 local account password
    .



    Note: While performing these steps, there might be a risk of data loss. You may take a backup of the data before performing the steps.



    Hope it helps.

    Let us know if you got the help you needed by clicking ‘Yes’ or ‘No’.



    Regards,

    Prakhar Khare

    Microsoft Community – Moderator
     
    Prakhar_Khare, Jun 20, 2020
    #4
Thema:

regarding local admin user account in windows 10

Loading...
  1. regarding local admin user account in windows 10 - Similar Threads - regarding local admin

  2. Childs account linked to local user admin account

    in Windows 10 Gaming
    Childs account linked to local user admin account: Hi,I use a local account in windows 11 which has administer privileges. After I had logged my child into the xbox app their email address has been associated with the local account and now all the child safe settings have been applied to the local admin account and I can't...
  3. Childs account linked to local user admin account

    in Windows 10 Software and Apps
    Childs account linked to local user admin account: Hi,I use a local account in windows 11 which has administer privileges. After I had logged my child into the xbox app their email address has been associated with the local account and now all the child safe settings have been applied to the local admin account and I can't...
  4. Local user account disappeared and windows defaulted to admin account after update

    in Windows 10 Software and Apps
    Local user account disappeared and windows defaulted to admin account after update: I have windows 10 and after restarting my PC yesterday, windows ran some updates, after which my main account disappeared and the system defaulted to admin account. I do not know the password to the admin account so I can no longer login and there is no option to change user,...
  5. Local user account disappeared and windows defaulted to admin account after update

    in Windows 10 Installation and Upgrade
    Local user account disappeared and windows defaulted to admin account after update: I have windows 10 and after restarting my PC yesterday, windows ran some updates, after which my main account disappeared and the system defaulted to admin account. I do not know the password to the admin account so I can no longer login and there is no option to change user,...
  6. Local admin account password - Windows 10

    in Windows Hello & Lockscreen
    Local admin account password - Windows 10: Hi, my laptop suffers from occasional disk errors and I get into disk repair mode. I get asked for a password I assume admin and enter it successfully - job done? Not exactly, I can't figure out how to change this password as I can't see a password change option under account...
  7. user local and admin accounts missing

    in Windows 10 Network and Sharing
    user local and admin accounts missing: Since a about a week my local user account and my admin account are gone. With it, the documents, pictures and downloads directories are nearly empty, only the most recent documents are listed. Luckily I save most of my documents on other drives but I would like to find my...
  8. Windows 10 update messed up admin local user account

    in Windows 10 Customization
    Windows 10 update messed up admin local user account: I had an update for Windows 10 hit the other day that could not be bypassed. I then went to get back into my computer, and initially could not log into the computer at all. I got a cycle where it was stuck and eventually gave me a message stating:...
  9. duplicate current admin settings of local account to a local user account on same system

    in AntiVirus, Firewalls and System Security
    duplicate current admin settings of local account to a local user account on same system: So I have set up everything as I want it with an admin account on a fresh install of win 10 home . Now I want to have 1 user account and 1 admin account for security reason (the same user for both accounts). How do I duplicate all the settings and apps I currently have on the...
  10. Downgrading from a local Admin Account to a Standard User Account?

    in User Accounts and Family Safety
    Downgrading from a local Admin Account to a Standard User Account?: After reinstalling Windows 10, I created a local Admin user account just enough for me to install some apps and set things up. After that, I created another local Admin account. Now, I need to downgrade my current Admin account (which I created during setup) to a Standard...