RE: Mapping a drive, dependant on Group Membership

2010-01-28 Thread Brian Desmond
That solution doesn't handle nested groups which may be a deal breaker Thanks, Brian Desmond br...@briandesmond.com c - 312.731.3132 From: Don Ely [mailto:don@gmail.com] Sent: Thursday, January 28, 2010 7:42 AM To: NT System Admin Issues Subject: Re: Mapping a drive, dependant on

Re: Mapping a drive, dependant on Group Membership

2010-01-28 Thread Don Ely
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 =

RE: Mapping a drive, dependant on Group Membership

2010-01-28 Thread Carl Houseman
You are getting an errorlevel returned that is greater than 1, in which case "if not errorlevel 1" is false. Send the command output and errorlevel to a log file to see what is going on. ifmember "Domain\Group1" >%temp%\debug.log 2>&1 echo %errorlevel% >>%temp%\debug.log Carl From:

Re: Mapping a drive, dependant on Group Membership

2010-01-28 Thread James Rankin
Use Group Policy Preferences targeted to security group. Much easier On 28 January 2010 15:14, Kevan Dickinson wrote: > Hi > > > > I am trying to map a drive during a users logon using a logon script that > checks if the user is a member of a particular Windows Security Group. > > I am trying to

Re: Mapping a drive, dependant on Group Membership

2010-01-28 Thread Erik Goldoff
personally I'd recommend using Kixtart for your login script to make this work easily with more power and flexibility On Thu, Jan 28, 2010 at 10:14 AM, Kevan Dickinson < kevan.dickin...@cmi-plc.com> wrote: > Hi > > > > I am trying to map a drive during a users logon using a logon script that > c