PDA

View Full Version : User-permissions for executing scripts?


ewinckers
05-21-2001, 10:01 AM
I am running a script, either local of from a networked drive, in Windows NT (4.0) that acts like a Batch file.
The user specifies some options, which the script uses to genereate environment settings and a command-line statement to be executed.
The script is rather straight forward and not very complex.
The problem is that when the script is executed by some 'normal' user we get an error-message and the script halts.
We have two types of error-messages, depending on how the script was executed:
1) "Object doesn't support this property or method: 'TheForm.fName'"
This message is not very precise.....

2) Permission denied error in line xx
In the specified line(s) of the script there is a "CreateObject" function:
Set WSHShell = WScript.CreateObject("WScript.Shell")
set Shell = CreateObject("Wscript.Shell")
set SysEnv = WshShell.Environment

My questions are:
- Is this a know problem?
- Is is possible that not all (types of) users are granted to execute this function?
- Is there any way, other than granting every user Admin-rights?

Please advice

RWSchlatter
05-21-2001, 04:22 PM
if you are using WSH version 5.6, check the Help file on keyword "Trust" and "Trust policy".

______________
Regards - Richard

ewinckers
05-22-2001, 05:42 AM
I am using WSH ver. 5.0 and 5.1 on my (Win98)system and those of the end-users (Win NT).
Is an upgrade necessary? How to update the WSH (and the VBS engine?) on the Win NNT systems?

RWSchlatter
05-25-2001, 11:50 PM
"...Is an upgrade necessary..."
from my point of view not necessary, but what J picked up from the new version, you may have a bit more flexibility by better system support coming with the language release.
Take upgrading cost into account.
If you would be upgrading to IE5.5 (or even IE6 - soon to come) then the upgrade of WSH is included.

"...How to update ..."
check Microsofts site at:
<a target="_blank" href=http://msdn.microsoft.com/scripting>http://msdn.microsoft.com/scripting</a>
and evaluate

______________
Regards - Richard