VBS Script To Create AD User "Home Drive"

Home Forums Scripting General Scripting VBS Script To Create AD User "Home Drive"

Viewing 1 post (of 1 total)
  • Author
    Posts

  • jmurphy1919
    Member
    #167412

    Evening,

    I’m after a VBS script ( which i will run as a GPO/Logon ) that will create a folder on our fileserver in a certain directory for all active directory users. This will be then mapped to Z drive and the permissions locked to that user & Domain Admins

    Currently im having to create the folder manually and then use GPO to map that drive i just want a script to create the folder for me automatically for all ( or now new ) users and set permissions

    Folder names need to be the logon name (%Username%) ??
    directory is a network share on the file server
    //fileserver/users/

    Permissions needs to be this user only to have full permissions and Domain Admins

    folders currently in this directory need to be left alone and it only work for new users going forward.

    anyone help/?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

The World’s Most Comprehensive Teams to Teams Migration Checklist

Whether you have just started thinking about migration or have already begun to move, our Microsoft Teams Migration Checklist can help guide you through the different phases for a Teams migration to another tenant.

This detailed six-step guide will walk you through key decision points while also providing more prescriptive best practice recommendations where appropriate.

Discover key insights for the following phases of a Teams migration: 

  • Discovery
  • Pilot
  • Planning
  • Communication
  • Execution
  • Validation

Sponsored by: