The location attribute exists only on a computer object, not on a user object.
Regards, Michael B. Smith Consultant and Exchange MVP http://TheEssentialExchange.com From: David Lum [mailto:[email protected]] Sent: Thursday, February 03, 2011 1:21 PM To: NT System Admin Issues Subject: ADMOD question This works perfectly: c:\automate\admod -b "CN=David Lum,OU=Users,OU=Main,DC=Mydomain,DC=ORG" "roomNumber::5West-48" Changing nothing but roomNumber to location it fails with "object class violation" which makes me think location can't take the string field I am sending it. I have tried different values but all fail. This page makes it look like it should works as well: http://www.aspfree.com/c/a/Windows-Scripting/Modifying-Computer-Objects-with-Active-Directory/ Ideas? David Lum // SYSTEMS ENGINEER NORTHWEST EVALUATION ASSOCIATION (Desk) 503.548.5229 // (Cell) 503.267.9764 ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to [email protected]<mailto:[email protected]> with the body: unsubscribe ntsysadmin ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to [email protected] with the body: unsubscribe ntsysadmin
