Greets -
Just curious as to a method to map the HOME folder in vbscript instead of in the AD profile.
Obviously
Should work, but that doesn't set the HOMEDRIVE and HOMEPATH variables. Do I also need to do something like
Or is there an easier way to combine the tasks?
Pat Richard, MCSE MCSA:Messaging CNA
Microsoft Exchange MVP
Want to know how email works? Read for yourself -
Just curious as to a method to map the HOME folder in vbscript instead of in the AD profile.
Obviously
Code:
WSHNetwork.MapNetworkDrive "h:", "\\server\users$\" & UserName
Should work, but that doesn't set the HOMEDRIVE and HOMEPATH variables. Do I also need to do something like
Code:
Set objEnv = objShell.Environment("User")
objEnv("HOMEDRIVE") = "h:"
objEnv("HOMEPATH") = "\"
Or is there an easier way to combine the tasks?
Pat Richard, MCSE MCSA:Messaging CNA
Microsoft Exchange MVP
Want to know how email works? Read for yourself -