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:25pm
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:52pm
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:59pm
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 11:04pm
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:50am
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:19am
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:29am
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:13pm
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:46am
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:11pm
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:58pm
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:30pm