![]() |
|||
|
Broadband - Exchange Terminal Services / Limiting the Number of Logins a User Can Make |
Limit the Number of Network Logins a User Can Make
In many environments you may want to limit the number of times people can login to the network. This can be for many reasons such as ensuring people don't share login information and to ensure that their profile and files don't get our of sync. Setup Limited User Access Directory To do this, your environment will need to be set up in the correct way. However you may find that you have already many of the components in place and just need to adjust the settings.
Adjust the Login Script Once you have restricted the user directory, you need to adjust your login script. First map the drive to their user directory. net use U: \\fileserver\%username%$ Then you need to check if the mapping was successful. Add the following line immediately below the net use: iferrorlevel 1 goto logoff Then add a section called logoff. In the example below a message is also sent to the user to tell them why they have been kicked out. Then follow a command to logoff the user: :logoff Finally if you are going to use the user directory as their home directory, then add the following commands immediately afterwards to set the environment variables correctly: setx homedrive "U:" The complete sample ready for copying and pasting in to your own script can be found at the bottom of the page. Uses for the User Directory The most common use for the user directory is to redirect the "My Documents" folder. This would allow it to be backed up centrally. Questions Q: Logoff Doesn't Work Q: I need other users to be able to see the contents of the home directories. Q: I am a network admin and need to see in to all the home directories but don't want to share each twice. Complete Sample - Ready to Copy and Paste. Remember to turn off word wrap when working in notepad | ||
| Last Page Update: 28/04/2006 |
Back to the Top Broadband - Exchange - Login Scripts - Network Admin - Outlook - Windows Mobile - Windows © Amset IT Solutions Ltd. 1998 - 2008. All rights reserved. Reproduction of any content on this web site is prohibited without express written consent. Use of this web site is subject to our terms and conditions. All trademarks and registered trademarks are property of their respective owners. This site is not endorsed or recommended by any company or organisation mentioned on this site. This site is to provide guidance only and as such we cannot be held responsible for any consequences of following the advice given. |
||