On Fri, 12 May 2006, Сергей Черниенко wrote:
>
>      Yes, I was wrong. No matter either I use slashes or backslashes.
>      At first I decided it's security issue and made search in various
>      settings Changing them one by one and run the script. But nothing
>      good happened. I was confused and have tried those backslashes
>      and script start to work! I decided erroneously that backslashes
>      is the solution. But after Dewey's answer I change backslashes
>      back to slashes but script continues to work! Confused twice!
>
>      Well, it really is security issue. To avoid "Access denied"
>      message it is necessary run Component Services console from
>      Administrative Tools, right-click on Component
>      Services\Computers\My Computer, click on Properties in context
>      menu and on Default Properties tab set Default impersonation
>      level in "impersonate". After that script works for me (Windows
>      2003 server, member of Administartors group (I mean user)).

Thank you, that was very helpful!  I now figured out that WSH is calling
CoInitializeSecurity() to set up custom authentication and impersonation
levels.  Win32::OLE doesn't do this, so you end up with the system wide
default settings.

I'll have to think about this some more, but I'll try to put something
into Win32::OLE to allow Perl level access to it without requiring you
to run under WSH.

Cheers,
-Jan




_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to