how to prompt admin credentials for access to a shared folder?

Marco Aurelio 0 Reputation points
2023-04-19T07:42:22.2+00:00

Hi guys, i've a WS2022 (logged with admin domain account) with a shared hard drive and i've managed the user's permissions for each folder, but some of ones are accessible only for admin or IT Department and i wanna have the possibility to have the prompt for access with admin or user account with permission for that folders in a machine where user are not allowed, actually i just have the prompt that i've denied permissions and no way to put the credentials, there is a way for do that?

Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,766 Reputation points
    2023-04-20T15:16:42.42+00:00

    Hi, I'd be happy to help you out with your question. Sorry for the inconvenience caused. If you want to prompt for admin credentials to access a shared folder on Windows Server 2022, you can use the "runas" command to run File Explorer as a different user. First, open File Explorer and navigate to the shared folder you want to access. Then, right-click on the folder and select "Properties" from the context menu. Click on the "Security" tab and edit the permissions to remove all users except for the IT department and the admin account you want to use. Apply the changes and open the Start menu and type "cmd". Right-click on "Command Prompt" and select "Run as administrator". In the command prompt window, type "runas /user:DOMAIN\USERNAME explorer.exe", replacing "DOMAIN" and "USERNAME" with the actual domain and username of the admin account you want to use. Press Enter and enter the password for the admin account when prompted. Once you've entered the password, File Explorer will open with the admin account's permissions, and you will be able to access the shared folder that was previously restricted. If you have any other questions or need assistance with anything, please don't hesitate to let me know. I'm here to help.

    If the reply was helpful, please don’t forget to upvote or accept as answer, thank you.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.