Computing.Net > Forums > Windows Server 2003 > login script and redirect

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

login script and redirect

Reply to Message Icon

Name: hawee
Date: January 5, 2009 at 14:07:14 Pacific
OS: Windows XP
CPU/Ram: intel, 1gb
Product: Dell / UNKNOWN
Subcategory: Configurations
Comment:

Hi

I'm fairly new to windows server 2003.

I'm having a problem with the login script.
The script is just to map drives. So when users login, it should auto map the drive for them but its not.

I also set a policy to redirect the mydocuments of all users to a folder on the server, and that's not working either.

Any ideas what's going on? All the computers on the network are WinXP.



Sponsored Link
Ads by Google

Response Number 1
Name: DvrDave
Date: January 30, 2009 at 18:13:35 Pacific
Reply:

Can you show us the script you are trying to use? Also if you just created your scripts will have to wait a while for the clients computers to update (20min?).

On my server I have created several Security group objects. I then assigned the users to be members of the proper group. Below is part of my script:

On Error Resume Next

Set objSysInfo = CreateObject("ADSystemInfo")
Set objNetwork = CreateObject("Wscript.Network")

strUserPath = "LDAP://" & objSysInfo.UserName
Set objUser = GetObject(strUserPath)

For Each strGroup in objUser.MemberOf
strGroupPath = "LDAP://" & strGroup
Set objGroup = GetObject(strGroupPath)
strGroupName = objGroup.CN

Select Case strGroupName
Case "drv.assy"
objNetwork.MapNetworkDrive "h:", "\\data-1\files\assembly"

Case "drv.bacon"
objNetwork.MapNetworkDrive "n:", "\\email\bacon"

End Select
Next


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows Server 2003 Forum Home


Sponsored links

Ads by Google


Results for: login script and redirect

Login script to non domain account www.computing.net/answers/windows-2003/login-script-to-non-domain-account/4801.html

login script disclaimer www.computing.net/answers/windows-2003/login-script-disclaimer/7720.html

Logon Scripts/Folder Redirection www.computing.net/answers/windows-2003/logon-scriptsfolder-redirection/4581.html