+ Post New Thread
Results 1 to 5 of 5
Scripts Thread, Req: Script to create Remote Desktop Home folder in Coding and Web Development; Is it possible to script the creation of a folder for users with a GPO or login script that will ...
  1. #1

    Join Date
    Apr 2009
    Location
    ALBANY
    Posts
    39
    Thank Post
    6
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Req: Script to create Remote Desktop Home folder

    Is it possible to script the creation of a folder for users with a GPO or login script that will map an "M" drive. I am setting it in the AD tab now but the problem is the users also need a folder called Temp in that M drive right now I just populate the home folder field in Remote Desktop Services Profile with \\servername\Home\%username%

  2. #2

    ZeroHour's Avatar
    Join Date
    Dec 2005
    Location
    Edinburgh, Scotland
    Posts
    5,573
    Thank Post
    869
    Thanked 1,293 Times in 786 Posts
    Blog Entries
    1
    Rep Power
    436
    Hi
    Take a look at GPP as it has the ability to map drives and its build into Windows Vista+ and can be enabled on XP using WSUS or manually by installing the group policy preferences pack.
    Just to clarify they need to map M:\ to \\server\home\%username% then create a folder Temp inside there (\\server\home\%username%\temp)?
    If so you can get GPP to do this without having to use script, all you do is set GPP to map the drive then in the user config->folders tell it to create a folder m:\temp and ensure you check the box that says run in the user context.
    That should make the folder and map you drive. I have a vbs script that can do all of this as well but GPP can simply things rather then script.

  3. #3

    Join Date
    Apr 2009
    Location
    ALBANY
    Posts
    39
    Thank Post
    6
    Thanked 1 Time in 1 Post
    Rep Power
    0
    I will check into that . They will be logging into Server 2008R2. I have not played around with Group Policy preferences much.

  4. #4


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,208
    Thank Post
    218
    Thanked 812 Times in 694 Posts
    Rep Power
    274
    so you want a drive m mapped and then a temp folder created?

    Code:
    net use m: /home /persistent:no
    if not exist m:\temp md m:\temp

  5. #5

    Join Date
    Apr 2009
    Location
    ALBANY
    Posts
    39
    Thank Post
    6
    Thanked 1 Time in 1 Post
    Rep Power
    0
    The path to the folder will not exist until they log in with the script the first time. Right now when I use add the path in the Remote Desktop Services Profile section in AD it auto creates the folder named after the users username. So I need the script or gpp to create the users home folder as well as create a temp folder in the home folder. Right now not everybody gets a home folder just certain groups. So I was hoping that when a user joined that group they would get the group policy and it would take care of creating the needed folders. I think gpp is the way to go looking at it but I have to play a bit.

SHARE:
+ Post New Thread

Similar Threads

  1. How do you redirect a users desktop into the their home folder?
    By morganw in forum How do you do....it?
    Replies: 10
    Last Post: 13th June 2013, 06:34 PM
  2. Replies: 10
    Last Post: 22nd November 2010, 07:15 AM
  3. Replies: 2
    Last Post: 26th January 2010, 07:15 PM
  4. terminal script to create home dirs in OS X
    By HodgeHi in forum Coding
    Replies: 6
    Last Post: 3rd July 2009, 10:13 AM
  5. Replies: 1
    Last Post: 1st February 2006, 01:04 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •