On windows 10 there is a network drive. It shows as disconnected but I can browse it. Its owner is SYSTEM and I would like to change the ownership to me but I cannot do even if I have admin privileges. Why is it stuck?
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
The issue you're experiencing with a network drive on Windows 10—showing as disconnected but still browsable, and being unable to change ownership even with admin privileges—can stem from several factors. Below, I'll explain the possible reasons and provide steps to resolve the issue.
Why This Happens
Network Drive Disconnected Status:
A network drive may show as "disconnected" in File Explorer due to a timeout or a failure to reconnect automatically after a system restart or network interruption. However, it may still be accessible because the underlying connection is re-established on demand when you attempt to browse it.
This is a common behavior in Windows and does not necessarily indicate a problem with the drive itself.
Ownership by SYSTEM:
The "SYSTEM" account is a built-in Windows account with the highest level of privileges, often used by services, drivers, and core operating system processes. If the network drive or its contents are owned by SYSTEM, it indicates that a system-level process (e.g., a service or driver) created or manages the drive or its contents.
Changing ownership from SYSTEM to a user account can be restricted due to security policies, even if you have administrative privileges, because SYSTEM is considered a higher authority than an admin user.
Permission Restrictions:
Even with admin privileges, certain files, folders, or drives may have permissions that explicitly deny changes to ownership or permissions. This is often the case for system-managed resources or network shares with specific access control lists (ACLs) set by the server hosting the share.
Network drives are also subject to permissions set on the server side, which may override local attempts to change ownership.
UAC (User Account Control) Limitations:
Even as an admin, UAC may prevent certain actions unless you explicitly elevate your privileges or run tools in a context that bypasses these restrictions.
Drive Mapping Context:
If the network drive was mapped by a system process or service (e.g., during startup via a script or Group Policy), it may be running in a different security context, making it inaccessible for ownership changes by a user, even an admin.
Steps to Resolve the Issue
Step 1: Verify the Network Drive Connection
Check the Drive Status:
Open File Explorer and look at the network drive under "This PC." If it shows a red "X" (disconnected), but you can still browse it, the connection is likely being re-established on demand.
To fix the "disconnected" status, try disconnecting and remapping the drive:
Right-click the drive and select "Disconnect."
Remap the drive by going to "This PC" > "Map network drive," entering the path (e.g., \\server\share), and checking the box for "Reconnect at sign-in."
Ensure Persistent Connection:
When mapping the drive, ensure the "Reconnect at sign-in" option is enabled to prevent the drive from appearing disconnected after a reboot.
Check Credentials:
If the network drive requires specific credentials, ensure they are saved or provided correctly. You can manage credentials using the net use command in an elevated Command Prompt:
cmd
net use Z: \\server\share /persistent:yes /user:username password
Replace Z:, \\server\share, username, and password with the appropriate values.
Step 2: Check Permissions on the Network Share
Server-Side Permissions:
The ownership and permissions of a network drive are primarily controlled by the server hosting the share, not your local machine. If the server has set the ownership to SYSTEM or restricted changes, you won't be able to modify ownership locally.
Contact the network administrator to check the share permissions and NTFS permissions on the server. Ask if they can grant you full control or change the ownership on the server side.
Local Permissions:
If the server allows changes, you can attempt to take ownership locally (see Step 3 below). However, if the server denies such changes, local attempts will fail.
Step 3: Take Ownership of the Drive or Folder
If the server permissions allow it, you can attempt to take ownership of the network drive or its contents. Since the owner is SYSTEM, you'll need to perform this action with elevated privileges.
Open an Elevated File Explorer:
To bypass UAC and permission restrictions, you may need to run File Explorer with full SYSTEM privileges. One way to do this is by using a third-party tool like "NSudo" or by running File Explorer as SYSTEM via a command-line trick. Alternatively, you can use the built-in tools with elevated privileges.
Take Ownership via GUI:
Right-click the network drive or folder in File Explorer and select "Properties."
Go to the "Security" tab and click the "Advanced" button.
In the "Advanced Security Settings" window, look for the "Owner" field at the top. If it says "SYSTEM," click the "Change" link next to it.
In the "Select User or Group" window, type your username (e.g., DOMAIN\Username or ComputerName\Username) and click "Check Names" to verify it. Then click "OK."
Check the box for "Replace owner on subcontainers and objects" if you want to take ownership of all contents.
Click "OK" to apply the changes.
Take Ownership via Command Line:
If the GUI method fails, you can use the takeown and icacls commands in an elevated Command Prompt:
Open Command Prompt as Administrator (search for "cmd," right-click, and select "Run as administrator").
Run the following command to take ownership of the drive or folder:
cmd
takeown /F Z:\ /R /D Y
Replace Z:\ with the drive letter or path of the network drive. The /R flag applies the command recursively, and /D Y automatically answers "Yes" to prompts.
Next, grant yourself full control over the drive or folder:
cmd
icacls Z:\ /grant "%username%:F" /T
Replace Z:\ with the drive letter or path, and %username% will automatically use your current username. The /T flag applies the command recursively.
Handle SYSTEM Restrictions:
If the above steps fail due to SYSTEM ownership, you may need to run the commands in a SYSTEM context. To do this, use a tool like "PsExec" from Sysinternals:
Download PsExec from the Microsoft Sysinternals website.
Open an elevated Command Prompt and navigate to the folder where PsExec is located.
Step 4: Check for Policy Restrictions
Group Policy or Security Policies:
If your computer is part of a domain, Group Policy settings may prevent you from changing ownership or permissions, even as an admin. Contact your network administrator to check for such restrictions.
On a standalone machine, you can check local security policies:
Press Win + R, type secpol.msc, and press Enter.
Navigate to "Local Policies" > "Security Options" and look for policies related to "User Account Control" or "Take ownership of files or other objects."
Registry Settings:
Certain registry settings may also restrict ownership changes. Be cautious when editing the registry, as incorrect changes can cause system instability:
Press Win + R, type regedit, and press Enter.
Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System.
Look for a value named EnableLUA (User Account Control). If it is set to 1, UAC is enabled, which is normal. Do not disable it unless absolutely necessary.
Step 5: Test and Verify
Reboot and Test:
After making changes, reboot your computer and verify that the network drive is connected and that you now own the drive or folder.
Check the "Properties" > "Security" tab again to ensure your user account has full control.
Persistent Issues:
If the drive reverts to SYSTEM ownership after a reboot, it may indicate that a system process, service, or script is resetting the ownership. Investigate startup scripts, scheduled tasks, or services that might be interacting with the network drive.
Additional Notes
Backup Important Data: Before making significant changes to permissions or ownership, ensure you have a backup of any critical data on the network drive, as mistakes can lead to data loss or inaccessibility.
Server-Side Control: Remember that network drives are ultimately controlled by the server hosting the share. If you cannot resolve the issue locally, the server administrator will need to assist.
Alternative Tools: If the built-in Windows tools fail, third-party utilities like "SetACL" or "SubInACL" can sometimes help manage permissions and ownership on stubborn files or drives.
If you encounter specific error messages or issues during any of these steps, please provide additional details, and I'll help you troubleshoot further.