1) So the problem is i did't have ownership rights over folder or files so i can't be able to perform any action like :
2) First of all open cmd by pressing (winkey + R ) then typing "cmd" OR open command prompt by searching "cmd"
3) Open the directory in which the folder or file is located in mine case folder is "tmep" having two files located in "D" drive
4) After opening simply type command "takeown /f <foldername> /r /d y" well if the target is the file try simply "takeown /f <filename>" the /f is for full control
5) this wil give you the ownership of file and folder as shown then you have to run command "icacls <foldername> /grant user-name:F /T" put your current username and hit enter this will display:
6) The /T means icacls will be applied on all files inside that folder.
if some file is giving problem put that command "icacls * /T /Q /C /RESET" to rest permissions inside folder directory as:
if some file is giving problem put that command "icacls * /T /Q /C /RESET" to rest permissions inside folder directory as:
7) To know the complete usage information for Takeown.exe and ICacls.exe, run these commands from a Command Prompt window
"takeown /?"
"icacls /?"
. . .
refer video for this
"icacls /?"
. . .
refer video for this
new
ReplyDelete