Get D365Environment - FH-Inway/d365fo.tools GitHub Wiki
Cmdlet to get the current status for the different services in a Dynamics 365 Finance & Operations environment
Get-D365Environment [[-ComputerName] <String[]>] [-All] [-OnlyStartTypeAutomatic] [-OutputServiceDetailsOnly]
[<CommonParameters>]
Get-D365Environment [[-ComputerName] <String[]>] [-Aos] [-Batch] [-FinancialReporter] [-DMF]
[-OnlyStartTypeAutomatic] [-OutputServiceDetailsOnly] [<CommonParameters>]
List status for all relevant services that is running in a D365FO environment
Get-D365Environment
Will query all D365FO service on the machine.
Get-D365Environment -All
Will query all D365FO service on the machine.
Get-D365Environment -OnlyStartTypeAutomatic
Will query all D365FO service on the machine. It will filter out all services that are either configured as manual or disabled.
Get-D365Environment -ComputerName "TEST-SB-AOS1","TEST-SB-AOS2","TEST-SB-BI1" -All
Will query all D365FO service on the different machines.
Get-D365Environment -Aos -Batch
Will query the Aos & Batch services on the machine.
Get-D365Environment -FinancialReporter -DMF
Will query the FinancialReporter & DMF services on the machine.
Get-D365Environment -OutputServiceDetailsOnly
Will query all D365FO service on the machine. Will omit the servername from the output.
Get-D365Environment -FinancialReporter | Set-Service -StartupType Manual
This will configure the Financial Reporter services to be start type manual.
An array of computers that you want to query for the services status 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 query all relevant services
Includes: Aos Batch Financial Reporter DMF
Type: SwitchParameter
Parameter Sets: Default
Aliases:
Required: False
Position: Named
Default value: True
Accept pipeline input: False
Accept wildcard characters: False
Instruct the cmdlet to query the AOS (IIS) service
Type: SwitchParameter
Parameter Sets: Specific
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Instruct the cmdlet query the batch service
Type: SwitchParameter
Parameter Sets: Specific
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Instruct the cmdlet query the financial reporter (Management Reporter 2012)
Type: SwitchParameter
Parameter Sets: Specific
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Instruct the cmdlet query the DMF service
Type: SwitchParameter
Parameter Sets: Specific
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Instruct the cmdlet to filter out services that are set to manual start or disabled
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 exclude the server name from the 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)