Windows Update keeps failing to update

Page 2 of 4 FirstFirst 1234 LastLast

  1. Posts : 53
    Windows 7 Home Premium 64-bit
    Thread Starter
       #11

    Here's what happens when I run the previous commands locally:

    Code:
    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
    
    C:\Windows\system32>ICACLS C:\Windows\Temp
    C:\Windows\Temp BUILTIN\Users:(CI)(S,WD,AD,X)
                    BUILTIN\Administrators:(F)
                    BUILTIN\Administrators:(OI)(CI)(IO)(F)
                    NT AUTHORITY\SYSTEM:(F)
                    NT AUTHORITY\SYSTEM:(OI)(CI)(IO)(F)
                    CREATOR OWNER:(OI)(CI)(IO)(F)
                    BUILTIN\Users:(OI)(CI)(RX)
    
    Successfully processed 1 files; Failed processing 0 files
    
    C:\Windows\system32>ATTRIB C:\Windows\Temp\CheckSUR
    File not found - C:\Windows\Temp\CheckSUR
    
    C:\Windows\system32>ICACLS C:\Windows\Temp\CheckSUR
    C:\Windows\Temp\CheckSUR: The system cannot find the file specified.
    Successfully processed 0 files; Failed processing 1 files
    
    C:\Windows\system32>ICACLS C:\Windows
    C:\Windows NT SERVICE\TrustedInstaller:(F)
               NT SERVICE\TrustedInstaller:(CI)(IO)(F)
               NT AUTHORITY\SYSTEM:(M)
               NT AUTHORITY\SYSTEM:(OI)(CI)(IO)(F)
               BUILTIN\Administrators:(M)
               BUILTIN\Administrators:(OI)(CI)(IO)(F)
               BUILTIN\Users:(RX)
               BUILTIN\Users:(OI)(CI)(IO)(GR,GE)
               CREATOR OWNER:(OI)(CI)(IO)(F)
    
    Successfully processed 1 files; Failed processing 0 files
    
    C:\Windows\system32>ICACLS C:\Windows\System32
    C:\Windows\System32 NT SERVICE\TrustedInstaller:(F)
                        NT SERVICE\TrustedInstaller:(CI)(IO)(F)
                        NT AUTHORITY\SYSTEM:(M)
                        NT AUTHORITY\SYSTEM:(OI)(CI)(IO)(F)
                        BUILTIN\Administrators:(M)
                        BUILTIN\Administrators:(OI)(CI)(IO)(F)
                        BUILTIN\Users:(RX)
                        BUILTIN\Users:(OI)(CI)(IO)(GR,GE)
                        CREATOR OWNER:(OI)(CI)(IO)(F)
    
    Successfully processed 1 files; Failed processing 0 files
    There is no difference between the outputs of commands in either way.
    Last edited by yildizabdullah; 09 Aug 2014 at 05:02. Reason: Addition to post
      My Computer


  2. Posts : 53
    Windows 7 Home Premium 64-bit
    Thread Starter
       #12

    I think I changed administrator settings by mistake and I cannot find a way to correct this other than installing Windows 7 from scratch :).
      My Computer


  3. Posts : 21,482
    Win 7 x64 Home Premium (and x86 VirtualBox VM)/Win10
       #13

    You could try a repair install - but I'm not sure how that'd work when trying it remotely.

    Let's see what we can do with the permissions (the last set of data is fine)

    Open an Elevated Command Prompt, and run the following commands

    TAKEOWN /F C:\Windows\Temp /A
    ICACLS C:\Windows\Temp /remove User
    ICACLS C:\Windows\Temp /grant User:(CI)(S,WD,AD,X)
    ICACLS C:\Windows\Temp

    post the results.
      My Computer


  4. Posts : 53
    Windows 7 Home Premium 64-bit
    Thread Starter
       #14

    NoelDP said:
    You could try a repair install - but I'm not sure how that'd work when trying it remotely.

    Let's see what we can do with the permissions (the last set of data is fine)

    Open an Elevated Command Prompt, and run the following commands

    TAKEOWN /F C:\Windows\Temp /A
    ICACLS C:\Windows\Temp /remove User
    ICACLS C:\Windows\Temp /grant User:(CI)(S,WD,AD,X)
    ICACLS C:\Windows\Temp

    post the results.
    Code:
    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
    
    C:\Windows\system32>TAKEOWN /F C:\Windows\Temp /A
    
    SUCCESS: The file (or folder): "C:\Windows\Temp" now owned by the administrators
     group.
    
    C:\Windows\system32>ICACLS C:\Windows\Temp /remove User
    Successfully processed 0 files; Failed processing 0 files
    
    C:\Windows\system32>ICACLS C:\Windows\Temp /grant User:(CI)(S,WD,AD,X)
    User: No mapping between account names and security IDs was done.
    Successfully processed 0 files; Failed processing 1 files
    
    C:\Windows\system32>ICACLS C:\Windows\Temp
    C:\Windows\Temp BUILTIN\Users:(CI)(S,WD,AD,X)
                    BUILTIN\Administrators:(F)
                    BUILTIN\Administrators:(OI)(CI)(IO)(F)
                    NT AUTHORITY\SYSTEM:(F)
                    NT AUTHORITY\SYSTEM:(OI)(CI)(IO)(F)
                    CREATOR OWNER:(OI)(CI)(IO)(F)
                    BUILTIN\Users:(OI)(CI)(RX)
    
    Successfully processed 1 files; Failed processing 0 files
      My Computer


  5. Posts : 21,482
    Win 7 x64 Home Premium (and x86 VirtualBox VM)/Win10
       #15

    Bother! typo on my part, Sorry!

    it should have been...

    Open an Elevated Command Prompt, and run the following commands

    TAKEOWN /F C:\Windows\Temp /A
    ICACLS C:\Windows\Temp /remove Users
    ICACLS C:\Windows\Temp /grant UsersCI)(S,WD,AD,X)
    ICACLS C:\Windows\Temp


    post the results.
      My Computer


  6. Posts : 53
    Windows 7 Home Premium 64-bit
    Thread Starter
       #16

    NoelDP said:
    Bother! typo on my part, Sorry!

    it should have been...

    Open an Elevated Command Prompt, and run the following commands

    TAKEOWN /F C:\Windows\Temp /A
    ICACLS C:\Windows\Temp /remove Users
    ICACLS C:\Windows\Temp /grant UsersCI)(S,WD,AD,X)
    ICACLS C:\Windows\Temp


    post the results.
    Code:
    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
    
    C:\Windows\system32>TAKEOWN /F C:\Windows\Temp /A
    
    SUCCESS: The file (or folder): "C:\Windows\Temp" now owned by the administrators
     group.
    
    C:\Windows\system32>ICACLS C:\Windows\Temp /remove Users
    processed file: C:\Windows\Temp
    Successfully processed 1 files; Failed processing 0 files
    
    C:\Windows\system32>ICACLS C:\Windows\Temp /grant Users:(CI)(S,WD,AD,X)
    processed file: C:\Windows\Temp
    Successfully processed 1 files; Failed processing 0 files
    
    C:\Windows\system32>ICACLS C:\Windows\Temp
    C:\Windows\Temp BUILTIN\Administrators:(F)
                    BUILTIN\Users:(CI)(S,WD,AD,X)
                    BUILTIN\Administrators:(OI)(CI)(IO)(F)
                    NT AUTHORITY\SYSTEM:(F)
                    NT AUTHORITY\SYSTEM:(OI)(CI)(IO)(F)
                    CREATOR OWNER:(OI)(CI)(IO)(F)
                    NT SERVICE\TrustedInstaller:(I)(F)
                    NT SERVICE\TrustedInstaller:(I)(CI)(IO)(F)
                    NT AUTHORITY\SYSTEM:(I)(F)
                    NT AUTHORITY\SYSTEM:(I)(OI)(CI)(IO)(F)
                    BUILTIN\Administrators:(I)(F)
                    BUILTIN\Administrators:(I)(OI)(CI)(IO)(F)
                    BUILTIN\Users:(I)(RX)
                    BUILTIN\Users:(I)(OI)(CI)(IO)(GR,GE)
                    CREATOR OWNER:(I)(OI)(CI)(IO)(F)
    
    Successfully processed 1 files; Failed processing 0 files
    
    C:\Windows\system32>
      My Computer


  7. Posts : 21,482
    Win 7 x64 Home Premium (and x86 VirtualBox VM)/Win10
       #17

    Duh? what happened there?
    It looks like something forced inheritance on the folder in the meantime - which was definitely not the intention or capability of my script.

    Please undo that - then post the results of another

    ICACLS C:\Windows\Temp
      My Computer


  8. Posts : 53
    Windows 7 Home Premium 64-bit
    Thread Starter
       #18

    NoelDP said:
    Duh? what happened there?
    It looks like something forced inheritance on the folder in the meantime - which was definitely not the intention or capability of my script.

    Please undo that - then post the results of another

    ICACLS C:\Windows\Temp
    How can I undo it :) (by right-clicking on the folder and modifying Security settings)?
      My Computer


  9. Posts : 21,482
    Win 7 x64 Home Premium (and x86 VirtualBox VM)/Win10
       #19

    Yep - UNtick the 'inherit permissions...' box in the Advanced area
      My Computer


  10. Posts : 53
    Windows 7 Home Premium 64-bit
    Thread Starter
       #20

    NoelDP said:
    Duh? what happened there?
    It looks like something forced inheritance on the folder in the meantime - which was definitely not the intention or capability of my script.

    Please undo that - then post the results of another

    ICACLS C:\Windows\Temp
    Code:
    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
    
    C:\Windows\system32>ICACLS C:\Windows\Temp
    C:\Windows\Temp BUILTIN\Administrators:(OI)(CI)(F)
                    NT AUTHORITY\SYSTEM:(OI)(CI)(F)
                    CREATOR OWNER:(OI)(CI)(IO)(F)
                    BUILTIN\Users:(CI)(S,WD,AD,X)
    
    Successfully processed 1 files; Failed processing 0 files
      My Computer


 
Page 2 of 4 FirstFirst 1234 LastLast

  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 21:32.
Find Us