2. Type ICACLs C:\ /Grant:r Administrators:F /T /C and press Enter. This command
tells the ICACLs command to change the rights for C:\. The /Grant command line switch
replaces the current rights for administrators (notice the :r entry) with full access. The /T
command line switch indicates that the ICACLs is supposed to perform this replacement for
all subdirectories and files and that it should ignore any errors it experiences. Figure 15.3
shows typical results from executing this command. The Administrators group now has full
access to the root directory, however, you don??™t have full access yet, even if you are a member
of the Administrators group. Notice that you still don??™t have access to the Program Files
or Windows directories. That??™s because Microsoft places additional restrictions on these
folders.
Figure 15.3
Change your rights
to the root directory
so you can perform
administrative tasks.
3. Type Takeown /A /F C:\Windows and press Enter.
4. Type ICACLs C:\Windows /Grant:r Administrators:F /T /C and press Enter. This particular
step can take a long time to complete. Make sure you wait long enough before you
assume something has gone wrong??”in fact, just go get a cup of coffee while you??™re waiting.
Pages:
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978