Giter VIP home page Giter VIP logo

stoppedautostartservices's Introduction

StoppedAutoStartServices

Find stopped automatic starting services

.SYNOPSIS
Get the list of stopped services which are of type AutoStart and can also restart them at the same time.

.DESCRIPTION
The cmdlet gets the list of stopped services which are of type AutoStart.
It can also restart them at the same time if requested so.

.PARAMETER ComputerName
The computer of which you want to check the service list.

.PARAMETER AsJob
Start the check and the service restart as a job.

.PARAMETER StartService
Use this parameter if you want to restart all stopped services.

.PARAMETER IncludeInShortName
A regular expression pattern to compare to the list of service short names.

.PARAMETER IncludeInDisplayName
A regular expression pattern to compare to the list of service display names.

.PARAMETER ExcludeInShortName
A regular expression pattern to compare to the list of service short names.

.PARAMETER ExcludeInDisplayName
A regular expression pattern to compare to the list of service display names.

.PARAMETER Credential
Alternate credential with Administrator access to the target computer.

.EXAMPLE
The list of computers is piped to the cmdlet and some services are filtered out by displayname.

Get-Content -Path C:\Temp\ServerList.txt | Get-StoppedAutoStartService -ExcludeInDisplayName 'Remote registry','windows Update','software protection'

.EXAMPLE
All services including the word 'Remote' in the displayname are checked on the Comp1 computer and an alternate credential is used.

Get-StoppedAutoStartService -ComputerName Comp1 -IncludeInDisplayname 'Remote' -Credential MyDomain\JohnDo

.EXAMPLE
All automatic services which are stopped are restarted on the current computer.

Get-StoppedAutoStartService -StartService

.EXAMPLE
The list of computers is piped to the cmdlet and all computers are processed as jobs.

Get-Content -Path C:\Temp\ServerList.txt | Get-StoppedAutoStartService -AsJob

stoppedautostartservices's People

Contributors

fullenw1 avatar

Stargazers

Luke Leigh avatar  avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.