html
Social network attacks doubled in 2010 - Download our latest threat report
to upgrade Windows 95/98/Me computers to the latest version of Sophos Anti-Virus, or install Sophos Anti-Virus in a NetWare environment
when using Resolve tools to clean infected computers.
1. At the server which is your (primary) domain controller, navigate to the folder where scripts are held.
2. Create a new text document or edit the existing one (you can only have one login script).
3. Enter one or more lines of instructions into the file, and save it as a batch file.
4. Assign the script to the computers that need to run it. This is usually done by means of the user profile of the person who normally logs in to
that workstation.
Windows NT
1. At the Primary Domain Controller (i.e. the computer you use to add new users to the domain) use Windows Explorer (or My Computer) to
locate C:\Winnt\system32\repl\import\scripts
2. On the 'File' menu, select New|Text Document.
3. Double-click the 'New Text Document' icon to open this new file in Notepad.
4. Enter the required commands.
5. On the 'File' menu, click 'Save As'. In the 'Save As' dialog box, change 'Save as type' to 'All Files' and save the file with the name login.bat.
6. Close Notepad and Windows Explorer (or My Computer).
The next time those users log in, the login script will run on their computers.
Windows 2000
1. At the Domain Controller (i.e. the computer you use to add new users to the domain), use Windows Explorer (or My Computer) to locate
C:\Winnt\SYSvol\sysvol\[domain].com\scripts where [domain] is the name of the domain that the workstations log in to.
2. On the 'File' menu, select New|Text Document.
3. Double-click the 'New Text Document' icon to open this new file in Notepad.
4. Enter the required commands.
5. On the 'File' menu, click 'Save As'. In the 'Save As' dialog box, change 'Save as type' to 'All Files' and save the file with the name login.bat.
6. Close Notepad and Windows Explorer (or My Computer).
1 of 2 3/20/2011 08:18
Creating and using a login script http://www.sophos.com/support/knowledgebase/article/13273.html
The next time those users log in, the login script will run on their computers.
Windows 2003
1. At the Domain Controller (i.e. the computer you use to add new users to the domain), use Windows Explorer (or My Computer) to locate
C:\Winnt\SYSvol\sysvol\[domain].com\scripts where [domain] is the name of the domain that the workstations log in to.
2. On the File menu, select New|Text Document.
3. Double-click the 'New Text Document' icon to open it in Notepad.
4. Enter the required commands.
5. On the 'File' menu, click 'Save As'. In the 'Save As' dialog box, change 'Save as type' to 'All Files' and save the file with the name login.bat.
6. Close Notepad and Windows Explorer (or My Computer).
The next time those users log in, the login script will run on their computers.
NetWare
The next time workstations log on, the login script will run on them.
If you need more information or guidance, then please contact technical support.
Article ID: 13273 Created: 23 Jun 2005 Last updated: 14 Oct 2008
2 of 2 3/20/2011 08:18