Error Adding a Custom Resources Property
I'm looking to add a custom property to rooms to indicate whether it has a projector or not. So I run the following and receive an error...
$RC=Get-ResourceConfig
$RC.ResourcePropertySchema.Add("Room/Projector")
Set-ResourceConfig -ResourcePropertySchema $RC.ResourceProprtySchema
Set-ResourceConfig : Active Directory operation failed on dc1.mydomain.com. This error is not retriable. Additional information: An attempt was made to modify an object to include an attribute that is not legal for its class.
Active Directory response: 0000207D: UpdErr: DSID-03150F9C, problem 6002 (OBJ_CLASS_VIOLATION), data 0
June 10th, 2011 12:19pm
Try
Set-ResourceConfig -DomainController dc1-Resource.mydomain.com -ResourcePropertySchema Room/Projector
get-resourceconfig | fl
Free Windows Admin Tool Kit Click here and download it now
June 10th, 2011 3:46pm
No thanks, LMurthy, I'd rather not. The method you proposed replaces rather than adds.
Still looking for good help...
Tony
June 10th, 2011 5:53pm
On Fri, 10 Jun 2011 16:19:49 +0000, Tony Sperbeck wrote:
>I'm looking to add a custom property to rooms to indicate whether it has a projector or not. So I run the following and receive an error...
>
>$RC=Get-ResourceConfig $RC.ResourcePropertySchema.Add("Room/Projector") Set-ResourceConfig -ResourcePropertySchema $RC.ResourceProprtySchema
>
>Set-ResourceConfig : Active Directory operation failed on dc1.mydomain.com. This error is not retriable. Additional information: An attempt was made to modify an object to include an attribute that is not legal for its class. Active Directory response:
0000207D: UpdErr: DSID-03150F9C, problem 6002 (OBJ_CLASS_VIOLATION), data 0
Try this:
$RC = get-resourceconfig
$RC.resourcepropertyschema.add("Room/Projector")
set-resourceconfig -instance $RC
---
Rich Matheisen
MCSE+I, Exchange MVP
--- Rich Matheisen MCSE+I, Exchange MVP
Free Windows Admin Tool Kit Click here and download it now
June 10th, 2011 10:58pm
Hi Tony,
If you are using Exchange Server 2007, you can follow Rich’s suggestion to have a try:
Here is related document for you:
Set-ResourceConfig
http://technet.microsoft.com/en-us/library/aa998861(EXCHG.80).aspx
I tested your command in my lab (Exchange Server 2010 SP1 and Exchange Server 2007 SP3), and didn’t get this error.
Error “Active Directory operation failed on dc1.mydomain.com.
This error is not retriable. Additional information: An attempt was made to modify an object to include an attribute that is not legal for its class.
Active Directory response: 0000207D: UpdErr: DSID-03150F9C, problem 6002 (OBJ_CLASS_VIOLATION), data 0”
I suggest you follow these steps to troubleshoot the problem:
1.
Use Exbpa to do a health check for your Exchange Server.
2.
Check the event log and paste the related information in your next post.
3.
I also saw this error may be caused by 3rd party fax software, please make sure you are not using this tool.
Thanks,
Evan
Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
June 13th, 2011 3:44am
Tried that too, but still receive same error. Ran an ExBPA but no relevant errors found.
Free Windows Admin Tool Kit Click here and download it now
June 13th, 2011 9:12am
May be try specifying a DC in the code you had after set-resourceconfig
http://technet.microsoft.com/en-us/library/aa998861(EXCHG.80).aspx
June 13th, 2011 10:23am
On Mon, 13 Jun 2011 13:12:57 +0000, Tony Sperbeck wrote:
>Tried that too, but still receive same error. Ran an ExBPA but no relevant errors found.
When you just run get-resourceconfig, what do you see in the
ResourcePropertySchema column? If, after you run the 1st two lines
that I suggested, what do you see if you run
"$rc.ResourcePropertySchema"?
---
Rich Matheisen
MCSE+I, Exchange MVP
--- Rich Matheisen MCSE+I, Exchange MVP
Free Windows Admin Tool Kit Click here and download it now
June 13th, 2011 6:07pm
Hi Tony,
Any updates on this issue,
If the issue persists, please follow Rich’s suggestion to paste the results for get-resourceconfig and $rc.ResourcePropertySchema.
Thanks,
Evan Liu
TechNet Subscriber Support
in forum
If you have any feedback on our support, please contact
tngfb@microsoft.com
Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
June 15th, 2011 10:40am
Here you go Rich,
[PS] C:\>get-resourceconfig
Name ResourcePropertySchema
---- ----------------------
Resource Schema {}
[PS] C:\>$RC=get-resourceconfig
[PS] C:\>$RC.resourcepropertyschema.add("Room/Projector")
[PS] C:\>"$rc.ResourcePropertySchema"
Resource Schema.ResourcePropertySchema
Free Windows Admin Tool Kit Click here and download it now
June 17th, 2011 1:05pm
On Fri, 17 Jun 2011 17:05:27 +0000, Tony Sperbeck wrote:
>
>
>Here you go Rich,
>
>
>
>[PS] C:\>get-resourceconfig
>
>Name ResourcePropertySchema ---- ---------------------- Resource Schema {}
>
>
>
>
>
>[PS] C:\>$RC=get-resourceconfig [PS] C:\>$RC.resourcepropertyschema.add("Room/Projector") [PS] C:\>"$rc.ResourcePropertySchema" Resource Schema.ResourcePropertySchema
How about removing the quotes from around the last command?
---
Rich Matheisen
MCSE+I, Exchange MVP
--- Rich Matheisen MCSE+I, Exchange MVP
June 17th, 2011 5:51pm
Hi Tony,
Maybe you can use this command to have a try:
Set-ResourceConfig -ResourcePropertySchema ("Room\Flip Chart", "Room\Video conference", "Equipment\Auto", “Room\Projector”)
Included all the custom property to run the command.
smart
Free Windows Admin Tool Kit Click here and download it now
June 20th, 2011 9:26pm
Thanks for the quick response Exchange D
Well picked up, but unfortunately not the solution. I typed it directly into Exchange this time, but no change:
Set-ResourceConfig -DomainController server.mydomain.com -ResourcePropertySchema ("Room/TV")
Returns the same result:
Active Directory operation failed on server.mydomain.com. This error is not retriable. Additional information: An attempt was made to modify an object to include an attribute that is not legal for its class.
Active directory response: 0000207D: UpdErr: DSID-0315121C, problem 6002 (OBJ_CLASS_VIOLATION), data 1736738497
+ CategoryInfo : NotSpecified: (0:Int32) [Set-ResourceConfig], ADOperationException
+ FullyQualifiedErrorId : CC249144,Microsoft.Exchange.Management.SystemConfigurationTasks.SetResourceConfig
Using the append method,
$RC=get-resourceconfig
$RC.resourcepropertyschema.add("Room/Projector")
$RC.ResourcePropertySchema
This command returns the ResourceConfig with the Room/Projectore appended OK, so the issue occurs when committing the change with the
set-resourceconfig command
We have a third party fax solution in our Exchange environment called MessageManager. NOt sure if that is implicated in this or not. Just throwing it out there in response to Evan Liu's comments above.
Still searching and thanks in advance....
Mick
June 6th, 2012 7:40am