Add a VBS script as a Key Value in Registry

5 pts.
Tags:
Registry Key
VBS
When I add a Key to the registry I add a command to run for that key under a new subkey called 'command'. I tried to do the same thing using a VBS script but got an error stating it is not a valid ".exe". How do you add VBS scripts as action to take for a registry key?

Answer Wiki

Thanks. We'll let you know when a new response is added.

“C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe nameofyourscript.vbs”

must use the quotation marks. there is a space between .exe and nameofyourscript

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: