Restarts an agent on the selected host.
The Restart-MMExAgent cmdlet stops and then starts again the Migration Agent for Exchange (MAgE) installed on the selected host.
Restart-MMExAgent
-Type PublicFolder
[-AgentHost <agent host name>]
[<CommonParameters>]
Restart-MMExAgent -Type PublicFolder
This command restarts the agent installed on the localhost.
-Type
        
Specifies the agent type, currently only 'PublicFolder' is allowed.
| Required? | true | 
| Position? | 2 | 
| Default value | PublicFolder | 
| Accept pipeline input? | false | 
| Accept wildcard characters? | false | 
 -AgentHost
        
Specifies host name where specified agent is installed to restart the agent.
| 
 
  | 
 TIP: If this parameter is not specified, the agent will be restarted on the local server (localhost)..  | 
| Required? | false | 
| Position? | 1 | 
| Default value | <localhost> | 
| Accept pipeline input? | false | 
| Accept wildcard characters? | false | 
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer and OutVariable. For more information, see about_CommonParameters.
Uninstalls an agent from the selected host.
The Uninstall-MMExAgent cmdlet uninstalls Migration Agent for Exchange (MAgE) installed on the selected host.
Uninstall-MMExAgent
-Type PublicFolder
[-AgentHost <agent host name>]
[<CommonParameters>]
Uninstall-MMExAgent -Type PublicFolder
This command uninstalls the agent installed on the localhost.
 -Type
        
Specifies the agent type, currently only 'PublicFolder' is allowed.
| Required? | true | 
| Position? | 2 | 
| Default value | PublicFolder | 
| Accept pipeline input? | false | 
| Accept wildcard characters? | false | 
   -AgentHost
        
Specifies host name where specified agent is installed to uninstall the agent.
| 
 
  | 
 TIP: If this parameter is not specified, the agent will be uninstalled from the local server (localhost).  | 
| Required? | false | 
| Position? | 1 | 
| Default value | <localhost> | 
| Accept pipeline input? | false | 
| Accept wildcard characters? | false | 
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer and OutVariable. For more information, see about_CommonParameters.
This section provides reference information on how to grant an administrative accounts the following required permissions:
To grant this permission to an account, perform the following: