keogk Posted October 6, 2010 Posted October 6, 2010 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%
ZeroHour Posted October 6, 2010 Posted October 6, 2010 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.
keogk Posted October 6, 2010 Author Posted October 6, 2010 I will check into that . They will be logging into Server 2008R2. I have not played around with Group Policy preferences much.
sted Posted October 6, 2010 Posted October 6, 2010 so you want a drive m mapped and then a temp folder created? net use m: /home /persistent:no if not exist m:\temp md m:\temp
keogk Posted October 6, 2010 Author Posted October 6, 2010 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now