Windows 8 and 8.1 Forums


Icacls Command lying to me in Windows 8.1

  1. #1


    Posts : 7
    Windows 8.1 Professional

    Icacls Command lying to me in Windows 8.1


    (only recently I upgraded to Windows 8.1 from Windows 7, though I still will continue to help out at SevenForums, exclusively... for now...)

    I needed to reproduce UNI's findings as per post #25 in this thread at SevenForums. It involves viewing and editing just a few permission settings, all of which I usually like to do via the Command Prompt using the Icacls command.

    So whilst in the process of doing my thing, I noticed some output from Icacls that wasn't quite right -- namely, inherited permissions weren't showing. Rather, they were showing but Icacls reports them inherited permissions as explicit permissions, i.e. the "(I)" before "(F)" is missing which isn't right.

    Click image for larger version

    If I were to go and update the NewFileICreatedJustThen.txt permissions in any way, then change permissions back to what it was, Icacls would then report the file's ACL correctly.

    E.g. I'll disable then immediately enable inheritance for the file through Explorer, then run Icacls on it again --

    Click image for larger version
    (Above is the correct output: each ACE should have "(I)(F)", not just "(F)")

    PowerShell's Get-Acl cmdlet always reports the permissions correctly. Something's up with Icacls - or my Windows 8.1 install. I'm just wondering if it's only me that has this problem, or if there's actually a bug with Icacls.exe in Windows 8.1 -- a bug that I can't seem to find any discussion about on the web.


    Could somebody, anyone, here, using Windows 8.1 -- 1) create a new file on their Desktop folder,
    2) run Icacls on it,
    3) then post the command's output here.

    I'd like to know if Icacls' behaviour is like what I describe, across all Windows 8.1 installs.



    Thanks in advance,

    Pyprohly

      My System SpecsSystem Spec

  2. #2


    Here is what I get:

    Code:
     Directory of C:\Users\rrkurtz\Desktop
    
    07/03/2015  12:07 PM                23 New Text Document.txt
                   1 File(s)             23 bytes
                   0 Dir(s)  154,617,896,960 bytes free
    
    C:\Users\rrkurtz\Desktop>icacls "New Text Document.txt"
    New Text Document.txt Everyone:(I)(F)
                          NT AUTHORITY\SYSTEM:(I)(F)
                          DESKTOP\rrkurtz:(I)(F)
                          BUILTIN\Administrators:(I)(F)
    
    Successfully processed 1 files; Failed processing 0 files
      My System SpecsSystem Spec

  3. #3


    Posts : 7
    Windows 8.1 Professional


    Thanks Ztruker!

    I'm relieved to know that Icacls isn't broken on Windows 8.1.

    Just to be sure though, Imma wait for one or two more samples from other Win8 users here, before I mark this thread solved.
      My System SpecsSystem Spec

  4. #4


    S.E. Texas
    Posts : 61
    windows 8.1 64bit


    Code:
    Directory of C:\Users\Craig\Desktop
    
    07/05/2015  08:16 AM    <DIR>          .
    07/05/2015  08:16 AM    <DIR>          ..
    07/05/2015  08:16 AM                 0 New Text Document.txt
                   1 File(s)              0 bytes
                   2 Dir(s)  769,388,892,160 bytes free
    
    C:\Users\Craig\Desktop>icacls "New Text Document.txt"
    New Text Document.txt NT AUTHORITY\SYSTEM:(F)
                          BUILTIN\Administrators:(F)
                          CRADOM-PC\Craig:(F)
    
    Successfully processed 1 files; Failed processing 0 files
      My System SpecsSystem Spec

  5. #5


    Florida, USA
    Posts : 141
    Windows 8.1 Pro x64 with Media Center, Windows 10 Pro x64, Windows 7 x64 Ultimate SP1


    I get this.

    Code:
    C:\Users\PAUL\Desktop>icacls test.txt
    test.txt NT AUTHORITY\SYSTEM:(I)(F)
             BUILTIN\Administrators:(I)(F)
             ***********\PAUL:(I)(F)
             S-1-5-21-3962217083-4268653096-60228462-1000:(I)(F)
             S-1-5-21-707511655-4143145014-399622024-1001:(I)(F)
             S-1-5-21-796730167-3810524866-4010277847-1000:(I)(F)
    
    
    Successfully processed 1 files; Failed processing 0 files
    Last edited by pbcopter; 05 Jul 2015 at 10:59.
      My System SpecsSystem Spec

  6. #6


    Does the result change if you do this from a Elevated Command Prompt?
      My System SpecsSystem Spec

  7. #7


    S.E. Texas
    Posts : 61
    windows 8.1 64bit


    Nope, same thing:

    Code:
    Directory of C:\Users\Craig\Desktop
    
    07/05/2015  05:03 PM    <DIR>          .
    07/05/2015  05:03 PM    <DIR>          ..
    07/05/2015  05:03 PM                 0 New Text Document.txt
                   1 File(s)              0 bytes
                   2 Dir(s)  769,343,860,736 bytes free
    
    C:\Users\Craig\Desktop>icacls "New Text Document.txt"
    New Text Document.txt NT AUTHORITY\SYSTEM:(F)
                          BUILTIN\Administrators:(F)
                          CRADOM-PC\Craig:(F)
    
    Successfully processed 1 files; Failed processing 0 files
    
    C:\Users\Craig\Desktop>
      My System SpecsSystem Spec

  8. #8


    Posts : 7
    Windows 8.1 Professional


    Thanks Pbcopter,

    Like Ztruker's, your Icacls command is working correctly.


    Thanks Cradom,

    Hmm... you seem to suffer the same case of un-trustable Icacls to me. Cradom, could I get you do a few more things? Also, if you don't mind, I'd also like to know, approximately, how recent your Windows 8 install was.

    Cradom, could you 1) Create a new file again,
    2) Open a PowerShell window,
    3) Using that PowerShell session, run a line similar to the below
    Code:
    $a = "C:\Path\to\FileIJustCreated.txt"; (get-acl $a).access; icacls $a
    and post back your findings. Thanks.
      My System SpecsSystem Spec

  9. #9


    S.E. Texas
    Posts : 61
    windows 8.1 64bit


    Only thing I can answer til I get off work (1:00p) is it's an OEM install. Bought new last month. If there's an install date I don't know where to find it.
      My System SpecsSystem Spec

  10. #10


    Run systeminfo for a Elevated Command Prompt, look at Original Install Date. Mine is:

    Original Install Date: 04/14/2014, 5:44:43 PM
      My System SpecsSystem Spec

Page 1 of 2 12 LastLast
Icacls Command lying to me in Windows 8.1
Related Threads
How to Run "SFC /SCANNOW" Command at Boot or in Windows 8 and 8.1 The SFC command scans the integrity of all protected system files and replaces incorrect versions with correct Microsoft versions. This tutorial will show you how to run the sfc /scannow command at boot or in Windows 8 to...
Lying Window in Software and Apps
During the installation of a downloaded program on Windows 8.1, taking all the defaults, I see a command-line window open with the content, "SUCCESS: The file (or folder): "xxx" now owned by user "(user&computer_name)". processed file: xxx.exe Successfully processed 1 files; Failed processing...
msg command in Windows 8 in Network & Sharing
Does anyone know if it's possible to use the msg command on a Microsoft account on Windows 8.1 please? I can send messages from the MS account to other computers but unable to receive them. I get the following error message: Error 5 getting session names When switching the account back to...
windows command procesor in System Security
every time i switch on my laptop i get a windows command procesor black box pop up with writing in it i cant read what the writing says brcause it dissapears quickly some one says its a virus or spyware. when i run a virus scan no problems are found and when i run a malware scan it says no problems...
How to Open a Command Prompt in Windows 8 and 8.1 A command prompt is an entry point for typing computer commands in the Command Prompt window. By typing commands at the command prompt, you can perform tasks on your computer without using the Windows graphical interface. This tutorial will...
Windows Command Processor in General Support
I download the and burned the iso image when the consumer preview became available. I was getting an error from the action center that said wcpotherfailure3. This morning I decided to download and burn the iso again to see if it was something with the previous image. After the...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook