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 ...
-
6th October 2010, 05:07 PM #1
- 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%
-
-
IDG Tech News
-
6th October 2010, 05:47 PM #2 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.
-
-
6th October 2010, 07:20 PM #3
- 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.
-
-
6th October 2010, 07:37 PM #4 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
-
-
6th October 2010, 09:20 PM #5
- 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: 
Similar Threads
-
By morganw in forum How do you do....it?
Replies: 10
Last Post: 13th June 2013, 06:34 PM
-
By morganw in forum Scripts
Replies: 10
Last Post: 22nd November 2010, 07:15 AM
-
By SimpleSi in forum CLEO
Replies: 2
Last Post: 26th January 2010, 07:15 PM
-
By HodgeHi in forum Coding
Replies: 6
Last Post: 3rd July 2009, 10:13 AM
-
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
-
Forum Rules