1. Execute the below Command:
instsrv.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\
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