Restart D365Environment - FH-Inway/d365fo.tools GitHub Wiki
Restart the different services
Restart-D365Environment [[-ComputerName] <String[]>] [-All] [-Kill] [-ShowOriginalProgress]
[<CommonParameters>]
Restart-D365Environment [[-ComputerName] <String[]>] [-Aos] [-Batch] [-FinancialReporter] [-DMF] [-Kill]
[-ShowOriginalProgress] [<CommonParameters>]
Restart the different services in a Dynamics 365 Finance & Operations environment
Restart-D365Environment -All
This will stop all services and then start all services again.
Restart-D365Environment -All -ShowOriginalProgress
This will stop all services and then start all services again. The progress of Stopping the different services will be written to the console / host. The progress of Starting the different services will be written to the console / host.
Restart-D365Environment -ComputerName "TEST-SB-AOS1","TEST-SB-AOS2","TEST-SB-BI1" -All
This will work against the machines: "TEST-SB-AOS1","TEST-SB-AOS2","TEST-SB-BI1". This will stop all services and then start all services again.
Restart-D365Environment -Aos -Batch
This will stop the AOS and Batch services and then start the AOS and Batch services again.
Restart-D365Environment -FinancialReporter -DMF
This will stop the FinancialReporter and DMF services and then start the FinancialReporter and DMF services again.
Restart-D365Environment -All -Kill
This will stop all services and then start all services again. It will use the Kill parameter to make sure that the services is stopped.
An array of computers that you want to work against
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: @($env:computername)
Accept pipeline input: False
Accept wildcard characters: False
Instructs the cmdlet work against all relevant services
Includes: Aos Batch Financial Reporter DMF
Type: SwitchParameter
Parameter Sets: Default
Aliases:
Required: False
Position: 3
Default value: True
Accept pipeline input: False
Accept wildcard characters: False
Instructs the cmdlet to work against the AOS (IIS) service
Type: SwitchParameter
Parameter Sets: Specific
Aliases:
Required: False
Position: 3
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Instructs the cmdlet to work against the Batch service
Type: SwitchParameter
Parameter Sets: Specific
Aliases:
Required: False
Position: 4
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Instructs the cmdlet to work against the Financial Reporter (Management Reporter 2012)
Type: SwitchParameter
Parameter Sets: Specific
Aliases:
Required: False
Position: 5
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Instructs the cmdlet to work against the DMF service
Type: SwitchParameter
Parameter Sets: Specific
Aliases:
Required: False
Position: 6
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Instructs the cmdlet to kill the service(s) that you want to restart
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Instruct the cmdlet to show the standard output in the console
Default is $false which will silence the standard output
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Tags: Environment, Service, Services, Aos, Batch, Servicing
Author: Mötz Jensen (@Splaxi)