Random Logon issue - VBS scripts

Soldato
Joined
18 Oct 2002
Posts
18,296
Location
Brighton
Don't know whether or not this should go in the windows section but i'll try it here to start with.

Basically i have a user here on our active directory environment who is having a problem when logging on to the network.

Basically we have a generic vbs login script which does various stuff and maps network drives however on this user's computer it doesnt run the script, instead when he logs on it opens up in notepad.

Now i have gone in to my computer > options > file types > vbs > set to run with command prompt instead of open.

I then tested that with a vbs script on his desktop and it worked fine, however it still does it when he logs on.

I am utterly bemused by this, anybody able to shed some light on this? I would be most grateful :)
 
(random thought, <1% chance of being right)

is the registry set to open .VBS files in notepad,
as opposed to the script engine thingy...?

I think it's this one ?
HKEY_CLASSES_ROOT\VBEFile\Shell\Edit\Command
.
 
Last edited:
I'm just throwing this idea out there, I've not checked it, but is "Open" set to Windows Scripting Host or something similar? Because, don't quote me on this, I think it needs to call wscript *filename here*.

Also, when you checked what "Open" was set to, did you do it from your user or his, and is it a "per user" setting?
 
^^ yep, that's the one I meant

HKEY_CLASSES_ROOT\VBEFile\Shell\open\Command
DATA=%SystemRoot\System32\WScript.exe "%1" %*

I frig it if I don't want .VBS to run
 
Back
Top Bottom