For Programmers: Free Programming Magazines  


Home > Archive > VBScript > September 2004 > CreateObject permissions









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author CreateObject permissions
Stephen J Bement

2004-09-29, 10:43 am

I have a test script that does a simple CreateObject call. When I run the
script with CScript in administrator context it works. When I load a cmd
promt in a user context (w/ runas) the script says
"test.vbs(5, 1) Microsoft VBScript runtime error: Permission denied:
'CreateObject'"

How do I allow a user with only standard user rights to run this script.

Windows XP Pro SP1
WSH ver 5.6

TIA

--
Semper Fi,
Red

Please post to newsgroup only


Sean

2004-09-29, 8:03 pm

You don't need any special user permissions to create an object. You
may need special user permissions depending upon the object you are trying
to create. For example to create an object to the Security Event Log
requires administrative level access. To create a file in the users My
Documents directory does not need any additional rights. What object are
you attempting to create and against the local machine or a remote computer?

Sean

"Stephen J Bement" <spam@null.net> wrote in message
news:OUvVvripEHA.3520@TK2MSFTNGP11.phx.gbl...
>I have a test script that does a simple CreateObject call. When I run the
> script with CScript in administrator context it works. When I load a cmd
> promt in a user context (w/ runas) the script says
> "test.vbs(5, 1) Microsoft VBScript runtime error: Permission denied:
> 'CreateObject'"
>
> How do I allow a user with only standard user rights to run this script.
>
> Windows XP Pro SP1
> WSH ver 5.6
>
> TIA
>
> --
> Semper Fi,
> Red
>
> Please post to newsgroup only
>
>



Stephen J Bement

2004-09-29, 8:03 pm

It is a custom dll. There are no specific security setting in the library.
The COM library is registered on the local machine and is being accessed
within that context.

Thanks for you help. I will try a few other things and see if it is a
dependency issue since alower object accesses a SQL Server. (BTW: I have
verified that the 'justuser' context can access the server and retrieve info
when the approle is properly called.)

Semper Fi,
Red
"Sean" <nospam@junk.com> wrote in message
news:O$TB1UkpEHA.2684@TK2MSFTNGP11.phx.gbl...
> You don't need any special user permissions to create an object. You
> may need special user permissions depending upon the object you are trying
> to create. For example to create an object to the Security Event Log
> requires administrative level access. To create a file in the users My
> Documents directory does not need any additional rights. What object are
> you attempting to create and against the local machine or a remote

computer?
>
> Sean
>
> "Stephen J Bement" <spam@null.net> wrote in message
> news:OUvVvripEHA.3520@TK2MSFTNGP11.phx.gbl...
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com