Code on the Shelf
  • Home
  • .NET
  • Docker
  • Azure
  • Entity Framework
  • Metrics
Sign in Subscribe
Windows 10

Enable and Disable the Windows 10 Administrator

Enabling the default Windows 10 Administrator Account can be a convenient solution to a solving some problems that can happen with your own account.

David Guerin

22 Aug 2020 • 1 min read
Enable and Disable the Windows 10 Administrator

Enabling the default Windows 10 Administrator Account can be a convenient solution in solving some problems that can happen with your own account.

When you are logged into you account a number of processes running under your permissions lock the folders and files within your own user directory in [C:\Users\[your username]]. If you need to manipulate them you need to stop the process which is using the locked files and folders.


However that is not always possible and it's easier to simply log in to the Default Administrator account (or another Admin Level account if you have one) and preform your folder or file work from there.

First think you need to do is activate the account which you can do from an Elevated Powershell or console window:

net user administrator /active:yes

If you want to password protect the account you can do that as follows:

net user administrator [password] /active:yes

When you are finished doing what you need to do, you can disable the Administrator Account once again with the follow:

net user administrator /active:no

Sometimes when you install Windows 10, the default account name you get for your new account is not what you want. Using the above administrator account you can log in and change the details of the other account to a name as you see fit. Remember that you are changing folder paths so do expect some apps to not work.

There are other steps you may need to do to "completely" move from one user folder name to another, ie: from one C:\User\[username-1] to C:\User\[username-2]. The details of  how to do this can be found here.


Sign up for more like this.

Enter your email
Subscribe
Handy runtime Docker Container Commands

Handy runtime Docker Container Commands

Here are some super handy docker container commands
04 Jul 2022 1 min read
Azure Web Apps - SSH access for Custom Containers

Azure Web Apps - SSH access for Custom Containers

For most "smaller" projects I use Azure Web Apps for hosting. It just takes care of all the work of hosting sites, APIs, and Apps in a PaaS manor, so I don't have to worry about it.
16 Jan 2022 2 min read
Better understanding of performance with dotnet and dotnet GC

Better understanding of performance with dotnet and dotnet GC

Background research you need to put into your head :) 1. https://devblogs.microsoft.com/dotnet/internals-of-the-poh/ 2. https://devblogs.microsoft.com/dotnet/performance-improvements-in-net-core-3-0/ 3. https://docs.microsoft.com/en-us/visualstudio/profiling/dotnet-alloc-tool?view=vs-2019 4. https://github.com/Maoni0/mem-doc/blob/master/doc/.NETMemoryPerformanceAnalysis.md
10 Mar 2021
Code on the Shelf © 2025
Powered by Ghost