Skip to content

Stop D365Environment

Splaxi edited this page Dec 4, 2022 · 1 revision

external help file: d365fo.tools-help.xml Module Name: d365fo.tools online version: schema: 2.0.0

Stop-D365Environment

SYNOPSIS

Cmdlet to stop the different services in a Dynamics 365 Finance & Operations environment

SYNTAX

Default (Default)

Stop-D365Environment [[-ComputerName] <String[]>] [-All] [-Kill] [-ShowOriginalProgress] [<CommonParameters>]

Specific

Stop-D365Environment [[-ComputerName] <String[]>] [-Aos] [-Batch] [-FinancialReporter] [-DMF] [-Kill]
 [-ShowOriginalProgress] [<CommonParameters>]

DESCRIPTION

Can stop all relevant services that is running in a D365FO environment

EXAMPLES

EXAMPLE 1

Stop-D365Environment

This will run the cmdlet with the default parameters. Default is "-All". This will stop all D365FO services on the machine.

EXAMPLE 2

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.

EXAMPLE 3

Stop-D365Environment -All

This will stop all D365FO services on the machine.

EXAMPLE 4

Stop-D365Environment -Aos -Batch

This will stop the Aos & Batch D365FO services on the machine.

EXAMPLE 5

Stop-D365Environment -FinancialReporter -DMF

This will stop the FinancialReporter and DMF services on the machine.

EXAMPLE 6

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.

PARAMETERS

-ComputerName

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

-All

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

-Aos

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

-Batch

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

-FinancialReporter

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

-DMF

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

-Kill

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

-ShowOriginalProgress

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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

Author: Mötz Jensen (@Splaxi)

RELATED LINKS

Clone this wiki locally