General discussion

Locked

Login Script

By deangk ·
Back in the NT4 server days you can create a login script and associate this with users to map drives, etc. Is it the same in Server 2003 and where do you save the script file.

Thanks

This conversation is currently closed to new comments.

4 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by mikex In reply to Login Script

2003 Server:

+ Logon Scripts May Not Be Protected When They Are Stored on a Custom Shared Folder
Microsoft Knowledge Base Article: 812540 - By default, Windows stores logon scripts in a secured location. Network administrators can change the default storage location of logon scripts by storing them on a shared folder on any server. By doing so, network administrators can have greater control over the location of the logon scripts and the user permissions that are assigned to the shared folder


1.Scripts

Nothing much here, perhaps you would want to run script visibly if you are testing, or if it had information for the users, but otherwise a section to ignore. By all means run legacy scripts hidden, but why not upgrade those Batch files to VBScript?


2. Therefore, to have the scripting functionality available, you must download and install GPMC from its download page on the Microsoft Web site.


Documentation describing the GPMC object model (in the form of GPMC.CHM file) gets copied to the Program Files\GPMC\Scripts folder during the installation of the GPMC installation program. You can refer to this help file if you intend to create your own scripts to manage GPO-related tasks.

Collapse -

by smight In reply to Login Script

It is very easy to do. Save a logon.bat file (for example) in c:\windows\sysvol\sysvol\domain\scripts. You will see the folder "domain" is the name of your domain. You can also see that this folder is shared as NETLOGON.

Then go to the active directory users and computers and open whatever user you want to work with. On the profile tab there is an entry for logon script. Put the name of the file in this field. Do not use the whole path or it won't work. In the previous example, you would just put logon.bat here.

That is how its done. It gets more complicated from there. You can use .vbs file or java script file which will execute on the local windows host scripting. These files are much more advanced than a .bat file. You can map drives based on group membership for example.

The next layer of complexity is to use group policy to deploy scripts. In this case the logon.bat file is move to the folder of the applicable group policy.

It is not necessary to use the Group Policy Management Comsole (GPMC) to manage group policy but it is way easier. It is a free download from Microsoft and does not come bundled with Server 2003. Go to microsoft downloads and search for gmpc.msi.

Hope this helps,
Chris Britt

Collapse -

by Westy1 In reply to Login Script

Yes, logon scripts work similarly in Windows 2003. If you're working with a domain controller, the scripts will go in an automatically created folder shared as NETLOGON. You assign the script to a user in their user profile.

Collapse -

by ctmoore1998 In reply to Login Script

You can use the same type of logon scripts that were used for NT4 ie bat files. Store them in the scripts folder under the sysvol / domainname folder typically found in the windows\sysvol\dn\sysvol\scripts

Back to Windows Forum
4 total posts (Page 1 of 1)  

Related Discussions

Related Forums