
newbie question on logon script
If you have Active Directory (a Win2k network), set the
home folder on the Profile tab for the user in Active
Directory Users and Computers. You can set the drive
letter and UNC path. On Win2k clients, it is automatically
mapped during logon.
Otherwise, if the home directory is defined in your domain
(MyDomain below), a logon script could have:
=================
Dim oNet, sUserID, oUser
Set oNet = CreateObject("Wscript.Network")
sUserID = oNet.UserName
Set oUser = GetObject("WinNT://MyDomain/sUserID,user")
oNet.MapNetworkDrive "X:", oUser.HomeDirectory
================
Otherwise, assuming the home directory is shared, use:
oNet.MapNetworkDrieve, "X:", "\\MyServer\" & sUserID
Richard
Quote:
>-----Original Message-----
>Hi, a Win2k pro workstation with multiple users.
>How can I configure the logon scripts to make the default
path/home folder
>of every user is
>Drive X:\user_logon_name
>Thanks a lot.
>Yi
>.