|
||||||||||||||||||||||||||||||||||
|
Exchange - Net Admin - Outlook Terminal Services / Limiting the Number of Logins a User Can Make |
Microsoft Windows Page Last Reviewed: 20/02/2010 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. Q: Where can I find more information about login scripts? Complete Sample - Ready to Copy and Paste. Remember to turn off word wrap when working in notepad | |||||||||||||||||||||||||||||||||
| Last Page Update: 20/02/2010 |
|
|||||||||||||||||||||||||||||||||