|
it
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Mapped Drives and Home FoldersI am in charge of a network that needs to have more than one shared folder on
my windows 2003 server map to a drive letter on their XP workstation. Currently the already have a home folder mapped to their g:. What I would need to do is also have their systems automatically map a drive letter U: to the following folder \\calvaryadmin\staff faculty\gqwin. I don't have terminal services and have no idea how to create and run a script. Is there anyone out the that can help me do this and either give me a simple solution or the exact step by step? I would it like to do this and map the U: drive automatically no matter which workstation they log into. Thanks! -- Chris Chase 1. Create the script - On the Server, open Notepad. Type:
net use u: "\\calvaryadmin\staff faculty\gqwin" (include the quotes) Save the file as login.bat - or any other name with a .bat extension. 2. Distribute the script - There are several ways to do this. One way is to use Group Policy: On the Server go to Administrative Tools and open Group Policy Management. Expand the domain, right click on Default Domain Policy and select Edit. Double click on User Configuration, double click on Windows Settings, double click on Scripts, double click on Logon, and click the Add button - browse to the .bat file you created in #1. Note #2 will cause all users, including domain administrators, to map the U: drive. If you only want some users to map this drive, you can configure logon scripts on a per user basis in each user account's properties, or you can create an OU with its own policy and move the desired users to the OU. You could also place computers in an OU and use a machine startup script that would apply to the computers irrespective of which user logged on. Doug sherman MCSE, MCSA, MCP+I, MVP Show quoteHide quote "Chris Chase" <ChrisCh***@discussions.microsoft.com> wrote in message news:F74ED6CB-4943-4AFE-91A9-97C84B44B6C4@microsoft.com... > I am in charge of a network that needs to have more than one shared folder on > my windows 2003 server map to a drive letter on their XP workstation. > Currently the already have a home folder mapped to their g:. What I would > need to do is also have their systems automatically map a drive letter U: to > the following folder \\calvaryadmin\staff faculty\gqwin. I don't have > terminal services and have no idea how to create and run a script. Is there > anyone out the that can help me do this and either give me a simple solution > or the exact step by step? I would it like to do this and map the U: drive > automatically no matter which workstation they log into. > > Thanks! > -- > Chris Chase OKay...that sounds easy enough. If I only want certain users to use it then
I would put it in under the user profile for their account. Do I need to save the script to a certain folder in order for the system to be able to use it? Along the same lines as the info you helped me with so far. How do us that script with a wildcard. My thinking is when I create user logins as the beginning of the year and the system creates their home folder. I would like the script to have a wildcard in it so that I can use a generic script for all my students logins but the script will be able to map the drive to their individual home folder. Thanks for your help. Your making my life alot easier. Chris Chase Show quoteHide quote "Doug Sherman [MVP]" wrote: > 1. Create the script - On the Server, open Notepad. Type: > > net use u: "\\calvaryadmin\staff faculty\gqwin" (include the quotes) > > Save the file as login.bat - or any other name with a .bat extension. > > 2. Distribute the script - There are several ways to do this. One way is > to use Group Policy: > > On the Server go to Administrative Tools and open Group Policy Management. > Expand the domain, right click on Default Domain Policy and select Edit. > Double click on User Configuration, double click on Windows Settings, double > click on Scripts, double click on Logon, and click the Add button - browse > to the .bat file you created in #1. > > Note #2 will cause all users, including domain administrators, to map the U: > drive. If you only want some users to map this drive, you can configure > logon scripts on a per user basis in each user account's properties, or you > can create an OU with its own policy and move the desired users to the OU. > You could also place computers in an OU and use a machine startup script > that would apply to the computers irrespective of which user logged on. > > Doug sherman > MCSE, MCSA, MCP+I, MVP > > "Chris Chase" <ChrisCh***@discussions.microsoft.com> wrote in message > news:F74ED6CB-4943-4AFE-91A9-97C84B44B6C4@microsoft.com... > > I am in charge of a network that needs to have more than one shared folder > on > > my windows 2003 server map to a drive letter on their XP workstation. > > Currently the already have a home folder mapped to their g:. What I would > > need to do is also have their systems automatically map a drive letter U: > to > > the following folder \\calvaryadmin\staff faculty\gqwin. I don't have > > terminal services and have no idea how to create and run a script. Is > there > > anyone out the that can help me do this and either give me a simple > solution > > or the exact step by step? I would it like to do this and map the U: > drive > > automatically no matter which workstation they log into. > > > > Thanks! > > -- > > Chris Chase > > > Created the file. Put it a shared folder with read only access. I also
added the line to user's profile active directory user's area. It didn't run it when the user logged in. However, if I log in as that user and then it from the server by manually clicking on it. It works. Show quoteHide quote "Doug Sherman [MVP]" wrote: > 1. Create the script - On the Server, open Notepad. Type: > > net use u: "\\calvaryadmin\staff faculty\gqwin" (include the quotes) > > Save the file as login.bat - or any other name with a .bat extension. > > 2. Distribute the script - There are several ways to do this. One way is > to use Group Policy: > > On the Server go to Administrative Tools and open Group Policy Management. > Expand the domain, right click on Default Domain Policy and select Edit. > Double click on User Configuration, double click on Windows Settings, double > click on Scripts, double click on Logon, and click the Add button - browse > to the .bat file you created in #1. > > Note #2 will cause all users, including domain administrators, to map the U: > drive. If you only want some users to map this drive, you can configure > logon scripts on a per user basis in each user account's properties, or you > can create an OU with its own policy and move the desired users to the OU. > You could also place computers in an OU and use a machine startup script > that would apply to the computers irrespective of which user logged on. > > Doug sherman > MCSE, MCSA, MCP+I, MVP > > "Chris Chase" <ChrisCh***@discussions.microsoft.com> wrote in message > news:F74ED6CB-4943-4AFE-91A9-97C84B44B6C4@microsoft.com... > > I am in charge of a network that needs to have more than one shared folder > on > > my windows 2003 server map to a drive letter on their XP workstation. > > Currently the already have a home folder mapped to their g:. What I would > > need to do is also have their systems automatically map a drive letter U: > to > > the following folder \\calvaryadmin\staff faculty\gqwin. I don't have > > terminal services and have no idea how to create and run a script. Is > there > > anyone out the that can help me do this and either give me a simple > solution > > or the exact step by step? I would it like to do this and map the U: > drive > > automatically no matter which workstation they log into. > > > > Thanks! > > -- > > Chris Chase > > > OK - try this:
1. On the Server, save the .bat file to: C:\WINDOWS\SYSVOL\sysvol\(your domain name)\scripts 2. In Active Directory Users and Computers, double click the user's account, click the Profile tab. On the Logon script line, enter just the name of the .bat file - do not include a path. 3. If client machines are Windows XP, you may have to logon twice before the script works. Also, it is best if the user account is not currently logged onto any other machines. I don't quite follow your question about wild cards. If home folders are mapped to G:, you can't map some other folder to the same drive letter. Home folders are often created with the %username% variable, and you do not need a script to create these - see: http://support.microsoft.com/default.aspx?scid=kb;en-us;298403 Doug Sherman MCSE, MCSA, MCP+I, MVP Show quoteHide quote "Chris Chase" <ChrisCh***@discussions.microsoft.com> wrote in message news:BE050138-6009-471E-885D-FEBEE412956C@microsoft.com... > Created the file. Put it a shared folder with read only access. I also > added the line to user's profile active directory user's area. It didn't run > it when the user logged in. However, if I log in as that user and then it > from the server by manually clicking on it. It works. > > "Doug Sherman [MVP]" wrote: > > > 1. Create the script - On the Server, open Notepad. Type: > > > > net use u: "\\calvaryadmin\staff faculty\gqwin" (include the quotes) > > > > Save the file as login.bat - or any other name with a .bat extension. > > > > 2. Distribute the script - There are several ways to do this. One way is > > to use Group Policy: > > > > On the Server go to Administrative Tools and open Group Policy Management. > > Expand the domain, right click on Default Domain Policy and select Edit. > > Double click on User Configuration, double click on Windows Settings, double > > click on Scripts, double click on Logon, and click the Add button - browse > > to the .bat file you created in #1. > > > > Note #2 will cause all users, including domain administrators, to map the U: > > drive. If you only want some users to map this drive, you can configure > > logon scripts on a per user basis in each user account's properties, or you > > can create an OU with its own policy and move the desired users to the OU. > > You could also place computers in an OU and use a machine startup script > > that would apply to the computers irrespective of which user logged on. > > > > Doug sherman > > MCSE, MCSA, MCP+I, MVP > > > > "Chris Chase" <ChrisCh***@discussions.microsoft.com> wrote in message > > news:F74ED6CB-4943-4AFE-91A9-97C84B44B6C4@microsoft.com... > > > I am in charge of a network that needs to have more than one shared folder > > on > > > my windows 2003 server map to a drive letter on their XP workstation. > > > Currently the already have a home folder mapped to their g:. What I would > > > need to do is also have their systems automatically map a drive letter U: > > to > > > the following folder \\calvaryadmin\staff faculty\gqwin. I don't have > > > terminal services and have no idea how to create and run a script. Is > > there > > > anyone out the that can help me do this and either give me a simple > > solution > > > or the exact step by step? I would it like to do this and map the U: > > drive > > > automatically no matter which workstation they log into. > > > > > > Thanks! > > > -- > > > Chris Chase > > > > > > First of all thanks. The script works great!
Using the scripts and the info on the username variable, you just saved me a ton on administration work. Do you have a link to a page that lists other commands that I use in the login script like the Net Use command? Thanks! Chris Chase The only other question is when I map the G: drive to users home folder on the network Show quoteHide quote "Doug Sherman [MVP]" wrote: > OK - try this: > > 1. On the Server, save the .bat file to: > > C:\WINDOWS\SYSVOL\sysvol\(your domain name)\scripts > > 2. In Active Directory Users and Computers, double click the user's > account, click the Profile tab. On the Logon script line, enter just the > name of the .bat file - do not include a path. > > 3. If client machines are Windows XP, you may have to logon twice before > the script works. Also, it is best if the user account is not currently > logged onto any other machines. > > I don't quite follow your question about wild cards. If home folders are > mapped to G:, you can't map some other folder to the same drive letter. > Home folders are often created with the %username% variable, and you do not > need a script to create these - see: > > http://support.microsoft.com/default.aspx?scid=kb;en-us;298403 > > Doug Sherman > MCSE, MCSA, MCP+I, MVP > > "Chris Chase" <ChrisCh***@discussions.microsoft.com> wrote in message > news:BE050138-6009-471E-885D-FEBEE412956C@microsoft.com... > > Created the file. Put it a shared folder with read only access. I also > > added the line to user's profile active directory user's area. It didn't > run > > it when the user logged in. However, if I log in as that user and then it > > from the server by manually clicking on it. It works. > > > > "Doug Sherman [MVP]" wrote: > > > > > 1. Create the script - On the Server, open Notepad. Type: > > > > > > net use u: "\\calvaryadmin\staff faculty\gqwin" (include the quotes) > > > > > > Save the file as login.bat - or any other name with a .bat extension. > > > > > > 2. Distribute the script - There are several ways to do this. One way > is > > > to use Group Policy: > > > > > > On the Server go to Administrative Tools and open Group Policy > Management. > > > Expand the domain, right click on Default Domain Policy and select Edit. > > > Double click on User Configuration, double click on Windows Settings, > double > > > click on Scripts, double click on Logon, and click the Add button - > browse > > > to the .bat file you created in #1. > > > > > > Note #2 will cause all users, including domain administrators, to map > the U: > > > drive. If you only want some users to map this drive, you can configure > > > logon scripts on a per user basis in each user account's properties, or > you > > > can create an OU with its own policy and move the desired users to the > OU. > > > You could also place computers in an OU and use a machine startup script > > > that would apply to the computers irrespective of which user logged on. > > > > > > Doug sherman > > > MCSE, MCSA, MCP+I, MVP > > > > > > "Chris Chase" <ChrisCh***@discussions.microsoft.com> wrote in message > > > news:F74ED6CB-4943-4AFE-91A9-97C84B44B6C4@microsoft.com... > > > > I am in charge of a network that needs to have more than one shared > folder > > > on > > > > my windows 2003 server map to a drive letter on their XP workstation. > > > > Currently the already have a home folder mapped to their g:. What I > would > > > > need to do is also have their systems automatically map a drive letter > U: > > > to > > > > the following folder \\calvaryadmin\staff faculty\gqwin. I don't have > > > > terminal services and have no idea how to create and run a script. Is > > > there > > > > anyone out the that can help me do this and either give me a simple > > > solution > > > > or the exact step by step? I would it like to do this and map the U: > > > drive > > > > automatically no matter which workstation they log into. > > > > > > > > Thanks! > > > > -- > > > > Chris Chase > > > > > > > > > > > >
Other interesting topics
QuickBooks and its users
Windows 2003 image Windows Server 2003 SP1 problem in boot XP after using Linux ADPREP Failed for upgrading to Windows 2003 Invalid Domain Controller Certificate NT 4.0 and 2003 Trust DNS errors after moving Windows 2003 server to DMZ apply permission to child objects NTBackup and/or Scheduled Task Not Working |
|||||||||||||||||||||||