Skip to content

A very quick and dirty way to create a service from a vbscript file

Creating service from VB Script

1. Execute the below Command:
instsrv.exe  “MyService” C:\windows\System32\srvany.exe

Note: ‘Service Created’ message indicates Service Created Successfully

2. Copy the srvany.exe file from C:\windows\System32 at the same path of your script

3. Open Registry Editor and create a Key “Parameters” under
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\

4. under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\\Parameters, create the following values
AppDirectory REG_SZ “C:\Current Work\Service\” < Directory path of your VB Script
Application REG_SZ wscript.exe < u can change to Wscript or cscript>
AppParameters REG_SZ “C:\Current Work\Service\one.vbs” < your VB Script Name with path

5. Open Services under Control Panel and select the Service Name which create at Step 1

Click on properties, open Logon Tab and select the Check Box ‘Allow Service to Interact with Desktop’
Click ok on Properties window
Now Start the service.

Note: Whenever you change anything in your script, restart the Service

Google Buzz

Some Real Cool videos of Mark Russinovich on Windows 7 and Windows 2008 R2 Kernel Changes

My processor driver is dated 2004.. is there something wrong??

Sitting alone at coimbatore airport is not fun…  Next best option.. mess around with the system!!

Took a boot time capture of my system using procmon.  Even though it didn’t make much sense to me initially the following registry key was among those queried very early.. HKLM\System\CurrentControlSet\Control\Class\{50127DC3-0F36-415E-A6CC-4CB3BE910B65}

It turned out to be related to the processor.. with two subkeys named “1″ and “2″ which I assume is related to to my two cores of the processor..

All is well till this time.. But I am a bit surprised by the driver date of my processor.. Here is the graphic for you..

Questions: Why is the driver dated 2004.. was the original driver so stable that it did not need an update ? Or am I missing an update ???

PS: The processor device driver processr.sys also is dated “August 2004″

Google Buzz