How can we run this script for generating the report for remote computers ?

Welcome Forums General PowerShell Q&A How can we run this script for generating the report for remote computers ?

This topic contains 2 replies, has 2 voices, and was last updated by

 
Participant
2 years ago.

  • Author
    Posts
  • #64036

    Participant
    Points: 0
    Rank: Member

    How can we run this script for generating the report for remote computers ? Thanks in advance.

  • #64041

    Participant
    Points: 0
    Rank: Member

    Need script to list services from a local or remote computer where the StartMode property is set to "Automatic" and where the state is different from RUNNING

  • #64042

    Participant
    Points: 0
    Rank: Member

    I think this is what you are looking for but may be wrong.
    As far as I am aware you can't get all of this information from Get-Service. Instead you'll need to use Get-CimInstance (or Get-WMIObject)

    Get-CimInstance -ComputerName Server1 -ClassName Win32_Service | Where {($_.StartMode -eq "Automaic") -and ($_.Status -ne "Running")}
    

The topic ‘How can we run this script for generating the report for remote computers ?’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort