Quantcast
Channel: Exchange Server 2013 - Administration, Monitoring, and Performance 论坛
Viewing all articles
Browse latest Browse all 3457

The resource search property value "'VCR','Telepresence'" is not valid.

$
0
0

Hi,

I am able to set custom resources in the command prompt as below and it is working 

Set-mailbox -resourceCustom "VCR","Telepresence" -identity "Dummy Public Meeting Room4"

But these resources are available in the txt file and I am getting and trying to set as below

$text = Get-Content "c:\PublicMeetingRoomInputs.txt"    

$CustomResourceItems = New-Object System.Collections.Generic.List[System.Object]
for($i=7;$i -lt $text.Length;$i++)
{
    #Write-Host $text[$i]
    $CustomResourceItems.Add($text[$i])    

}

        

PS C:\Users\naga.sudheer.madduru> $AllCustomResourceItems = ""
foreach($CustomResourceitem in $CustomResourceItems){

        $AllCustomResourceItems += "'$CustomResourceitem'" + ","    

}

$AllCustomResourceItems = $AllCustomResourceItems.TrimEnd(',')
Set-mailbox -resourceCustom $AllCustomResourceItems -identity $MeetingRoomName

But it is throwing the error as mentioned,please let me know if I am making any mistake

The resource search property value "'VCR','Telepresence'" is not valid.

Regards,

Sudheer


Thanks & Regards, Sudheer


Viewing all articles
Browse latest Browse all 3457

Trending Articles