Announcement

Collapse
No announcement yet.

Script needed to verify services

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Script needed to verify services

    For security reasons I had disabled VIA GP task sheduler service on all domain pc's

    sc config schedule start= demand
    net stop schedule

    worked great

    I have since re-enabled

    sc config schedule start= auto
    net start schedule

    I just need some way verify that all domain PC's have the services reenabled

    is there some way to script this as I have about 400 pc's to verify

  • #2
    Re: Script needed to verify services

    Code:
    Set objComputer = GetObject("WinNT://computername,computer")
    objComputer.Filter = Array("Service")
    strServiceName = "blaablaa"
    For Each aService In objComputer   
    If LCase(strServiceName) = LCase(aService.Name) Then       
    Wscript.Echo aService.Name & "=" & aService.Status   
    End If
    Next
    From here

    http://www.tek-tips.com/viewthread.c...1248157&page=6

    Found using

    http://www.google.com.au/search?sour...service+status

    Comment

    Working...
    X