windows.rst
changeset 1071 d06823550de7
parent 1043 3785e14cca53
child 1082 ffb3f274b8fe
equal deleted inserted replaced
1070:d6170ebe9f7c 1071:d06823550de7
   418   schtasks /delete /tn %TASK_NAME% /f
   418   schtasks /delete /tn %TASK_NAME% /f
   419 
   419 
   420 Change NTFS permission.
   420 Change NTFS permission.
   421 =======================
   421 =======================
   422 
   422 
       
   423   http://support.microsoft.com/kb/919240
       
   424                 The Icacls.exe utility is available for Windows Server 2003 with
       
   425                 Service Pack 2
       
   426 
   423 Change NTFS permission with 'icacls'.
   427 Change NTFS permission with 'icacls'.
   424 -------------------------------------
   428 -------------------------------------
   425 
   429 
   426 'icacls' allow option:
   430 'icacls' allow option:
   427 
   431 
   433  * /q - Suppresses success messages.
   437  * /q - Suppresses success messages.
   434 
   438 
   435 Recursively change the owner of all matching files to the specified user::
   439 Recursively change the owner of all matching files to the specified user::
   436 
   440 
   437   cmd> icacls %dir% /setowner %user% /t /c
   441   cmd> icacls %dir% /setowner %user% /t /c
       
   442 
       
   443 or simply::
       
   444 
       
   445   cmd> takeown /r /f %file%
   438 
   446 
   439 Recursively grand full access for everyone::
   447 Recursively grand full access for everyone::
   440 
   448 
   441   cmd> icacls %dir% /t /grant:r %user%:(f)
   449   cmd> icacls %dir% /t /grant:r %user%:(f)
   442   cmd> icacls %dir% /t /grant:r *S-1-1-0:(f)
   450   cmd> icacls %dir% /t /grant:r *S-1-1-0:(f)