-
Notifications
You must be signed in to change notification settings - Fork 102
Restart D365Environment
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)
- Install as a non-Administrator
- Install as a Administrator
- Import d365fo.tools module
- List available commands from d365fo.tools module
- Get help content for a command
- Start, Stop and List services
- Import users into the D365FO environment
- Import external users into the D365FO environment
- Enable users in the D365FO environment
- Update users in the D365FO environment
- Provision D365FO environment to new Azure AD tenant
- Import a bacpac file into a Tier1 environment
- List modules / models
- Compile module
- Install AzCopy
- Install SqlPackage
- Install Nuget
- Speed up LCS download via AzCopy
- Download latest bacpac from LCS via AzCopy
- Register NuGet source
- Configure Azure Logic App
- Fix AzureStorageConfig
- Run a runnable class
- Update users in environment
- Work with Azure Storage Account
- Work with packages, resource label files, language and lables
- Working with the different D365 services