VBSlogin脚本
有人可以提供一些VBS脚本的帮助吗? 这是我迄今为止修改的内容。 Const GROUP1 = "cn=GROUP1" Const GROUP2 = "cn=GROUP2" Const GROUP3 = "cn=GROUP3" Set wshNetwork = CreateObject("WScript.Network") Set ObjectUser = CreateObject("ADSystemInfo") Set CurrentUser = GetObject("LDAP://" & ObjectUser.UserName) strGroups = LCase(Join(CurrentUser.MemberOf)) If InStr(strGroups, LCase("GROUP1")) Then wshNetwork.MapNetworkDrive "L:", "\\servername\\volume1\" End If If InStr(strGroups, LCase("GROUP2")) Then wshNetwork.MapNetworkDrive "M:", "\\servername\volume2\" End If If InStr(strGroups, LCase("GROUP3")) Then wshNetwork.MapNetworkDrive "N:", […]