Stop D365Environment - FH-Inway/d365fo.tools GitHub Wiki
Cmdlet to stop the different services in a Dynamics 365 Finance & Operations environment
Stop-D365Environment [[-ComputerName] <String[]>] [-All] [-Kill] [-ShowOriginalProgress] [<CommonParameters>]
Stop-D365Environment [[-ComputerName] <String[]>] [-Aos] [-Batch] [-FinancialReporter] [-DMF] [-Kill]
[-ShowOriginalProgress] [<CommonParameters>]
Can stop all relevant services that is running in a D365FO environment
Stop-D365Environment
This will run the cmdlet with the default parameters. Default is "-All". This will stop all D365FO services on the machine.
Stop-D365Environment -ShowOriginalProgress
This will run the cmdlet with the default parameters. Default is "-All". This will Stop all D365FO services on the machine. The progress of Stopping the different services will be written to the console / host.
Stop-D365Environment -All
This will stop all D365FO services on the machine.
Stop-D365Environment -Aos -Batch
This will stop the Aos & Batch D365FO services on the machine.
Stop-D365Environment -FinancialReporter -DMF
This will stop the FinancialReporter and DMF services on the machine.
Stop-D365Environment -All -Kill
This will stop all D365FO services on the machine. It will use the Kill parameter to make sure that the services is stopped.
An array of computers that you want to stop services on.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: @($env:computername)
Accept pipeline input: False
Accept wildcard characters: False
Set when you want to stop all relevant services
Includes: Aos Batch Financial Reporter
Type: SwitchParameter
Parameter Sets: Default
Aliases:
Required: False
Position: 3
Default value: True
Accept pipeline input: False
Accept wildcard characters: False
Stop 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
Stop the batch service
Type: SwitchParameter
Parameter Sets: Specific
Aliases:
Required: False
Position: 4
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Start the financial reporter (Management Reporter 2012) service
Type: SwitchParameter
Parameter Sets: Specific
Aliases:
Required: False
Position: 5
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Start the Data Management Framework 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 stop
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: 7
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: 8
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.
Author: Mötz Jensen (@Splaxi)