wscript.exe - Bad Image
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I have a little script I run every now and then, it has never had any problems. I'm on Windows 7 and have used it here as well.
It relies on WScript.Shell.
A couple days ago I ran it and it gave back the following message:
---------------------------
wscript.exe - Bad Image
---------------------------
C:Windowssystem32wshom.ocx is either not designed to run on Windows
or it contains an error. Try installing the program again using the original
installation media or contact your system administrator or the software vendor
for support.
---------------------------
OK
---------------------------
Followed by the WScript error:
---------------------------
Windows Script Host
---------------------------
Script: C:toolsvideoconverter.vbs
Line: 9
Char: 1
Error: Could not create object named "WScript.Shell".
Code: 800700C1
Source: WScript.CreateObject
---------------------------
OK
---------------------------
I have tried the following:
- Did a clean boot with all non-MS services turned off. Still the same error.
- When I tried to register wshom.ocx I get
[Window Title]
RegSvr32
[Content]
The module "C:Windowssystem32wshom.ocx" may not compatible with the version of Windows that you're running. Check if the module is compatible with an x86 (32-bit) or x64 (64-bit) version of regsvr32.exe.
[OK]
My version of windows is x86 - how do I see what version Wshom.ocx is compatible with?Actually though how can it be incompatible given that it was compatible at some recent time in the past?
Edited: adding in the script:
infolder = "c:toolsmusic_input"
outfolder = "c:toolsmusic_output"
Dim objFSO
Dim ofolder
Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
Set objFSO = CreateObject("scripting.filesystemobject")
Dim objCurrentFolder
Set objCurrentFolder = objFSO.getfolder(infolder)
Dim tempval
Dim nFile
For Each file In objCurrentFolder.Files
nFile = outfolder & "" & file.Name & ".mp3"
If objFSO.FileExists(nFile) Then
Else
tempval = "c:toolsffmpegbinffmpeg.exe -i " & chr(34) & file & chr(34) & " " &
chr(34) & nFile & chr(34)
WshShell.Run tempval
WScript.Sleep 15000
End If
Next
windows-7 script
add a comment |
I have a little script I run every now and then, it has never had any problems. I'm on Windows 7 and have used it here as well.
It relies on WScript.Shell.
A couple days ago I ran it and it gave back the following message:
---------------------------
wscript.exe - Bad Image
---------------------------
C:Windowssystem32wshom.ocx is either not designed to run on Windows
or it contains an error. Try installing the program again using the original
installation media or contact your system administrator or the software vendor
for support.
---------------------------
OK
---------------------------
Followed by the WScript error:
---------------------------
Windows Script Host
---------------------------
Script: C:toolsvideoconverter.vbs
Line: 9
Char: 1
Error: Could not create object named "WScript.Shell".
Code: 800700C1
Source: WScript.CreateObject
---------------------------
OK
---------------------------
I have tried the following:
- Did a clean boot with all non-MS services turned off. Still the same error.
- When I tried to register wshom.ocx I get
[Window Title]
RegSvr32
[Content]
The module "C:Windowssystem32wshom.ocx" may not compatible with the version of Windows that you're running. Check if the module is compatible with an x86 (32-bit) or x64 (64-bit) version of regsvr32.exe.
[OK]
My version of windows is x86 - how do I see what version Wshom.ocx is compatible with?Actually though how can it be incompatible given that it was compatible at some recent time in the past?
Edited: adding in the script:
infolder = "c:toolsmusic_input"
outfolder = "c:toolsmusic_output"
Dim objFSO
Dim ofolder
Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
Set objFSO = CreateObject("scripting.filesystemobject")
Dim objCurrentFolder
Set objCurrentFolder = objFSO.getfolder(infolder)
Dim tempval
Dim nFile
For Each file In objCurrentFolder.Files
nFile = outfolder & "" & file.Name & ".mp3"
If objFSO.FileExists(nFile) Then
Else
tempval = "c:toolsffmpegbinffmpeg.exe -i " & chr(34) & file & chr(34) & " " &
chr(34) & nFile & chr(34)
WshShell.Run tempval
WScript.Sleep 15000
End If
Next
windows-7 script
Bryan, Some questions - have you tried it on another windows computer? can you please provide the script for us to read through? are you getting this error with other scripts that you have written? is this 32bit or 64bit windows? have you had a change in permissions on this computer, as in, you are now not Local Admin? have you copied this script from another computer? Thanks.
– Steve Rathbone
Jul 3 '12 at 11:54
Yes it works on other windows computers, I've used it for several years on several computers. I can use WScript on the computer but I cannot instantiate a WScript.Shell. I am not local admin, but I have run the script with heightened permissions and no problem. I have also used it without problems for at least half a year on this computer.
– Bryan Rasmussen
Jul 4 '12 at 5:25
I just tried a script that did nothing but instantiate WScript.Shell and call a bat file. Same error.
– Bryan Rasmussen
Jul 4 '12 at 6:32
oops when I said I have the script with heightened permissions and no problem actually I meant to write that when I run the script with heightened permissions I get the same error.
– Bryan Rasmussen
Jul 4 '12 at 9:36
add a comment |
I have a little script I run every now and then, it has never had any problems. I'm on Windows 7 and have used it here as well.
It relies on WScript.Shell.
A couple days ago I ran it and it gave back the following message:
---------------------------
wscript.exe - Bad Image
---------------------------
C:Windowssystem32wshom.ocx is either not designed to run on Windows
or it contains an error. Try installing the program again using the original
installation media or contact your system administrator or the software vendor
for support.
---------------------------
OK
---------------------------
Followed by the WScript error:
---------------------------
Windows Script Host
---------------------------
Script: C:toolsvideoconverter.vbs
Line: 9
Char: 1
Error: Could not create object named "WScript.Shell".
Code: 800700C1
Source: WScript.CreateObject
---------------------------
OK
---------------------------
I have tried the following:
- Did a clean boot with all non-MS services turned off. Still the same error.
- When I tried to register wshom.ocx I get
[Window Title]
RegSvr32
[Content]
The module "C:Windowssystem32wshom.ocx" may not compatible with the version of Windows that you're running. Check if the module is compatible with an x86 (32-bit) or x64 (64-bit) version of regsvr32.exe.
[OK]
My version of windows is x86 - how do I see what version Wshom.ocx is compatible with?Actually though how can it be incompatible given that it was compatible at some recent time in the past?
Edited: adding in the script:
infolder = "c:toolsmusic_input"
outfolder = "c:toolsmusic_output"
Dim objFSO
Dim ofolder
Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
Set objFSO = CreateObject("scripting.filesystemobject")
Dim objCurrentFolder
Set objCurrentFolder = objFSO.getfolder(infolder)
Dim tempval
Dim nFile
For Each file In objCurrentFolder.Files
nFile = outfolder & "" & file.Name & ".mp3"
If objFSO.FileExists(nFile) Then
Else
tempval = "c:toolsffmpegbinffmpeg.exe -i " & chr(34) & file & chr(34) & " " &
chr(34) & nFile & chr(34)
WshShell.Run tempval
WScript.Sleep 15000
End If
Next
windows-7 script
I have a little script I run every now and then, it has never had any problems. I'm on Windows 7 and have used it here as well.
It relies on WScript.Shell.
A couple days ago I ran it and it gave back the following message:
---------------------------
wscript.exe - Bad Image
---------------------------
C:Windowssystem32wshom.ocx is either not designed to run on Windows
or it contains an error. Try installing the program again using the original
installation media or contact your system administrator or the software vendor
for support.
---------------------------
OK
---------------------------
Followed by the WScript error:
---------------------------
Windows Script Host
---------------------------
Script: C:toolsvideoconverter.vbs
Line: 9
Char: 1
Error: Could not create object named "WScript.Shell".
Code: 800700C1
Source: WScript.CreateObject
---------------------------
OK
---------------------------
I have tried the following:
- Did a clean boot with all non-MS services turned off. Still the same error.
- When I tried to register wshom.ocx I get
[Window Title]
RegSvr32
[Content]
The module "C:Windowssystem32wshom.ocx" may not compatible with the version of Windows that you're running. Check if the module is compatible with an x86 (32-bit) or x64 (64-bit) version of regsvr32.exe.
[OK]
My version of windows is x86 - how do I see what version Wshom.ocx is compatible with?Actually though how can it be incompatible given that it was compatible at some recent time in the past?
Edited: adding in the script:
infolder = "c:toolsmusic_input"
outfolder = "c:toolsmusic_output"
Dim objFSO
Dim ofolder
Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
Set objFSO = CreateObject("scripting.filesystemobject")
Dim objCurrentFolder
Set objCurrentFolder = objFSO.getfolder(infolder)
Dim tempval
Dim nFile
For Each file In objCurrentFolder.Files
nFile = outfolder & "" & file.Name & ".mp3"
If objFSO.FileExists(nFile) Then
Else
tempval = "c:toolsffmpegbinffmpeg.exe -i " & chr(34) & file & chr(34) & " " &
chr(34) & nFile & chr(34)
WshShell.Run tempval
WScript.Sleep 15000
End If
Next
windows-7 script
windows-7 script
edited Jul 4 '12 at 6:26
Bryan Rasmussen
asked Jul 3 '12 at 11:16
Bryan RasmussenBryan Rasmussen
1113
1113
Bryan, Some questions - have you tried it on another windows computer? can you please provide the script for us to read through? are you getting this error with other scripts that you have written? is this 32bit or 64bit windows? have you had a change in permissions on this computer, as in, you are now not Local Admin? have you copied this script from another computer? Thanks.
– Steve Rathbone
Jul 3 '12 at 11:54
Yes it works on other windows computers, I've used it for several years on several computers. I can use WScript on the computer but I cannot instantiate a WScript.Shell. I am not local admin, but I have run the script with heightened permissions and no problem. I have also used it without problems for at least half a year on this computer.
– Bryan Rasmussen
Jul 4 '12 at 5:25
I just tried a script that did nothing but instantiate WScript.Shell and call a bat file. Same error.
– Bryan Rasmussen
Jul 4 '12 at 6:32
oops when I said I have the script with heightened permissions and no problem actually I meant to write that when I run the script with heightened permissions I get the same error.
– Bryan Rasmussen
Jul 4 '12 at 9:36
add a comment |
Bryan, Some questions - have you tried it on another windows computer? can you please provide the script for us to read through? are you getting this error with other scripts that you have written? is this 32bit or 64bit windows? have you had a change in permissions on this computer, as in, you are now not Local Admin? have you copied this script from another computer? Thanks.
– Steve Rathbone
Jul 3 '12 at 11:54
Yes it works on other windows computers, I've used it for several years on several computers. I can use WScript on the computer but I cannot instantiate a WScript.Shell. I am not local admin, but I have run the script with heightened permissions and no problem. I have also used it without problems for at least half a year on this computer.
– Bryan Rasmussen
Jul 4 '12 at 5:25
I just tried a script that did nothing but instantiate WScript.Shell and call a bat file. Same error.
– Bryan Rasmussen
Jul 4 '12 at 6:32
oops when I said I have the script with heightened permissions and no problem actually I meant to write that when I run the script with heightened permissions I get the same error.
– Bryan Rasmussen
Jul 4 '12 at 9:36
Bryan, Some questions - have you tried it on another windows computer? can you please provide the script for us to read through? are you getting this error with other scripts that you have written? is this 32bit or 64bit windows? have you had a change in permissions on this computer, as in, you are now not Local Admin? have you copied this script from another computer? Thanks.
– Steve Rathbone
Jul 3 '12 at 11:54
Bryan, Some questions - have you tried it on another windows computer? can you please provide the script for us to read through? are you getting this error with other scripts that you have written? is this 32bit or 64bit windows? have you had a change in permissions on this computer, as in, you are now not Local Admin? have you copied this script from another computer? Thanks.
– Steve Rathbone
Jul 3 '12 at 11:54
Yes it works on other windows computers, I've used it for several years on several computers. I can use WScript on the computer but I cannot instantiate a WScript.Shell. I am not local admin, but I have run the script with heightened permissions and no problem. I have also used it without problems for at least half a year on this computer.
– Bryan Rasmussen
Jul 4 '12 at 5:25
Yes it works on other windows computers, I've used it for several years on several computers. I can use WScript on the computer but I cannot instantiate a WScript.Shell. I am not local admin, but I have run the script with heightened permissions and no problem. I have also used it without problems for at least half a year on this computer.
– Bryan Rasmussen
Jul 4 '12 at 5:25
I just tried a script that did nothing but instantiate WScript.Shell and call a bat file. Same error.
– Bryan Rasmussen
Jul 4 '12 at 6:32
I just tried a script that did nothing but instantiate WScript.Shell and call a bat file. Same error.
– Bryan Rasmussen
Jul 4 '12 at 6:32
oops when I said I have the script with heightened permissions and no problem actually I meant to write that when I run the script with heightened permissions I get the same error.
– Bryan Rasmussen
Jul 4 '12 at 9:36
oops when I said I have the script with heightened permissions and no problem actually I meant to write that when I run the script with heightened permissions I get the same error.
– Bryan Rasmussen
Jul 4 '12 at 9:36
add a comment |
1 Answer
1
active
oldest
votes
Bryan, what happens if you run:
Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
If Err <> 0 Then
Wscript.Echo Err.Number & " -- " & Err.Description
Err.Clear
End If
Thanks.
The same as before, First the wscript bad image message, then a wscript error that says Could not create object named "WScript.Shell". With the error on line number 2.
– Bryan Rasmussen
Jul 4 '12 at 12:11
If I run the script using cscript I get the bad image message box popping up for cscript.exe and then I get the following in the console window: c:tools>cscript.exe wscriptcheck.vbs Microsoft (R) Windows Script Host Version 5.8 Copyright (C) Microsoft Corporation. All rights reserved. c:toolswscriptcheck.vbs(2, 5) WScript.CreateObject: Could not create object na med "WScript.Shell". c:tools>
– Bryan Rasmussen
Jul 4 '12 at 12:14
If I tried the following: 'try { var WshShell = new ActiveXObject("WScript.Shell"); } catch(err) { for(var e in err){ WScript.Echo(err[e]); } } ' I get the following message: Error -2147024703
– Bryan Rasmussen
Jul 4 '12 at 12:20
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f444348%2fwscript-exe-bad-image%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Bryan, what happens if you run:
Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
If Err <> 0 Then
Wscript.Echo Err.Number & " -- " & Err.Description
Err.Clear
End If
Thanks.
The same as before, First the wscript bad image message, then a wscript error that says Could not create object named "WScript.Shell". With the error on line number 2.
– Bryan Rasmussen
Jul 4 '12 at 12:11
If I run the script using cscript I get the bad image message box popping up for cscript.exe and then I get the following in the console window: c:tools>cscript.exe wscriptcheck.vbs Microsoft (R) Windows Script Host Version 5.8 Copyright (C) Microsoft Corporation. All rights reserved. c:toolswscriptcheck.vbs(2, 5) WScript.CreateObject: Could not create object na med "WScript.Shell". c:tools>
– Bryan Rasmussen
Jul 4 '12 at 12:14
If I tried the following: 'try { var WshShell = new ActiveXObject("WScript.Shell"); } catch(err) { for(var e in err){ WScript.Echo(err[e]); } } ' I get the following message: Error -2147024703
– Bryan Rasmussen
Jul 4 '12 at 12:20
add a comment |
Bryan, what happens if you run:
Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
If Err <> 0 Then
Wscript.Echo Err.Number & " -- " & Err.Description
Err.Clear
End If
Thanks.
The same as before, First the wscript bad image message, then a wscript error that says Could not create object named "WScript.Shell". With the error on line number 2.
– Bryan Rasmussen
Jul 4 '12 at 12:11
If I run the script using cscript I get the bad image message box popping up for cscript.exe and then I get the following in the console window: c:tools>cscript.exe wscriptcheck.vbs Microsoft (R) Windows Script Host Version 5.8 Copyright (C) Microsoft Corporation. All rights reserved. c:toolswscriptcheck.vbs(2, 5) WScript.CreateObject: Could not create object na med "WScript.Shell". c:tools>
– Bryan Rasmussen
Jul 4 '12 at 12:14
If I tried the following: 'try { var WshShell = new ActiveXObject("WScript.Shell"); } catch(err) { for(var e in err){ WScript.Echo(err[e]); } } ' I get the following message: Error -2147024703
– Bryan Rasmussen
Jul 4 '12 at 12:20
add a comment |
Bryan, what happens if you run:
Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
If Err <> 0 Then
Wscript.Echo Err.Number & " -- " & Err.Description
Err.Clear
End If
Thanks.
Bryan, what happens if you run:
Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
If Err <> 0 Then
Wscript.Echo Err.Number & " -- " & Err.Description
Err.Clear
End If
Thanks.
answered Jul 4 '12 at 10:15
Steve RathboneSteve Rathbone
451213
451213
The same as before, First the wscript bad image message, then a wscript error that says Could not create object named "WScript.Shell". With the error on line number 2.
– Bryan Rasmussen
Jul 4 '12 at 12:11
If I run the script using cscript I get the bad image message box popping up for cscript.exe and then I get the following in the console window: c:tools>cscript.exe wscriptcheck.vbs Microsoft (R) Windows Script Host Version 5.8 Copyright (C) Microsoft Corporation. All rights reserved. c:toolswscriptcheck.vbs(2, 5) WScript.CreateObject: Could not create object na med "WScript.Shell". c:tools>
– Bryan Rasmussen
Jul 4 '12 at 12:14
If I tried the following: 'try { var WshShell = new ActiveXObject("WScript.Shell"); } catch(err) { for(var e in err){ WScript.Echo(err[e]); } } ' I get the following message: Error -2147024703
– Bryan Rasmussen
Jul 4 '12 at 12:20
add a comment |
The same as before, First the wscript bad image message, then a wscript error that says Could not create object named "WScript.Shell". With the error on line number 2.
– Bryan Rasmussen
Jul 4 '12 at 12:11
If I run the script using cscript I get the bad image message box popping up for cscript.exe and then I get the following in the console window: c:tools>cscript.exe wscriptcheck.vbs Microsoft (R) Windows Script Host Version 5.8 Copyright (C) Microsoft Corporation. All rights reserved. c:toolswscriptcheck.vbs(2, 5) WScript.CreateObject: Could not create object na med "WScript.Shell". c:tools>
– Bryan Rasmussen
Jul 4 '12 at 12:14
If I tried the following: 'try { var WshShell = new ActiveXObject("WScript.Shell"); } catch(err) { for(var e in err){ WScript.Echo(err[e]); } } ' I get the following message: Error -2147024703
– Bryan Rasmussen
Jul 4 '12 at 12:20
The same as before, First the wscript bad image message, then a wscript error that says Could not create object named "WScript.Shell". With the error on line number 2.
– Bryan Rasmussen
Jul 4 '12 at 12:11
The same as before, First the wscript bad image message, then a wscript error that says Could not create object named "WScript.Shell". With the error on line number 2.
– Bryan Rasmussen
Jul 4 '12 at 12:11
If I run the script using cscript I get the bad image message box popping up for cscript.exe and then I get the following in the console window: c:tools>cscript.exe wscriptcheck.vbs Microsoft (R) Windows Script Host Version 5.8 Copyright (C) Microsoft Corporation. All rights reserved. c:toolswscriptcheck.vbs(2, 5) WScript.CreateObject: Could not create object na med "WScript.Shell". c:tools>
– Bryan Rasmussen
Jul 4 '12 at 12:14
If I run the script using cscript I get the bad image message box popping up for cscript.exe and then I get the following in the console window: c:tools>cscript.exe wscriptcheck.vbs Microsoft (R) Windows Script Host Version 5.8 Copyright (C) Microsoft Corporation. All rights reserved. c:toolswscriptcheck.vbs(2, 5) WScript.CreateObject: Could not create object na med "WScript.Shell". c:tools>
– Bryan Rasmussen
Jul 4 '12 at 12:14
If I tried the following: 'try { var WshShell = new ActiveXObject("WScript.Shell"); } catch(err) { for(var e in err){ WScript.Echo(err[e]); } } ' I get the following message: Error -2147024703
– Bryan Rasmussen
Jul 4 '12 at 12:20
If I tried the following: 'try { var WshShell = new ActiveXObject("WScript.Shell"); } catch(err) { for(var e in err){ WScript.Echo(err[e]); } } ' I get the following message: Error -2147024703
– Bryan Rasmussen
Jul 4 '12 at 12:20
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f444348%2fwscript-exe-bad-image%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Bryan, Some questions - have you tried it on another windows computer? can you please provide the script for us to read through? are you getting this error with other scripts that you have written? is this 32bit or 64bit windows? have you had a change in permissions on this computer, as in, you are now not Local Admin? have you copied this script from another computer? Thanks.
– Steve Rathbone
Jul 3 '12 at 11:54
Yes it works on other windows computers, I've used it for several years on several computers. I can use WScript on the computer but I cannot instantiate a WScript.Shell. I am not local admin, but I have run the script with heightened permissions and no problem. I have also used it without problems for at least half a year on this computer.
– Bryan Rasmussen
Jul 4 '12 at 5:25
I just tried a script that did nothing but instantiate WScript.Shell and call a bat file. Same error.
– Bryan Rasmussen
Jul 4 '12 at 6:32
oops when I said I have the script with heightened permissions and no problem actually I meant to write that when I run the script with heightened permissions I get the same error.
– Bryan Rasmussen
Jul 4 '12 at 9:36