Vraag & Antwoord

Servers

login script

Onderstaand vbs script heb ik overgenomen van Microsoft, maar helaas krijg ik de foutmelding “The network name cannot be found. Voor de rest werkt alles perfect. Waar zit het foutje??? :oops: Dit is mijn test Windows 2000 server: Domain name: AK468.org Server name: W2sr1 OU: testscript en hallo Share’s: WindowsScript en Install Const testscript_GROUP = "cn=testscript" Const hallo_GROUP = "cn=hallo" Set wshNetwork = CreateObject("WScript.Network") wshNetwork.MapNetworkDrive "k:", "\\W2sr1\Users\" & wshNetwork.UserName Set ADSysInfo = CreateObject("ADSystemInfo") Set CurrentUser = GetObject("LDAP://" & ADSysInfo.UserName) strGroups = LCase(Join(CurrentUser.MemberOf)) If InStr(strGroups, testscript_GROUP) Then wshNetwork.MapNetworkDrive "K:", "\\W2sr1\WindowsScript\" ElseIf InStr(strGroups, hallo_GROUP) Then wshNetwork.MapNetworkDrive "K:", "\\W2sr1\install\" End If

Anoniem
broenske1