I used to do this on our Netware Server, but the commands may be different on a Windows server....
can anyone on this site help me with a vbscript. In not really a programmer but i know that a VB script would be the best language to get this done. what i want to do is map network drives for users when they log into windows domain.I want a script that looks at which active directory group the user is apart of and map a drive for the user based on which folder on the file server that group has access to. any help would be appreciated.
The price of anything is the amount of life you exchange for it.
Henry David Thoreau
I used to do this on our Netware Server, but the commands may be different on a Windows server....
.
PC - Ubuntu 15.04 64bit Desktop
HP Pav G60-236US 3GB RAM Laptop, Ubuntu 15.04 64bit and Win7 Home
"So Daddy, how come you telling me stealing not right when YOU copying DVDs? How come? How Come?"
Changes to posting in Classifieds
Source for above VBScriptCode: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 "Finance Users" objNetwork.MapNetworkDrive "X:", "\\atl-fs-01\finance" Case "Human Resource Users" objNetwork.MapNetworkDrive "X:", "\\atl-fs-01\hr" Case "Manufacturing Users" objNetwork.MapNetworkDrive "X:", "\\atl-fs-01\manufacturing" Case "Shipping and Receiving Users" objNetwork.MapNetworkDrive "X:", "\\atl-fs-01\shipping" End Select Next
Have you considered KiXtart? It is much easier than VBScirpt
I used the link below and my mappings work. The problem i have now is that it takes about 2 minutes to complete the log in process and im only mapping a single drive in a test environment. anything i can do to speed up the process?
http://e-articles.info/e/a/title/Che...-Logon-Script/
The price of anything is the amount of life you exchange for it.
Henry David Thoreau
Do you mind posting the entire login script?
u cud use the net use command
eg. net use g: \\server\data
Dip,Bsc,CCNA,CCSP,MCP.. Up next MCSA WINDOWS 8, CCNA SECURITY,CCNP SWITCH,
CCNA SEEKING AN OPPORTUNITY
Theres no Friend Like Google..........