lock folder using cmd | All About Testing https://allabouttesting.org Software Testing & Ethical Hacking Fundamentals Mon, 14 Nov 2022 17:02:57 +0000 en-US hourly 1 https://wordpress.org/?v=6.3.2 https://i0.wp.com/allabouttesting.org/wp-content/uploads/2018/02/cropped-logo-favicon.jpg?fit=32%2C32&ssl=1 lock folder using cmd | All About Testing https://allabouttesting.org 32 32 135190090 How to lock and unlock folder using Command Prompt (CMD) in Windows https://allabouttesting.org/how-to-lock-and-unlock-folder-using-command-prompt-cmd-in-windows/?utm_source=rss&utm_medium=rss&utm_campaign=how-to-lock-and-unlock-folder-using-command-prompt-cmd-in-windows https://allabouttesting.org/how-to-lock-and-unlock-folder-using-command-prompt-cmd-in-windows/#comments Sun, 24 Sep 2017 15:32:36 +0000 https://allabouttesting.org/?p=1068 You can lock and unlock the folder by using the Command Prompt (CMD). Open Command Prompt (CMD) with administrator rights....

The post How to lock and unlock folder using Command Prompt (CMD) in Windows first appeared on All About Testing.

]]>
You can lock and unlock the folder by using the Command Prompt (CMD).

Open Command Prompt (CMD) with administrator rights. Type below command for lock folder.

C:\Windows\system32>cacls <FolderPath> /E /P everyone:n

You can check whether the folder is accessible or not by simply clicking on the locked folder. If deny message pop up comes, indicates folder is locked.

You can unlock folder by type below command in CMD.

C:\Windows\system32>cacls <FolderPath> /E /P everyone:f

Now, you can access the folder by simply clicking it. Below is the demo:

The post How to lock and unlock folder using Command Prompt (CMD) in Windows first appeared on All About Testing.

]]>
https://allabouttesting.org/how-to-lock-and-unlock-folder-using-command-prompt-cmd-in-windows/feed/ 6 1068