How to remove Win 7 Install files?

Page 2 of 2 FirstFirst 12
  1.    #11

    I used Home Premium Upgrade on two home computers which I set up to run as Administrator first thing after install running this CMD as administrator: net user administrator /active:yes

    I then went into User Accounts and deleted my named account and files since there weren't any yet.

    I am running as full Admin still in 7HP.
      My Computer


  2. Posts : 56
    Microsoft Windows 7 Professional 64-bit Service Pack 1
    Thread Starter
       #12

    Purchased the Upgrade from W7Prem to W7Pro and now have the Admin account.

    On the other than the main drive that still has the Windows directory, I took ownership, then changed the Owner to the Admin, but still had to change each directory one at a time to get the permission to delete the files and than that single directory. This takes forever!

    How do you get the permission to delete after being the Owner?

    I still have many directories and another drive to do the same thing to remove the Windows directory. Is there an easier way to delete this entire directory at once and not one at a time?
      My Computer


  3. Posts : 56
    Microsoft Windows 7 Professional 64-bit Service Pack 1
    Thread Starter
       #13

    I found the answer and it worked!!!
    1. open an elevated command prompt as administrator
    2.
    issues the following commands:
    3. For Files:
    takeown /f file_name /d y
    icacls file_name /grant administrators:F

    4. For Folders or Directories (will perform action recursively):
    takeown /f directory_name /r /d y
    icacls directory_name /grant administrators:F /t


    5. Then just delete it.............gone!
      My Computer


 
Page 2 of 2 FirstFirst 12

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 02:46.
Find Us