While removing branding of reseller OA background task
Remove Exchange branding fails as below:
Queue name ExchangeHostConfig1234 Task name Remove Exchange branding (host: 1234; brand: 13; service: ExchProtocols) Task description Remove Exchange branding (host: 1234; brand: 13; service: ExchProtocols) Belongs to groups 13-49730301:1430121369:BrandRemoved Queue status Failed Start not earlier than May-19-2015 11:55 Method name removeBrandingHandler on SCREF:Exchange:0 Last execution output Command ("%SystemRoot%\Sysnative\cscript.exe" //Nologo "C:\Program Files (x86)\SWsoft\PEM\bin\ConfigureExchnageProtocolsService_copy.vbs" RemoveBrandingSite CAS02 1310 "C:\Program Files (x86)\SWsoft\PEM") failed to execute on host 1234 with code 1: Rpc virtual directory removed OWA virtual directories removed Ecp virtual directories removed Active Sync virtual directory removed EWS virtual directory removed Command 'Remove-OABVirtualDirectory -Confirm:$False -Identity 'CAS02\OAB (exchange.provider.com(1310))'' failed.(ErrCode: 0x1)
During brand removal for Exchange OA executes standard Exchange cmdlets to perform actual operations. In this case execution of cmdlet
Remove-OABVirtualDirectory fails due to some reason.
In order to identify the exact reason, login to CAS server and run the same cmdlet:
[PS] C:\Windows\system32>Remove-OABVirtualDirectory -Confirm:$False -Identity 'CAS01\OAB (exchange.provider.com(1310))'.
Output can be the following:
Confirm The offline address book virtual directory "CAS01\OAB (OAB001)" still holds the following offline address books "S001033950 OAL". You need to designate another offline address book virtual directory for those offline address books. Do you still want to remove this offline address book? [Y] Yes [A] Yes to All [N] No [L] No to All [?] Help (default is "Y"): Y
In this example, it fails because it holds OAB. Confirm OAB removal and process task after that.