< Back

Get-MrAutoStoppedService

Sat Jan 18, 2020 4:35 pm

NAME Get-MrAutoStoppedService



SYNOPSIS

Returns a list of services that are set to start automatically, are not

currently running, excluding the services that are set to delayed start.





SYNTAX

Get-MrAutoStoppedService [-ComputerName] <String[]> [[-Credential] <Object>] [<CommonParameters>]





DESCRIPTION

Get-MrAutoStoppedService is a function that returns a list of services from

the specified remote computer(s) that are set to start automatically, are not

currently running, and it excludes the services that are set to start automatically

with a delayed startup. This function is compatible to PowerShell version 2 and

requires PowerShell remoting to be enabled on the remote computer.





PARAMETERS

-ComputerName <String[]>

The remote computer(s) to check the status of the services on.



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-Credential <Object>

Specifies a user account that has permission to perform this action. The default

is the current user.



Required? false

Position? 2

Default value [System.Management.Automation.PSCredential]::Empty

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

String





OUTPUTS

ServiceController





NOTES





Author: Mike F Robbins

Website: http://mikefrobbins.com

Twitter: @mikefrobbins



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-MrAutoStoppedService -ComputerName 'Server1', 'Server2'













-------------------------- EXAMPLE 2 --------------------------



PS C:\\>'Server1', 'Server2' | Get-MrAutoStoppedService













-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Get-MrAutoStoppedService -ComputerName 'Server1', 'Server2' -Credential (Get-Credential)















RELATED LINKS