Re: Baseline script (disable services etc.)

From: Jamie M (enzymatic2009_at_yahoo.com)
Date: 06/28/04


Date: Mon, 28 Jun 2004 16:03:39 -0400

Update: I found a script that turns off Telnet, as follows:

'Pure VBScript (RegWrite)

'This can be be done by writing a DWORD with valuedata 4 to the value
"Start"
'under
'HKLM\SYSTEM\CurrentControlSet\Services\<service>

Set oShell = CreateObject("WScript.Shell")
' Set the Telnet service to disabled (4)
oShell.RegWrite "HKLM\SYSTEM\CurrentControlSet\Services\TlntSvr\Start", _
                 4, "REG_DWORD"

So I guess all I need to find is the names for the Remote Registry and
File and Print Sharing services.

Tips on turning on the ICF still appreciated.

Jamie M wrote:
> Hi,
>
> I work in a small office and seem to constantly be re-installing XP for
> various coworkers. I would like to have a baseline security script that
> would do such things as turn on the ICF (XP's built-in firewall),
> disable the Telnet service, and change a few settings in the Control
> Panel. I have no problem with the basics of programming (loops etc.),
> but I know nothing about the Windows object model. Do the things I want
> to do involve writing to the Registry?
>
> If anyone could give me any tips (as to turning on the ICF and disabling
> the Telnet, Remote Registry, and File and Print Sharing services in
> particular), I would appreciate it very much.
>
> Best,
>
> Jamie



Relevant Pages

  • NET::TELNET and displaying output on-screen
    ... I'm a newbie to Perl and I am writing a script to telnet in an shut ... off one of our Nortel Contivity VPNs. ... Here is the script. ...
    (comp.lang.perl.misc)
  • Re: NET::TELNET and displaying output on-screen
    ... >I'm a newbie to Perl and I am writing a script to telnet in an shut ... >off one of our Nortel Contivity VPNs. ... Here is the script. ...
    (comp.lang.perl.misc)
  • Re: A few questions, if somebody could please assist -ive been doing my head in to get my vba pr
    ... Dim c As String, wdth As Double ... as for telnet, I would look for a telnet program that can be scripted. ... spreadsheet the userform i have made runs from. ... script files like the ftp does and any telnt code i have seen has lost me ...
    (microsoft.public.excel.programming)
  • SOLUTION: Keeping Telnet Session Open
    ... After more tinkering with my expect script, ... > Thanks to several people for responding. ... > see the telnet running in the psoutput. ... > the other end is accepting the connection. ...
    (SunManagers)
  • Re: Script for telnet server to communicate with J2EE application
    ... Is there any way that this script automatically get invoked as the ... Telnet Client login to Server? ... As you were asking about using telnet client classes to allow your Java application to talk to a telnet server, I was assuming you'd want to use something like the following to login, send one barcode to the telnet server and logout again: ...
    (comp.lang.java.programmer)