Script to Stop Service

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: MC (anonymous_at_discussions.microsoft.com)
Date: 05/19/04


Date: Wed, 19 May 2004 12:04:59 -0700

I am looking to create a script that will stop a service
on the local computer (or remote) Delete a registry key
and delete a folder on the local hard drive. I have tried
a couple of scripts from the scripting guide but they just
don't seem to work, I'm wondering/hoping that someone
could point me in the right direction for a good, simple
script.

Thanks in advance.



Relevant Pages

  • Re: Script for changing the registry key value
    ... "Jeremy" wrote: ... I am able to add values to the registry key using wshshell.regwrite ... but I want to add the exact expanded value of the folder path to the ... technet script center repositry for the code snippet to create/modify ...
    (microsoft.public.scripting.vbscript)
  • Script help needed with conditionals and Registry key
    ... I need a vbs/wmi or bat script to check to see if the following ... The personal key defines the location of the My Documents folder. ... 1)record in memory the current setting of the Personal registry key ...
    (microsoft.public.windows.server.scripting)
  • Re: output to a file
    ... The script you posted is designed to be run on the local computer. ... Set objWMIService = _ ... the code in your script that retrieves drives will only work on the ...
    (microsoft.public.windows.server.scripting)
  • Re: Error getting the RootDSE
    ... but I would like to write a script that allow me to use it at all ... which is member of the domain. ... The DNS suffix is correct and corresponds to the domain name. ... >I guess your computer 'thinks' the logondomain is the local computer, ...
    (microsoft.public.windows.server.scripting)
  • Rename Computer and Validate New Name
    ... I finally figured out how to get my script to validate the user input I get, ... Set objRE = New RegExp ... computer?","Rename The Local Computer", "SM2") ...
    (microsoft.public.scripting.vbscript)