Posted By: neopay | Nov 9th, 2008 @ 6:00 PM
page 1 of 1
Comments: 8 | Views: 991
Can anyone explain to me why vbscript does not run on Windows server 2008.

cheers
Try "cscript <yourfile>.vbs"... Or is that you can't get something work?
Matthew van Eerde
Matthew van Eerde
AKA Maurits
Where are you running VBScript - as a scheduled task, in IE, etc.?
Matthew van Eerde
Matthew van Eerde
AKA Maurits
Which line is failing?

If you'd like to take this to a more responsive medium you can email me at (mateer at microsoft dot com) or IM me at (mvaneerde at hotmail dot com)
LeoW
LeoW
Leo
Matthew, could you please post the solution? I'm having the same problem between two computers on the same domain, regardless of the OS (XP or Win Server). I'm getting "Permission denied" on .CreateScript, although I'm a local admin on both machines and have no problems running a vbscript directly on the "remote" box. I tried to use WMI with "Win32_Process" to run the script, but that failed too with error 8. I can start Notepad on the remote box using either method without any problems.
Matthew van Eerde
Matthew van Eerde
AKA Maurits
A first troubleshooting step is to download DCOMTest and get it working.

If DCOMTest isn't working, VBScript remote execution won't work.

If DCOMTest is working, but VBScript still is failing the .CreateScript call, make sure to set the "allow remote administration exception" group policy under gpedit.msc | computer configuration\administrative templates\network\network connections\standard profile\windows firewall, and set the appropriate IP range (or * if you're just trying to get things to work... remember to lock it down afterwards)

Once .CreateScript is working, you can use the objRemoteScript.Error object to troubleshoot issues during the actual running of the script.
page 1 of 1
Comments: 8 | Views: 991
Microsoft Communities