Discussion:
"Cscript Error: Loading your Settings failed. (Access Denied)"
(too old to reply)
Steve
2004-09-23 19:53:07 UTC
Permalink
Can anyone help me with this? It's a win2k SP4 box with IIS. I've followed
the instructions in KB221081 and still get the error when trying to run this
cscript.

the asp code runs, how the code actually calls a vbs script which in turn
calls "cscript blah blah" and cscript spits out an access denied,

however running it from a cmd prompt, it works fine .

I have another server with this script that's on SP2 and this runs fine.

Any help would be greatly appreciated.
Michael Harris (MVP)
2004-09-23 23:42:43 UTC
Permalink
Post by Steve
Can anyone help me with this? It's a win2k SP4 box with IIS. I've
followed the instructions in KB221081 and still get the error when
trying to run this cscript.
the asp code runs, how the code actually calls a vbs script which in
turn calls "cscript blah blah" and cscript spits out an access denied,
however running it from a cmd prompt, it works fine .
I have another server with this script that's on SP2 and this runs fine.
Any help would be greatly appreciated.
Check the permissions on the following 2 registry keys and ensure that the
IUSR/IWAM_machinename local accounts have read access.

HKEY_USERS\.DEFAULT\Software\Microsoft\Windows Script Host\Settings
HKEY_LOCAL_MACHINE\.DEFAULT\Software\Microsoft\Windows Script Host\Settings

The IUSR/IWAM accounts are normally in the local Guests group which does not
have read access.
--
Michael Harris
Microsoft.MVP.Scripting
Sammamish WA US
Steve
2004-09-27 15:19:02 UTC
Permalink
I assume you mean :

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Script Host\Settings

and not

HKEY_LOCAL_MACHINE\.DEFAULT\Software\Microsoft\Windows Script Host\Settings

Please advise? There is no \.DEFAULT key under the HKLM tree.
Post by Michael Harris (MVP)
Post by Steve
Can anyone help me with this? It's a win2k SP4 box with IIS. I've
followed the instructions in KB221081 and still get the error when
trying to run this cscript.
the asp code runs, how the code actually calls a vbs script which in
turn calls "cscript blah blah" and cscript spits out an access denied,
however running it from a cmd prompt, it works fine .
I have another server with this script that's on SP2 and this runs fine.
Any help would be greatly appreciated.
Check the permissions on the following 2 registry keys and ensure that the
IUSR/IWAM_machinename local accounts have read access.
HKEY_USERS\.DEFAULT\Software\Microsoft\Windows Script Host\Settings
HKEY_LOCAL_MACHINE\.DEFAULT\Software\Microsoft\Windows Script Host\Settings
The IUSR/IWAM accounts are normally in the local Guests group which does not
have read access.
--
Michael Harris
Microsoft.MVP.Scripting
Sammamish WA US
Michael Harris (MVP)
2004-09-27 15:33:22 UTC
Permalink
Post by Steve
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Script Host\Settings
and not
HKEY_LOCAL_MACHINE\.DEFAULT\Software\Microsoft\Windows Script
Host\Settings
Please advise? There is no \.DEFAULT key under the HKLM tree.
Correct...

The HKEY_LOCAL_MACHINE\.DEFAULT\Software\... was a copy/paste error and
should have been HKEY_LOCAL_MACHINE\Software\...
Post by Steve
Post by Michael Harris (MVP)
Post by Steve
Can anyone help me with this? It's a win2k SP4 box with IIS. I've
followed the instructions in KB221081 and still get the error when
trying to run this cscript.
the asp code runs, how the code actually calls a vbs script which in
turn calls "cscript blah blah" and cscript spits out an access denied,
however running it from a cmd prompt, it works fine .
I have another server with this script that's on SP2 and this runs fine.
Any help would be greatly appreciated.
Check the permissions on the following 2 registry keys and ensure
that the IUSR/IWAM_machinename local accounts have read access.
HKEY_USERS\.DEFAULT\Software\Microsoft\Windows Script Host\Settings
HKEY_LOCAL_MACHINE\.DEFAULT\Software\Microsoft\Windows Script
Host\Settings
The IUSR/IWAM accounts are normally in the local Guests group which
does not have read access.
--
Michael Harris
Microsoft.MVP.Scripting
Sammamish WA US
--
Michael Harris
Microsoft.MVP.Scripting
Sammamish WA US
Steve
2004-09-27 16:19:03 UTC
Permalink
OK.. checked, confirmed rights. All looks OK but still get the error message.
Post by Michael Harris (MVP)
Post by Steve
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Script Host\Settings
and not
HKEY_LOCAL_MACHINE\.DEFAULT\Software\Microsoft\Windows Script Host\Settings
Please advise? There is no \.DEFAULT key under the HKLM tree.
Correct...
The HKEY_LOCAL_MACHINE\.DEFAULT\Software\... was a copy/paste error and
should have been HKEY_LOCAL_MACHINE\Software\...
Post by Steve
Post by Michael Harris (MVP)
Post by Steve
Can anyone help me with this? It's a win2k SP4 box with IIS. I've
followed the instructions in KB221081 and still get the error when
trying to run this cscript.
the asp code runs, how the code actually calls a vbs script which in
turn calls "cscript blah blah" and cscript spits out an access denied,
however running it from a cmd prompt, it works fine .
I have another server with this script that's on SP2 and this runs fine.
Any help would be greatly appreciated.
Check the permissions on the following 2 registry keys and ensure
that the IUSR/IWAM_machinename local accounts have read access.
HKEY_USERS\.DEFAULT\Software\Microsoft\Windows Script Host\Settings
HKEY_LOCAL_MACHINE\.DEFAULT\Software\Microsoft\Windows Script Host\Settings
The IUSR/IWAM accounts are normally in the local Guests group which
does not have read access.
--
Michael Harris
Microsoft.MVP.Scripting
Sammamish WA US
--
Michael Harris
Microsoft.MVP.Scripting
Sammamish WA US
Michael Harris (MVP)
2004-09-27 17:48:09 UTC
Permalink
Post by Steve
OK.. checked, confirmed rights. All looks OK but still get the error message.
What exactly did you confirm?

What local groups have at least read access to those keys?

For both keys on my W2K pro sp4 box, Administrators has Full access and
Power Users and Users have Read access.

What local groups are the IUSR/IWAM accounts in?

On my W2K pro sp4 box, they are both in Guests, but not in Power Users
or Users.

To make this work on my box I would try adding the IUSR/IWAM accounts to
Users or grant Read access for Guests to those 2 keys...
--
Michael Harris
Microsoft.MVP.Scripting
Sammamish WA US
Loading...