Script home drive works partially

Discussion in 'Scripting' started by Antknee, Jul 13, 2004.

  1. Antknee

    Antknee Guest

    Hi. I stole the script for modifying a user's account property to specify a home drive & folder from the Script Center.
    It works in that it makes the change to the account, but it does not auto-create the folder as it would if I was to do it manually.
    I am logged in with Domain Admin privledges.
    Thoughts? Feelings?
    Thanks
     
    Antknee, Jul 13, 2004
    #1
    1. Advertisements

  2. Hi

    Use the Scripting.FileSystemObject to create the folder, and to set
    permissions, e.g. shell out and run cacls.exe.

    For an example on this, take a look at the "Create Users" script at
    http://www.rlmueller.net/freecode4.htm

    (Richard Mueller's web site)
     
    Torgeir Bakken \(MVP\), Jul 14, 2004
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.