cacls help

From: Daniel (Daniel_Reagan@hotmail.com)
Date: 07/31/02


From: "Daniel" <Daniel_Reagan@hotmail.com>
Date: Wed, 31 Jul 2002 06:55:07 -0700


I am writing a script to create user accounts in active
directory in vb6. i am trying to use cacls.exe, or
xcacls.exe to set permissions on each users home
directory. i want cacls or xcacls to export its results
to a text file, so that i can make a log of users whose
permissions did not get set. the output to a text file
part works great from the command line, but when i try to
call it from vb, i get nothing, does not even make the
text file. does anyone know anything about this?? here
are the lines of code that i use to call cacls.exe:

Call Shell("cacls " & usr.HomeDirectory & " /t /e /c /g "&
usr.UserName & ":C")
Call Shell("cacls " & usr.HomeDirectory & " >C:\log.txt")

of course they aren't spaced on diffrent lines like that
any help would be appreciated!!



Relevant Pages

  • Re: Adding domain users to a site document library from command-li
    ... what i want to do is set permissions on document library level in a ... sharepoint site. ... The following ldifde script will do the job much more simply than dot net ...
    (microsoft.public.sharepoint.portalserver)
  • Re: SMS Installer cannot create an NT Service
    ... If you want to post the script I could look over it real quick and see if I ... You can set permissions on registry keys and hives through something like ... I did a repackage of this install using SMS ...
    (microsoft.public.sms.installer)
  • Re: Set public folder permissions?
    ... If you have an example script, on how to set permissions on ... > How are you authenticating against the server in your app? ... >> I'm trying to set permissions on a public folder in my exchange setup. ...
    (microsoft.public.exchange.development)
  • Re: make installworld, permissions and labels
    ... >> and MAC labels on system binaries. ... >> I have a set of scripts to set permissions on everything but that's ... > I would think that easier than a script. ...
    (FreeBSD-Security)
  • Re: NTFS Effective Permissions?
    ... No one seems to know how to set permissions of ... a registry key from script - a really BASIC task. ...
    (microsoft.public.scripting.wsh)