Monday 15 August 2022

How to find the name of requester of a server component in exchange server 2013 and then make the server component active

 Some time you may need to put the exchange server in maintenance mode, in which one step is to put the servercomponents in inactive state and after the completion of the activity will have to remove the server from maintenance, in which one step is to use the following command in exchange powershell to make the servercomponents back in active state


Set-ServerComponentState <ServerName> -Component ServerWideOffline -State Active -Requester Maintenance


but some time the above command will not work and will still have some components in inactive state, even if try the above command again.

So in that case, you first have to identify requester and then use the command accordingly.

like in below command we are identifying the requester for AutoDiscoverProxy inactive state.


[PS] C:\Windows\system32>$Requester = Get-ServerComponentstate -Identity ex1301 -Component AutoDiscoverProxy

[PS] C:\Windows\system32>$Requester.LocalStates


Requester                                             State Timestamp                     Component

---------                                             ----- ---------                     ---------

HealthApi                                          Inactive 6/23/2022 9:49:25 AM          AutoDiscoverProxy

Maintenance                                          Active 6/23/2022 10:35:04 AM         AutoDiscoverProxy

functional                                           Active 6/23/2022 10:33:34 AM         AutoDiscoverProxy



We can see that the HealthApi is the Requester for this component. so now we will use the following command.


Set-ServerComponentState Ex1301 -Component AutoDiscoverProxy -State Active -Requester HealthApi


after that, we can check the status of all server components again with following command.


Get-ServerComponentState <ServerName> | ft Component,State –Autosize 


and the required components should be in active state.