Re: Recursively list a folder with VBScript

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Al Dunbar [MS-MVP] (alan-no-drub-spam_at_hotmail.com)
Date: 03/02/04

  • Next message: Al Dunbar [MS-MVP]: "Re: Can I do client side populations from my ASP Page?"
    Date: Mon, 1 Mar 2004 20:42:13 -0700
    
    

    "Marco Shaw" <marco@Z.nbnet.nb.ca> wrote in message
    news:POH0c.107564$IF6.3306282@ursa-nb00s0.nbnet.nb.ca...
    > > Your pseudocode above implies that all of the files are to have the same
    > > permission applied. Do you really need to do this to all the files that
    do
    > > not already have this permission? Why not give all the files that
    > permission
    > > without worrying about which are out of compliance? Seems to me that
    cacls
    > > or xcacls allows you to set permissions on a whole set of files at one
    > shot.
    > > Seems to me that would be simpler and faster.
    >
    > I agree. My root problem is strange where some files will just lose the
    > perms... I can't explain it. From Explorer, if I remove/readd the perms
    to
    > the folder, by inheritance, all the files/folders take the perms again,
    but
    > if I use cacls on the root folder to remove/readd the perms, the
    problematic
    > file will not take the perms properly. I have to use cacls to readd the
    > perms directly on the affected file.

    I suspect the problem might relate to NTFS file system version differences
    and the server/workstation o/s's and utility versions you happen to use. See
    (watch linewrapping):

    http://www.google.ca/search?as_q=ntfs+versions&num=10&hl=en&ie=UTF-8&oe=UTF-8&btnG=Google+Search&as_epq=&as_oq=&as_eq=linux&lr=&as_ft=i&as_filetype=&as_qdr=all&as_occt=any&as_dt=i&as_sitesearch=&safe=images

    One of the pages referenced states that: "SP4 contains an updated version of
    NTFS.sys that can also read NTFS 5 volumes". I think the key here is "read"
    as opposed to "read and write".

    When we implemented w2k admin workstations but stayed with nt4 on the
    server, we were warned that, once we had changed permissions on the server
    from a w2k system we could expect some anomalies. I expect that when you
    make changes from explorer, you are using NT5 or up (w2k or xp), whereas
    cacls.exe may have been from the nt4 reskit, and less adept at NTS version
    5.

    > I'm just trying to automate this process with an ASP front-end interface
    for
    > my tier 1 people...

    You might have to upgrade to the latest version of cacls, xcacls, or
    xxcacls, or script it directly in ADSI (ouch!). It also might depend on what
    your expectations are on how permission inheritance should work. Should it
    be static only (i.e. at time of creation), or dynamic.

    /Al


  • Next message: Al Dunbar [MS-MVP]: "Re: Can I do client side populations from my ASP Page?"

    Relevant Pages