Thursday, September 4, 2008

[THIN] Re: Disable a service remotely

Why not using GPO?

 

De : thin-bounce@freelists.org [mailto:thin-bounce@freelists.org] De la part de Minero, Hector B CIV NSWCDD, K55
Envoyé : 4 septembre 2008 13:29
À : thin@freelists.org
Objet : [THIN] Re: Disable a service remotely

 

Great idea.  I think I could write a Wyse script (.rsp) and deploy it through WDM.

 

Thanks for all the replies.

 

 

_______________________________
Hector Minero
NSWCDD K55

-----Original Message-----
From: thin-bounce@freelists.org [mailto:thin-bounce@freelists.org] On Behalf Of TSguy92 Lan
Sent: Thursday, September 04, 2008 12:20 PM
To: thin@freelists.org
Subject: [THIN] Re: Disable a service remotely

You could import a registry key during a login script for workstations which could adjust the service start up value to "disabled"

******************
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SNMP]
"Start"=dword:00000004
*******************

This kind of setup would require that the end user logging in has rights to modify registry values like this (local administrator / possibly power user).

Follow the import of this registry value with a "net stop snmp" to disable the service until such time as the machine is rebooted and the adjusted value for the service start up takes affect.

You can of course always view the status and make adjustments to the services of other machines via the following command syntax:

"services.msc /computer=computername"

HTH

Lan

On Thu, Sep 4, 2008 at 8:48 AM, Minero, Hector B CIV NSWCDD, K55 <hector.minero@navy.mil> wrote:

No, I'm not using Altiris. I'm just using Wyse Device Manager.  I guess what I'll have to do is create another image with SNMP disabled and push it out to everyone.  I was just hoping there was an easier command line utility for this.

 

 

_______________________________
Hector Minero
NSWCDD K55

-----Original Message-----
From: thin-bounce@freelists.org [mailto:thin-bounce@freelists.org] On Behalf Of Greg Reese
Sent: Thursday, September 04, 2008 11:30 AM
To: thin@freelists.org
Subject: [THIN] Re: Disable a service remotely

are you using Altiris to manage those Hector?  You could make an Altiris job to rip the settings right out of the registry on embedded xp.

On Thu, Sep 4, 2008 at 10:23 AM, Minero, Hector B CIV NSWCDD, K55 <hector.minero@navy.mil> wrote:

Thanks, that seems to work well on Windows XP, but not on Windows XP embedded (Wyse TCs).  sc does not seem to be present.

 

 

_______________________________
Hector Minero
NSWCDD K55

-----Original Message-----
From: thin-bounce@freelists.org [mailto:thin-bounce@freelists.org] On Behalf Of Andrew Wood
Sent: Thursday, September 04, 2008 11:15 AM
To: thin@freelists.org
Subject: [THIN] Re: Disable a service remotely

If you can't use a GPO then something like:-

 

For /f "tokens=1" %i in ('net view') do "sc %i config snmp start=disabled"

 

Should do the trick

 

From: thin-bounce@freelists.org [mailto:thin-bounce@freelists.org] On Behalf Of Minero, Hector B CIV NSWCDD, K55
Sent: 04 September 2008 15:51
To: thin@freelists.org
Subject: [THIN] Re: Disable a service remotely

 

Thanks,

 

can this be scripted?  I need to disable SNMP on 200 clients.

 

 

_______________________________
Hector Minero
NSWCDD K55

-----Original Message-----
From: thin-bounce@freelists.org [mailto:thin-bounce@freelists.org] On Behalf Of Joe Shonk
Sent: Thursday, September 04, 2008 9:45 AM
To: thin@freelists.org
Subject: [THIN] Re: Disable a service remotely

PSExec.exe from Microsoft's sysinternals.

 

Joe

 

From: thin-bounce@freelists.org [mailto:thin-bounce@freelists.org] On Behalf Of Minero, Hector B CIV NSWCDD, K55
Sent: Thursday, September 04, 2008 5:28 AM
To: thin@freelists.org
Subject: [THIN] Disable a service remotely

 

 

Hi all, is there a way to disable a service remotely through a script?

 

_______________________________
Hector Minero
NSWCDD K55

 

 

No comments: