Welcome to WiseSoft.co.uk!
Register
About
Contact
Donate
Home
Scripts
Articles
Software
Forum
Links
Active Directory Schema Guide
Submit a Script
All Scripts
Active Directory
Computer
Database
Event Logs
Exchange/Email
File System
General
Printer
SQL Server
Account Page
Address Page
COMPlus Page
DialIn Page
Environment Page
General Page
MemberOf Page
Organization Page
Profile Page
RemoteControl Page
Sessions Page
Telephones Page
TerminalServices Page
Batch File
HTA
KiXtart
PowerShell
T-SQL
VB
VBScript
Computer Accounts
Domains, Forests & Trusts
Groups
Monitoring & Replication
Organizational Units
Schema Information
Search
Sites and Subnets
User Accounts
PowerShell
VBScript
VBScript
PowerShell
VBScript
VBScript
VBScript
VBScript
VBScript
PowerShell
VBScript
VBScript
PowerShell
VBScript
HTA
KiXtart
PowerShell
VB
VBScript
VBScript
KiXtart
PowerShell
VBScript
PowerShell
VBScript
Batch File
KiXtart
PowerShell
VBScript
HTA
VB
VBScript
HTA
KiXtart
PowerShell
VBScript
HTA
PowerShell
T-SQL
VBScript
All Articles
Active Directory
Miscellaneous
Programming
Scripting
Security
SQL Server
WiseSoft
Submit Article
All Software
TSQL DDL Code History Tool
Account Management Spreadsheet
Bulk AD Users
Password Control
Script Builder
NTFSFix
TSQL DDL Code History Tool
Bulk AD Users
Password Control
Script Builder
Account Management Spreadsheet
NTFSFix
Scripting
Guestbook
Bugs
Suggestions
General
Bugs
Suggestions
General
Bugs
Suggestions
General
Bugs
Suggestions
General
Bugs
Suggestions
General
Bugs
Suggestions
General
Login
User Name:
Password:
Remember me next time
Forgot Password?
Login using OpenID:
Create free account
Exclusive access for registered users
Registered Users:
20870
Click here to find out how you can help support wisesoft.co.uk!
home
recent topics
recent posts
search
faq
AspNetForum v.5.2.7.0
WiseSoft :: Forum
:: Forum
user:
psw:
remember me
|
lost password
|
register
Home
»
Bulk AD Users
»
changing the "title" in AD
|
3/25/2011 4:22:33 AM
permalink
lanky_bob
Posts 1
My Rating:Vote Rating:Not Rated Views:3Source:www.wisesoft.co.uk
--------------------------------------------------------------------------------
Hi Folks,
I'm trying to update the job title using "title" in active directory using "Bulk password control" but i keep getting the error "Detail: A constraint violation occurred. (Exception from HRESULT: 0x8007202F)"
Can anyone throw any light on why this error is occuring? everything else updates fine.
Bob
Attachments:
title error.jpg
4/1/2011 3:37:36 AM
permalink
admin
Posts 331
Hi,
I think the new value might be too long for the title attribute. I can see that you are replacing "Computer Services Technician" with a shorter string "it technician", but there could be some whitespace characters at the end of the string. I attempted the same update myself and it worked fine. I then added a number of whitespace characters to the end of the string and I was able to produce the same error.
Hope this helps,
David
10/27/2011 4:47:48 AM
permalink
aingham
Posts 2
I am getting the same error message when trying to change the 'Description' attribute.
All other attributes change ok. I have tried different string, but all fail. This is a Windows 2000 domain.
Any help would be greatly appreciated. Adam
10/30/2011 11:58:33 AM
permalink
admin
Posts 331
aingham
wrote:
I am getting the same error message when trying to change the 'Description' attribute.
All other attributes change ok. I have tried different string, but all fail. This is a Windows 2000 domain.
Any help would be greatly appreciated. Adam
Hi,
I don't have any problems updating the description attribute. What method are you using to update it - CSV Update, Edit In Excel or Bulk Modify? Also, can you post a sample value that is failing?
Thanks,
David
10/31/2011 4:14:02 AM
permalink
aingham
Posts 2
I have tried using 'Edit In Excel' and Bulk Modify, they both fail with the error:
(Error): description - Failure: A constraint violation occurred. (Exception from HRESULT: 0x8007202F)
I have tried using just a one letter string, just in case the string was too long, but this also failed, so its not the length of the string.
Thanks, Adam
11/1/2011 1:31:27 PM
permalink
admin
Posts 331
Are you able to edit the attribute in Active Directory Users and Computers? Also have you tried updating a user account using a script like the one below:
set objUser = GETOBJECT(
"LDAP://CN=MyUser,OU=MyOU,DC=wisesoft,DC=co,DC=uk"
)
objUser.Put "Description","Test"
objUser.SetInfo
wscript.echo "OK"
Please change the bold text to point to a user in your domain. Let me know how you get on.
Thanks,
David
11/21/2011 8:23:32 AM
permalink
cybersaga
Posts 4
This may not be the issue, but in my own .NET development talking to AD, I found that the description attribute is multi-valued, but has a constraint saying it must only contain one value. So if you're going by what the schema says and treat it as a multi-valued attribute, things might not work depending on the environment. I had to make an exception just for the description field. I'm not sure how Bulk Modify implements it.
See here:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms675492(v=VS.85).aspx
Specifically this: "This value is restricted as single-valued for backward compatibility in some cases but is allowed to be multi-valued in others."
edited by cybersaga on 11/21/2011
pages:
1
|
Home
»
Bulk AD Users
»
changing the "title" in AD